event-driven-dotnet / EventDriven.EventBus.Dapr

Event bus abstraction over Dapr pub/sub
MIT License
22 stars 5 forks source link

[Bug] Improve Event Cache Concurrency #40

Closed tonysneed closed 1 month ago

tonysneed commented 1 month ago

Presently the event cache only sets handler state after handling an event. If the event takes some time, it increases the chance that duplicate events will not be detected.

Resolve by setting handler state to started prior to handling event, and then set it to completed after handling the event.