Re:Using logs to build a solid data infrastructure
by moatra on Wednesday May 27, 2015 @06:30PM
(#9614866)
That sounds great if your messages in the logs are the complete state for that key, but I'm not seeing how to use that compaction system if the messages are change events.
Is there a system designed for snapshotting the aggregate and logging the delta?
Re:Using logs to build a solid data infrastructure
by kasey_junk on Wednesday May 27, 2015 @08:07PM
(#9615266)
A common pattern is to publish a "checkpoint" message. Not sure if the concept is built into Kafka or not.
The other cleanup policy is to just have a retention time. After X minutes/days/weeks segments of the log are simply deleted.