eventuate-clients / eventuate-client-nodejs

Other
4 stars 3 forks source link

Concurrent message processing #20

Open dartvandru opened 8 years ago

dartvandru commented 8 years ago

Events with the same eventType and swimlane MUST BE processed sequentially. All other events can and should be processed concurrently.

In the Java code, SwimlaneBasedDispatcher.java maintains a separate queue of events for each swimlane (BUG it should be eventType and swimlane). A thread based mechanism pulls events from the queue and processes them one at a time. NodeJS doesn’t have threads but I’d imagine a callback-based messaging would be good: