<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bill.Lin&#39;s Notes</title><link>https://bill-lin.dev/en/</link><description>Recent content in Bill.Lin&#39;s Notes</description><language>en</language><lastBuildDate>Mon, 23 Nov 2026 00:00:00 GMT</lastBuildDate><atom:link href="https://bill-lin.dev/en/index.xml" rel="self" type="application/rss+xml"/><item><title>Abuse Prevention: Making Scalping, Credential Stuffing, and Fake Accounts Unprofitable for Adversaries Who Adapt</title><link>https://bill-lin.dev/en/post/systemdesign/abuse-prevention/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/abuse-prevention/</guid><description>System Design series Part 8-5: scalping, credential stuffing, fake accounts, SMS pumping; multi-key rate limits, risk-based step-up, lotteries, and a detect-respond loop.</description></item><item><title>Authentication: Sessions, Tokens, OAuth 2.0/OIDC, and Where Login State Should Live</title><link>https://bill-lin.dev/en/post/systemdesign/authentication-session-token-oidc/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/authentication-session-token-oidc/</guid><description>System Design series Part 8-1: sessions vs tokens on revocation and scaling, OAuth 2.0/OIDC code flow and PKCE, browser BFFs, passwords, passkeys, and common attacks.</description></item><item><title>Authorization Models and the OWASP API Top 10: What You Can Do After Logging In</title><link>https://bill-lin.dev/en/post/systemdesign/authorization-owasp-api-top10/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/authorization-owasp-api-top10/</guid><description>System Design series Part 8-2: function, object, and property-level authorization, RBAC vs ABAC vs ReBAC, where checks go, BOLA and SSRF defenses, the OWASP API Top 10.</description></item><item><title>Batch and Stream: Monthly Settlement Reports and a Live Trending List, Two Ways to Process Data</title><link>https://bill-lin.dev/en/post/systemdesign/batch-vs-stream/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/batch-vs-stream/</guid><description>System Design series Part 7-4: batch vs stream, restartable chunked batches, event time, windows and late data, Lambda and Kappa, using Spring Batch and Kafka Streams.</description></item><item><title>Design Problem: A Chat System, Where Direct Messages and a 50,000-Person Live Chat Room Are Two Different Problems</title><link>https://bill-lin.dev/en/post/systemdesign/chat-system/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/chat-system/</guid><description>System Design series Part 9-3: DMs and live chat: per-conversation sequence numbers, client message IDs, offline sync, unread counts, batched pushes, and a threat model.</description></item><item><title>CI/CD and Deployment Strategies: Old and New Versions Run Side by Side, So Design Changes for It</title><link>https://bill-lin.dev/en/post/systemdesign/cicd-deployment/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/cicd-deployment/</guid><description>System Design series Part 10-2: build-once pipelines, rolling vs blue-green vs canary, expand–contract schema changes, canary analysis, flags, and supply chain security.</description></item><item><title>Design Problem: A Distributed Scheduler, Where a Million Delayed Tasks Must Each Run Only Once, at the Right Time</title><link>https://bill-lin.dev/en/post/systemdesign/distributed-scheduler/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/distributed-scheduler/</guid><description>System Design series Part 9-7: delayed tasks like payment deadlines and reminders: SKIP LOCKED, leases and claim IDs, retries, jitter, missed runs, and a threat model.</description></item><item><title>Encryption in Transit and at Rest, and Secrets Management: What Encryption Protects Depends on Who Can Get the Key</title><link>https://bill-lin.dev/en/post/systemdesign/encryption-secrets/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/encryption-secrets/</guid><description>System Design series Part 8-4: what TLS, storage-layer, and field encryption each stop; envelope encryption, AEAD, key rotation, and managing DB passwords and API keys.</description></item><item><title>Design Problem: Flash Sale Ticketing, and How Much Each Layer Must Turn Away When 500,000 People Chase 10,000 Seats</title><link>https://bill-lin.dev/en/post/systemdesign/flash-sale-ticketing/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/flash-sale-ticketing/</guid><description>System Design series Part 9-4: the intro&#39;s sign-ups as a flash sale. CDN, waiting room, Redis reservation, async writes cut load; the DB stops overselling. Threat model.</description></item><item><title>After BOLA Gets Past the BFF: How Microservices Pass Along Who Is Calling and for Whom</title><link>https://bill-lin.dev/en/post/systemdesign/identity-propagation/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/identity-propagation/</guid><description>System Design series Part 8-3: inside the network, prove the calling service with mTLS, pass the user via token exchange and Transaction Tokens, avoid confused deputies.</description></item><item><title>Design Problem: A Leaderboard, with Ranks for Ten Million Members, Who Comes First in a Tie, and Time Decay for Trending Talks</title><link>https://bill-lin.dev/en/post/systemdesign/leaderboard/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/leaderboard/</guid><description>System Design series Part 9-6: a weekly leaderboard for 10M members on a Redis sorted set, first-to-reach tie-breaks, a rebuildable ledger, and decaying trending talks.</description></item><item><title>Design Problem: A News Feed, Push vs Pull, and the Celebrity Problem</title><link>https://bill-lin.dev/en/post/systemdesign/news-feed/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/news-feed/</guid><description>System Design series Part 9-2: push vs pull costs for a speaker feed, a hybrid for celebrities, timeline storage, cursor paging, visibility checks, and a threat model.</description></item><item><title>Design Problem: A Notification System Where Verification Codes Cannot Wait Behind 10 Million Newsletters</title><link>https://bill-lin.dev/en/post/systemdesign/notification-system/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/notification-system/</guid><description>System Design series Part 9-5: multichannel notifications: queues and domains split by priority, dedup, quiet hours, dead push tokens, bounces, unsubscribe, threat model.</description></item><item><title>Sagas and the Outbox Pattern: Keeping a Cross-Service Flow Consistent Without Distributed Transactions</title><link>https://bill-lin.dev/en/post/systemdesign/saga-outbox/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/saga-outbox/</guid><description>System Design series Part 7-3: sagas instead of distributed transactions, choreography vs orchestration, compensation, pivot steps, isolation anomalies, timeouts, outbox.</description></item><item><title>Service Discovery: How Services Find Each Other, and What Happens When an Instance Disappears</title><link>https://bill-lin.dev/en/post/systemdesign/service-discovery/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/service-discovery/</guid><description>System Design series Part 7-2: client-side, server-side, DNS, and service mesh discovery; registration, health checks, stale data, Pod shutdown order, registry spoofing.</description></item><item><title>Testing at Scale: End-to-End Tests Cannot Carry Thirty Services</title><link>https://bill-lin.dev/en/post/systemdesign/testing-at-scale/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/testing-at-scale/</guid><description>System Design series Part 10-1: why end-to-end tests fall short at 30 services; real-dependency integration, contract, open-model load, fault, and authorization tests.</description></item><item><title>Design Problem: A URL Shortener, from Estimates and Code Generation to Phishing Abuse</title><link>https://bill-lin.dev/en/post/systemdesign/url-shortener/</link><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/url-shortener/</guid><description>System Design series Part 9-1: a URL shortener from estimates; code generation, 301 vs 302, caching, click stats, cross-region lag, STRIDE for phishing and enumeration.</description></item><item><title>Bloom Filters and HyperLogLog: Trading a Little Error for a Lot of Memory, and What to Do When Someone Games the Estimate</title><link>https://bill-lin.dev/en/post/systemdesign/bloom-filter-hyperloglog/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/bloom-filter-hyperloglog/</guid><description>System Design series Part 3-6: Bloom filter error vs capacity, HyperLogLog error and merging, cache penetration, unique visitors, and count inflation via a public hash.</description></item><item><title>B-Tree vs LSM-Tree: In-Place Updates vs Append-Only, and the Write, Read, and Space Amplification Trade-offs</title><link>https://bill-lin.dev/en/post/systemdesign/btree-vs-lsm/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/btree-vs-lsm/</guid><description>System Design series Part 3-3: B+Tree in-place updates vs LSM-Tree appends, three amplifications simulated for tiering and leveling, tombstone traps, and delete vs erase.</description></item><item><title>Caching in Depth: Hit Ratio Math, Write-Order Races, Penetration, Breakdown, Avalanche, and Multi-Level Caches</title><link>https://bill-lin.dev/en/post/systemdesign/caching/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/caching/</guid><description>System Design series Part 2-3: hit ratio math, cache-aside write races, penetration, breakdown, avalanche, hot keys, multi-level caches, and evict-after-commit in Spring.</description></item><item><title>CAP and PACELC: Consistency or Availability During a Partition, Latency or Consistency Otherwise</title><link>https://bill-lin.dev/en/post/systemdesign/cap-pacelc/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/cap-pacelc/</guid><description>System Design series Part 4-5: the real CAP and PACELC trade-offs, a simulated cross-site quorum, per-feature Cassandra consistency, and authorization in a partition.</description></item><item><title>CDNs and HTTP Caching: Cache-Control, Versioned Assets, Edge Caching, and Cache Attacks</title><link>https://bill-lin.dev/en/post/systemdesign/cdn/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/cdn/</guid><description>System Design series Part 2-4: how CDNs cut latency and origin bandwidth, Cache-Control, ETag and 304, versioned assets, API micro-caching, cache deception and poisoning.</description></item><item><title>Circuit Breakers and Bulkheads: Keep One Broken Downstream from Taking Down the Whole System</title><link>https://bill-lin.dev/en/post/systemdesign/circuit-breaker-bulkhead/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/circuit-breaker-bulkhead/</guid><description>System Design series Part 6-3: circuit breakers fail fast and fall back when a downstream fails, bulkheads stop cascading failures, in Resilience4j and @ConcurrencyLimit.</description></item><item><title>Consensus and Raft: Elections, Log Replication, Read Consistency, and Leader Election with etcd</title><link>https://bill-lin.dev/en/post/systemdesign/consensus-raft/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/consensus-raft/</guid><description>System Design series Part 4-6: Raft elections, log replication, and safety; majorities, linearizable reads, membership changes; running a job on one instance with etcd.</description></item><item><title>Consistent Hashing: Moving Only 1/N When Nodes Change, Virtual Nodes, Rendezvous Hashing, and Deliberately Chosen Keys</title><link>https://bill-lin.dev/en/post/systemdesign/consistent-hashing/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/consistent-hashing/</guid><description>System Design series Part 4-3: key movement and load with hash rings, virtual nodes, and rendezvous hashing, Guava cache routing and work assignment, and crafted keys.</description></item><item><title>Distributed IDs: UUIDv7, Snowflake, and Segment Allocation, Compared on Order, Size, and What They Leak</title><link>https://bill-lin.dev/en/post/systemdesign/distributed-id/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/distributed-id/</guid><description>System Design series Part 4-4: a simulation of random vs time-ordered keys in a B+Tree, UUIDv7 vs Snowflake vs segment allocation, and what public IDs leak.</description></item><item><title>Distributed Locks and Fencing Tokens: The Lock Expires, and the Holder Does Not Know</title><link>https://bill-lin.dev/en/post/systemdesign/distributed-lock/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/distributed-lock/</guid><description>System Design series Part 4-7: why lease locks fail in GC pauses and failover; Redis, Redlock, databases, etcd compared; fencing tokens and idempotency keys for payouts.</description></item><item><title>Full-Text Search and Inverted Indexes: Chinese Tokenization, BM25 Ranking, Index Sync, and the Authorization Boundary of Search</title><link>https://bill-lin.dev/en/post/systemdesign/full-text-search/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/full-text-search/</guid><description>System Design series Part 3-7: beyond LIKE, an inverted index with Chinese bigram traps and BM25, MySQL FULLTEXT vs Elasticsearch, index sync, and search authorization.</description></item><item><title>Geohash and Geospatial Indexes: Cell Boundaries in Nearby Search, Redis GEO, and How Distance Leaks Location</title><link>https://bill-lin.dev/en/post/systemdesign/geohash/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/geohash/</guid><description>System Design series Part 3-8: Geohash makes coordinates searchable by a B+Tree; cell boundaries, 9-cell queries, Redis GEO vs MySQL SPATIAL vs H3, and trilateration.</description></item><item><title>Idempotency and Idempotency Keys: Making Retries Safe</title><link>https://bill-lin.dev/en/post/systemdesign/idempotency-key/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/idempotency-key/</guid><description>System Design series Part 5-4: retries that double sign-ups and charges; unique keys, conditional updates, Idempotency-Key; concurrency, fingerprints, expiry, key scope.</description></item><item><title>Indexes and B+Trees: From Disk Pages to Composite Indexes, Index-Defeating Queries, and Keyset Pagination</title><link>https://bill-lin.dev/en/post/systemdesign/index-btree/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/index-btree/</guid><description>System Design series Part 3-2: why three B+Tree levels hold 100M rows, clustered vs secondary indexes, leftmost prefixes, index-defeating SQL, write costs, keyset paging.</description></item><item><title>Latency, Throughput, and p99: Stop Looking at Averages and Size Thread and Connection Pools with Little&#39;s Law</title><link>https://bill-lin.dev/en/post/systemdesign/latency-throughput/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/latency-throughput/</guid><description>System Design series Part 1-2: latency, throughput, percentiles, why averages lie, how fan-out grows the tail, why utilization cannot max out, and Little&#39;s Law for pools.</description></item><item><title>Load Balancing in Depth: L4 and L7, Algorithms, Health Checks, and Connection Draining</title><link>https://bill-lin.dev/en/post/systemdesign/load-balancing/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/load-balancing/</guid><description>System Design series Part 2-2: L4 vs L7, a simulation of Round Robin, P2C, and Least Outstanding on a slow node, non-cascading health checks, keep-alive, and draining.</description></item><item><title>Message Queues: Decoupling, Peak Shaving, Retries, and Why Messages Will Be Duplicated</title><link>https://bill-lin.dev/en/post/systemdesign/message-queue/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/message-queue/</guid><description>System Design series Part 5-2: queues to decouple, shave peaks, and retry; acks and duplicates, DLQs, ordering, dual writes, with RabbitMQ quorum queues and Spring AMQP.</description></item><item><title>Monolith vs Microservices: Get the Boundaries Right Before You Decide Whether to Split</title><link>https://bill-lin.dev/en/post/systemdesign/monolith-vs-microservices/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/monolith-vs-microservices/</guid><description>System Design series Part 7-1: what monoliths, modular monoliths, and microservices cost; capability boundaries, data ownership, distributed monoliths, Spring Modulith.</description></item><item><title>Napkin Math for Capacity Estimates: Latency Numbers and Simple Arithmetic for Machine Counts and Storage</title><link>https://bill-lin.dev/en/post/systemdesign/napkin-math/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/napkin-math/</guid><description>System Design series Part 1-3: conversions and latency numbers, then peak QPS, machines, storage, and bandwidth from daily active users, with a runnable Java estimator.</description></item><item><title>File and Object Storage: Block vs File vs Object, Direct Multipart Uploads, Metadata Consistency, and Upload Security</title><link>https://bill-lin.dev/en/post/systemdesign/object-storage/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/object-storage/</guid><description>System Design series Part 3-5: block, file, and object storage, how object stores scale, direct multipart uploads, keeping DB and files consistent, and upload security.</description></item><item><title>Observability: Metrics, Logs, Traces, and SLOs, from &#39;It Seems Slow&#39; to Finding the Cause</title><link>https://bill-lin.dev/en/post/systemdesign/observability/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/observability/</guid><description>System Design series Part 6-5: find problems with metrics, logs, and traces; cardinality explosions, sampling, SLO burn-rate alerts, and audit log and telemetry security.</description></item><item><title>Pub/Sub and Delivery Semantics: Kafka Partitions, Consumer Groups, and What Exactly-Once Really Guarantees</title><link>https://bill-lin.dev/en/post/systemdesign/pubsub-delivery-semantics/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/pubsub-delivery-semantics/</guid><description>System Design series Part 5-3: Pub/Sub in RabbitMQ vs Kafka, what at-least-once and exactly-once mean, partition ordering, consumer groups, DLTs, idempotent consumers.</description></item><item><title>Rate Limiting: Algorithms, Distributed Rate Limiting, and How It Differs from Load Shedding</title><link>https://bill-lin.dev/en/post/systemdesign/rate-limiting/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/rate-limiting/</guid><description>System Design series Part 6-4: fixed window, sliding window, and token bucket compared, distributed limits, keys and 429s, versus load shedding, and a Redis Lua script.</description></item><item><title>Real-Time Updates: Choosing Between Polling, Long Polling, SSE, and WebSocket, and Pushing from Many Servers</title><link>https://bill-lin.dev/en/post/systemdesign/realtime-updates/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/realtime-updates/</guid><description>System Design series Part 5-5: polling, long polling, SSE, WebSocket compared; multi-server fan-out, conflation, reconnect gaps, Origin checks, per-message authorization.</description></item><item><title>Redundancy, Failover, and Disaster Recovery: From Availability Numbers to Restore Drills</title><link>https://bill-lin.dev/en/post/systemdesign/redundancy-failover-dr/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/redundancy-failover-dr/</guid><description>System Design series Part 6-1: availability math, RPO, and RTO for redundancy; the four failover steps; why replication is not a backup; restore drills and ransomware.</description></item><item><title>Replication and Replication Lag: Why Users Cannot Read What They Just Wrote After Read/Write Splitting</title><link>https://bill-lin.dev/en/post/systemdesign/replication-lag/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/replication-lag/</guid><description>System Design series Part 4-1: simulating four read routings under lag spikes, Spring read/write splitting, read-your-writes with GTIDs, and stale permission checks.</description></item><item><title>The Journey of an HTTP Request: Timing Every Leg from DNS, TCP, and TLS Through the Load Balancer to the Database</title><link>https://bill-lin.dev/en/post/systemdesign/request-lifecycle/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/request-lifecycle/</guid><description>System Design series Part 1-1: timing an HTTPS request from DNS and TCP/TLS to the LB, Spring Boot, and MySQL, why code cannot fix cross-region latency, and what does.</description></item><item><title>REST, gRPC, and GraphQL: Choosing an API Style by Caller</title><link>https://bill-lin.dev/en/post/systemdesign/rest-grpc-graphql/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/rest-grpc-graphql/</guid><description>System Design series Part 5-1: compare REST, gRPC, and GraphQL on contracts, caching, streaming, and debugging; pick by caller; handle deadlines, N+1, and query depth.</description></item><item><title>Vertical Scaling, Horizontal Scaling, and Stateless Services: Where Sessions, Files, Scheduled Jobs, and Local State Should Go</title><link>https://bill-lin.dev/en/post/systemdesign/scaling-stateless/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/scaling-stateless/</guid><description>System Design series Part 2-1: scale up vs scale out, state hidden in your app, and moving it out with Spring Session, ShedLock, S3 presigned URLs, and graceful shutdown.</description></item><item><title>Sharding: Choosing a Shard Key, Moving Data When You Reshard, and What You Lose Across Shards</title><link>https://bill-lin.dev/en/post/systemdesign/sharding/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/sharding/</guid><description>System Design series Part 4-2: shard key skew, resharding cost, and fan-out latency simulated; sign-ups sharded by talk in Spring with an outbox index; tenant isolation.</description></item><item><title>SQL vs NoSQL: Choose a Database by Access Pattern, Not by Buzzword</title><link>https://bill-lin.dev/en/post/systemdesign/sql-vs-nosql/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/sql-vs-nosql/</guid><description>System Design series Part 3-1: the trade-offs of five data models, why NoSQL is fast and what it costs, and MySQL JSON columns and partitioning to delay a new database.</description></item><item><title>How to Think About System Design: Requirements, Estimates, Trade-offs, and HLD/LLD</title><link>https://bill-lin.dev/en/post/systemdesign/system-design-thinking/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/system-design-thinking/</guid><description>System Design series intro: clarify requirements, estimate load, find the real bottleneck, and record the trade-off in an ADR for an event sign-up system. Includes the series map.</description></item><item><title>Timeouts, Retries, Backoff, and Jitter: How Retries Save a System, and How They Bring It Down</title><link>https://bill-lin.dev/en/post/systemdesign/timeout-retry-backoff/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/timeout-retry-backoff/</guid><description>System Design series Part 6-2: timeouts and timeout budgets, which errors to retry, backoff, jitter, and retry budgets against retry storms, with Spring 7 @Retryable.</description></item><item><title>Transactions and Isolation Levels: MVCC, Lost Updates, Write Skew, and Spring Transaction Boundaries</title><link>https://bill-lin.dev/en/post/systemdesign/transaction-isolation/</link><pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate><guid>https://bill-lin.dev/en/post/systemdesign/transaction-isolation/</guid><description>System Design series Part 3-4: lost update and write skew in sign-ups; conditional UPDATE, locks, unique constraints; isolation levels by database; Spring transactions.</description></item></channel></rss>