<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Case-Study on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/case-study/</link><description>Recent content in Case-Study on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/case-study/index.xml" rel="self" type="application/rss+xml"/><item><title>Designing an Order Management System</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This case study designs the system that takes a customer&amp;rsquo;s order in an online shop, reserves stock, takes payment and hands the order to fulfilment. It follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt; and reuses the retail domain from the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/fundamentals/"&gt;DDD articles&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a URL Shortener</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/url-shortener/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/url-shortener/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A URL shortener turns &lt;code&gt;https://example.com/blog/2026/11/a-very-long-article-title?utm_source=newsletter&lt;/code&gt; into &lt;code&gt;https://sho.rt/3Fq9Zk&lt;/code&gt; and redirects visitors from the short URL to the original. It is a classic first system design question because it is small enough to finish, yet touches ID generation, encoding, caching, read-heavy scaling and analytics. It follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Rate Limiter</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/rate-limiter/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/rate-limiter/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;rate limiter&lt;/strong&gt; caps how many requests a client may make in a time period, for example 100 requests per minute per API key. It protects services from abuse and denial-of-service, controls cost (paid third-party APIs), and keeps one noisy tenant from starving others. This case study designs a distributed rate limiter for an API platform, following the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Payment System</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/payment-system/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/payment-system/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;When a customer clicks &lt;strong&gt;Buy&lt;/strong&gt;, money must move from the buyer to the marketplace (&lt;strong&gt;pay-in&lt;/strong&gt;), and later from the marketplace to sellers (&lt;strong&gt;pay-out&lt;/strong&gt;). The payment system records every movement correctly, never charges twice, never loses money, and can prove it. Correctness matters far more than raw throughput. This design follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt; and builds on the payment designs in the ByteByteGo handbook.&lt;/p&gt;</description></item><item><title>Designing a Proximity Service (Nearby Places)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/proximity-service/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/proximity-service/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;proximity service&lt;/strong&gt; answers &amp;ldquo;what is near me?&amp;rdquo;: restaurants within 1 km, hotels near a landmark, drivers near a pickup point. Yelp and Google Maps rely on one. The interesting part is the &lt;strong&gt;geospatial index&lt;/strong&gt;: how to find nearby points among hundreds of millions quickly. This design follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt; and expands the ByteByteGo handbook&amp;rsquo;s Yelp and quadtree discussions.&lt;/p&gt;</description></item><item><title>Designing a Chat System (WhatsApp, Discord)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/chat-system/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/chat-system/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A chat system delivers messages between users in near real time, keeps history, and works when phones go offline and come back. WhatsApp and Discord are the reference points: both keep a &lt;strong&gt;persistent connection&lt;/strong&gt; per device and store messages in a &lt;strong&gt;horizontally partitioned, write-optimised store&lt;/strong&gt;. This design follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a News Feed (Twitter / Instagram Timeline)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/news-feed/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/news-feed/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A news feed shows each user the recent posts of the accounts they follow, newest or best first. It is the canonical example of &lt;strong&gt;fan-out&lt;/strong&gt;: one post must appear in the feeds of every follower, and follower counts range from zero to hundreds of millions. Kleppmann uses Twitter&amp;rsquo;s home timeline as his main example of describing load. This design follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Notification Service</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/notification-service/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/notification-service/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Almost every product sends notifications: order confirmations, password resets, chat messages, marketing campaigns. A &lt;strong&gt;notification service&lt;/strong&gt; centralises this so product teams send an event (&amp;ldquo;order shipped to user 42&amp;rdquo;) and the service decides &lt;strong&gt;whether, where and how&lt;/strong&gt; to deliver it. ByteByteGo&amp;rsquo;s flowchart of how Slack decides to send a notification shows why &amp;ldquo;a simple feature&amp;rdquo; is not simple: a dozen checks (muted channels, do-not-disturb, active on desktop, mention type, thread settings) run before anything is sent.&lt;/p&gt;</description></item><item><title>Designing a Video Streaming Platform (YouTube, Netflix)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/video-streaming/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/video-streaming/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A video platform has two very different halves: a &lt;strong&gt;write path&lt;/strong&gt; where creators upload large files that are processed into many formats, and a &lt;strong&gt;read path&lt;/strong&gt; where millions of viewers stream those formats with smooth playback on any network. Bandwidth, not compute, dominates cost, so most of the design is about &lt;strong&gt;getting bytes close to viewers&lt;/strong&gt;. This case study follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Web Crawler</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/web-crawler/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/web-crawler/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;web crawler&lt;/strong&gt; downloads web pages, extracts their links and downloads those in turn. Search engines, archives, price monitors and AI training pipelines all rely on crawlers. The algorithm is a breadth-first traversal; the engineering problems are &lt;strong&gt;scale&lt;/strong&gt;, &lt;strong&gt;politeness&lt;/strong&gt; (not overloading websites), &lt;strong&gt;duplicate avoidance&lt;/strong&gt; and &lt;strong&gt;robustness&lt;/strong&gt; against a hostile, messy web. ByteByteGo&amp;rsquo;s &amp;ldquo;how to avoid crawling duplicate URLs at Google scale&amp;rdquo; focuses on exactly the dedup part.&lt;/p&gt;</description></item><item><title>Designing Search Autocomplete (Typeahead)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/search-autocomplete/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/search-autocomplete/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;As a user types &amp;ldquo;sys&amp;rdquo;, the search box suggests &amp;ldquo;system design&amp;rdquo;, &amp;ldquo;system of a down&amp;rdquo;, &amp;ldquo;sysadmin&amp;rdquo;. &lt;strong&gt;Search autocomplete&lt;/strong&gt; must return the top suggestions for a prefix in under 100 ms while users type several characters per second, so the serving path is pure in-memory lookup and all heavy work happens offline. Follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Distributed Key-Value Store (Dynamo-Style)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/distributed-key-value-store/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/distributed-key-value-store/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Designing a key-value store is a favourite interview question because it combines nearly every idea in &lt;a href="https://samirsahoo.github.io/design-patterns-hub/data-systems/"&gt;Data-Intensive Systems&lt;/a&gt;: partitioning, replication, quorums, conflict resolution, failure detection and storage engines. The reference design is Amazon&amp;rsquo;s &lt;strong&gt;Dynamo&lt;/strong&gt; (2007), whose ideas live on in Cassandra, Riak, ScyllaDB and DynamoDB&amp;rsquo;s internals.&lt;/p&gt;</description></item><item><title>Designing Collaborative Editing (Google Docs)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/collaborative-editing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/collaborative-editing/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;In Google Docs several people type into the same document at once and see each other&amp;rsquo;s changes within a fraction of a second, and everyone ends up with the &lt;strong&gt;same text&lt;/strong&gt;. ByteByteGo&amp;rsquo;s &amp;ldquo;design Google Docs&amp;rdquo; interview question centres on the hard part: merging concurrent edits so all copies &lt;strong&gt;converge&lt;/strong&gt; while each user&amp;rsquo;s intent is preserved. Follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Stock Exchange</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/stock-exchange/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/stock-exchange/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;An exchange matches buy and sell orders for securities. Its requirements are unlike a typical web system: &lt;strong&gt;latency is measured in microseconds&lt;/strong&gt;, &lt;strong&gt;fairness&lt;/strong&gt; demands a strict, deterministic order of events, and &lt;strong&gt;correctness&lt;/strong&gt; cannot be compromised. ByteByteGo describes how a modern exchange achieves microsecond latency by keeping the &lt;strong&gt;critical path&lt;/strong&gt; short and doing everything on it in memory. Follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Ride-Sharing Service (Uber, Lyft)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/ride-sharing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/ride-sharing/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A ride-sharing service matches riders with nearby drivers in seconds, tracks the trip on a map, and charges at the end. It looks like the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/proximity-service/"&gt;proximity service&lt;/a&gt;, with one crucial difference: &lt;strong&gt;the points move&lt;/strong&gt;. Millions of drivers send their location every few seconds, so the geospatial index is write-heavy and must live in memory. Follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Metrics Monitoring and Alerting System</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/metrics-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/metrics-monitoring/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A monitoring system collects numeric measurements (CPU, request rate, error count, latency histograms) from thousands of servers, stores them as &lt;strong&gt;time series&lt;/strong&gt;, draws dashboards and &lt;strong&gt;alerts&lt;/strong&gt; humans when something is wrong. ByteByteGo covers the &amp;ldquo;metrics monitoring and alerting system&amp;rdquo; and the question &amp;ldquo;which database shall I use for metrics?&amp;rdquo;. Follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing a Flash Sale System</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/flash-sale/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/flash-sale/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;flash sale&lt;/strong&gt; puts a small amount of stock (say 10,000 discounted consoles) on sale at a precise moment. Millions of users press &amp;ldquo;Buy&amp;rdquo; within seconds — traffic hundreds of times higher than normal, almost all of it doomed to fail. The system must stay up, &lt;strong&gt;never oversell&lt;/strong&gt;, and treat users fairly. ByteByteGo&amp;rsquo;s flash sale design lists the principles; this page applies them with the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Designing File Storage and Sync (Dropbox, Google Drive)</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/file-storage-sync/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/file-storage-sync/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A file sync service keeps a folder identical across a user&amp;rsquo;s laptop, phone and the cloud, and lets users share files. The key insight is to &lt;strong&gt;separate metadata from content&lt;/strong&gt;: files are split into &lt;strong&gt;content-addressed chunks&lt;/strong&gt; stored in object storage, while a strongly consistent metadata service records which chunks make up each file version. This also covers the &amp;ldquo;file upload service&amp;rdquo; design. Follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>