3 ms·
It is very valuable but compaction enables a number of use cases where events are generated in significant quantity or you need to save space, like if you’re im
by throwup238 9mo ago
It is very valuable but compaction enables a number of use cases where events are generated in significant quantity or you need to save space, like if you’re implementing event sourcing at thw GUI layer (the event store is basically a journal).
- addaon 8mo agoBut the event store is also your undo stack, then. Keeping it infinite (or deliberately trimming it at application launch) improves user experience.
- throwup238 8mo agoYou can selectively compact the journal to only compact the numerous GUI events leaving domain events uncompacted (I do this for a CAD app I develop)
- mbreese 8mo agoOnly for some use cases. I don’t think the parent is arguing for forcing compaction. I’d personally use this with periodic compaction (cronjob), but I can see the utility either way.