Bill Lin

Bill Lin

Senior Backend Engineer

Latest posts All posts →

Abuse Prevention: Making Scalping, Credential Stuffing, and Fake Accounts Unprofitable for Adversaries Who Adapt

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.

System Design System Design · Bot Protection · Fraud Prevention

Authentication: Sessions, Tokens, OAuth 2.0/OIDC, and Where Login State Should Live

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.

System Design System Design · Authentication · OAuth 2.0

Authorization Models and the OWASP API Top 10: What You Can Do After Logging In

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.

System Design System Design · Authorization · OWASP

Batch and Stream: Monthly Settlement Reports and a Live Trending List, Two Ways to Process Data

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.

System Design System Design · Batch Processing · Stream Processing

Design Problem: A Chat System, Where Direct Messages and a 50,000-Person Live Chat Room Are Two Different Problems

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.

System Design System Design · Chat · WebSocket

CI/CD and Deployment Strategies: Old and New Versions Run Side by Side, So Design Changes for It

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.

System Design System Design · CI/CD · Canary

System Design series 11 parts · 51 posts

Categories All categories →