Skip to content

Throttling in the EventStore #1509

Answered by jokokko
Xavina asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I may have trouble understanding your request, but some thoughts: Why is your event producer producing events with equal identity? Or are you talking more about "structural equality", whereby an instance of an event will have fields with exactly the same values as some other event already stored in the stream? Nevertheless, if you want some kind of "throttling", could you buffer & filter the events in the producer side? On the question of storing them, it should depend on the application domain. So if you consider events "duplicate", handle them so in projections.

If you really want to prevent inserting them, you could e.g. keep a projection that maintains hashes of the seen events…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mysticmind
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1509 on November 28, 2020 08:16.