Design a user activity query system
Design a system that stores user activity events at scale and lets services query a user's activity, for example everything a user did in a time range, filtered by type. Cover the write path, the storage layout and partitioning, indexes for the common queries, retention, and latency at high volume.
No answer yet. Write the first one; the best answer gets endorsed.
