Solving High-Concurrency Bottlenecks: Implementing the Fan-Out Pattern for Timeline Delivery
Learn how to implement the Fan-out pattern to solve timeline scalability issues, moving from expensive database joins to pre-computed cached feeds.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to implement the Fan-out pattern to solve timeline scalability issues, moving from expensive database joins to pre-computed cached feeds.
A practical guide to Twitter API v2 Filtered Stream: rule management, resilient HTTP/2 connection handling, and a production-ready Python client with exponential back-off.
Twitter generates unique 64-bit IDs locally using a timestamp, worker ID and sequence counter, enabling approximate time ordering without a central sequencer.
Learn how to use Twitter API v2's next_token for reliable cursor‑based pagination, see a Python example that handles rate limits, and understand the trade‑offs involved.
Learn how to solve the 'Celebrity Problem' in real-time feeds by implementing a hybrid Fan-out-on-Write and Fan-out-on-Load architecture to balance latency and write amplification.
Learn how the fan-out pattern solves the read-latency problem in social feeds and why a hybrid push/pull model is necessary to handle celebrity accounts and write amplification.
A minimal yet robust architecture for a Twitter‑style timeline: decouple ingestion, use a fan‑out cache, enforce data boundaries, and monitor key metrics to keep latency low and privacy intact.
Pagination Window Stability in Recent Search When building an archival or monitoring workflow around the X API v2 recent search endpoint, the practical concern is whether repeated calls with next_token traverse a fixed snapshot or a continuously shifting index. The endpoint is documented to return Tweets from roughly the last seven days, but it is backed by
Explore how Twitter transitioned from a Ruby monolith to a JVM-based microservices architecture to solve the 'celebrity problem' using a hybrid fan-out strategy.