Hi,
How does thingworx manage the sequence of executing the events ? For example, If raise 100 events in a time , will the subscription be triggered with same sequence of raising event or the subscription will be triggered in parallel ?
Regards,
Sean
Solved! Go to Solution.
It depends on the TW Version, up to what I know:
Hence -> No ordered execution of events if they depend on the result of the others, if your processing subscription algorithm isn't 100% parallelizable you are out of luck.
Well, actually it's why I've implemented the Mutex extension
Best Regards
It depends on the TW Version, up to what I know:
Hence -> No ordered execution of events if they depend on the result of the others, if your processing subscription algorithm isn't 100% parallelizable you are out of luck.
Well, actually it's why I've implemented the Mutex extension
Best Regards
Hi,
Subscription work in async mode. That means if you are calling one service and 100 of calls has triggered the subscription than multiple threads will be created and the service will called by 3-4 threads within the process.
There can be changes where you want to create Things using subscription, then there are chances 3-4 threads start accessing same thing which might be in process of creation which will lead some more issue. Better if you want to create any entity use for loop.
Regards
Shyam