Hacker News new | past | comments | ask | show | jobs | submit login

Not sure of the CH Kafka engine but generally I think you should partition by userId.

Because the next step would be trying to run some cron for a user or event based trigger based on the events.

And the only way to avoid multiple machines doing the same work / sending the same comms - would be to push all users events to a partition. This way with multiple workers you don't have the risk of duplicate processing.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: