dolittle / Runtime

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

EventHandlers rewrite #731

Closed mhelleborg closed 1 year ago

mhelleborg commented 1 year ago

Summary

Rewrite of how event handlers process events. Earlier variants wrote a separate stream in the DB to be able to keep track of what belonged to a handler. This is replaced with a simpler model where the processors keep an offset and number of events processed in the main eventlog. Events are also directly processed in-memory when committed, saving the roundtrip and extra memory to read them from a new stream.

Removed