Designing a Discord-style chat system: WebSocket gateways, message storage and fan-out for huge servers
A worked solution to the homework 'design a messaging system like Discord': requirements, estimates with the arithmetic, a WebSocket gateway, a message data model on ScyllaDB keyed by channel and time bucket, ordering with Snowflake ids, delivering to a server with a million members, presence, read states, reconnects, and how to present it in 45 minutes.