dolittle / Runtime

Runtime for Dolittle
https://dolittle.io
MIT License
14 stars 10 forks source link

Concurrent processing support for event handlers #741

Closed mhelleborg closed 1 year ago

mhelleborg commented 1 year ago

Summary

Adds support for a new mode to run partitioned event handlers in. With concurrency > 1, event handlers are able to process each partition (eventsourceId) in parallel. This greatly improves throughput, but requires the handlers to be thread safe and not require global ordering of events. Each partition still has full ordering guarantees and will be processed sequentially.