[Glass] Parallel and-or asynchronous execution

BrunoBB smalltalk at adinet.com.uy
Fri Jun 21 15:29:39 PDT 2019


Hi, 

Imagine the following situation a web user click on "Execute" in the Web
App.

This will trigger the execution of 3 different scripts inside a collection
(each is an instance of BpmScriptTaskInstance).

In most cases the script run fast but in some cases the Script can be long
so the execution is slow.

I want the web user have the control after click on "Execute" -->
asynchronous.

For these cases i want a Gem to run each script. (all in the same GemStone
installation)

Is GsExternalSession the way to go ?

The Gems that serve the Web App will handle GsExternalSession in such a way
to create a new Gem for each script.

Is this the way to go ?

Or it is better to have a Rc collection to add these scripts and then use
Topaz scripts to process my script inside the collection. In this case i
have to have some way to know the number of elements in the collection in
order to create the same number of Gems. 

Maybe a Topaz script using GsExternalSession to start the correct number of
Gems ???

regards,
bruno



--
Sent from: http://forum.world.st/GLASS-f1460844.html


More information about the Glass mailing list