Written by

Senior Cloud Architect at InterSystems
Question Eduard Lebedyuk · Feb 17, 2016

Basic queue handling

Let's say the user need to execute some heavy code (build a report, or extensive calculations etc.). So, of course it needs to be asynchronous, and we possibly need to store some data about execution status. How?

If it's not user action, but periodic action, Task Manager could be used (RunLegacyTask or Custom task).

If it's an often encountered workflow, then it's Ensemble.

But what about Caché?

I know about  job and %SYSTEM.Event class, and I'm interested in different approaches (and code samples) to basic queue handling.

Comments

Eduard Lebedyuk  Feb 19, 2016 to Alberto Fuentes

Have you thought about uploading this projects on GitHub?

UPD. Nevermind, seen your message about GitHub in another topic.

0
Alberto Fuentes  Feb 22, 2016 to Eduard Lebedyuk

Hi Eduard,

I've just published the PubSub example in GitHub:

https://github.com/intersystems-ib/cache-iat-pubsub

Queue handling can be an interesting topic. There are several concepts that be discussed like using $system.Events or $sytem.Semaphore (network support), transactions, etc.

0
Eduard Lebedyuk  Feb 19, 2016 to Alberto Fuentes

Reading it now. Intresting.  Thank you.

_____

LLL
0