← Back to problems

50. Chat Channel Message Archive

HARD
DatabaseScalabilitySystem Design

Design the architecture and schema for storing an enormous, ever-growing volume of chat messages per channel.

Design a chat message archive: channels accumulate an enormous, ever-growing volume of messages, but the most common read - 'give me the last 50 messages in this channel' - needs to stay fast regardless of how large the archive grows. Design both the schema and a component diagram showing where the write path and read path fan out.
Log in to submit a solution

Comments

Log into join the discussion.