SystemDesignLaws
Subscribe
Sign in
Home
Archive
Leaderboard
About
Latest
Top
Discussions
A Repo Setting Chose Where Claude Code Sent Your API Key
CVE-2026-21852 and what a repo settings file teaches about trust prompts, base URLs and pinning credentials to one host.
Nov 17
•
Jimmy Malhan
CamoLeak: The Chat Answer Was the Exfiltration Channel
How hidden PR text turned Copilot Chat answers into an exfiltration channel, and five fixes for any LLM that renders its output.
Nov 13
•
Jimmy Malhan
1
API Gateway for System Design Interviews
One front door for routing, auth, rate limits and TLS, plus the egress gateway on the way out
Nov 10
•
Jimmy Malhan
Design a Distributed Rate Limiter
Sharded Redis, one atomic Lua script, token bucket by default, and a plan for when Redis is down
Nov 6
•
Jimmy Malhan
Consistent Hashing
Add one server and move about 20% of keys: the ring, virtual nodes and replicas, ready for interviews
Nov 3
•
Jimmy Malhan
October 2026
AI-Assisted Commits Leak Secrets at Twice the Rate: Designing for It
What GitGuardian’s 2026 numbers mean for system design, and a four-layer answer
Oct 30
•
Jimmy Malhan
2
Your AI Gateway Logs Are a Credential Store
What the LiteLLM 1.107.0 compromise teaches about logging prompts, and four fixes, cheapest first
Oct 27
•
Jimmy Malhan
March 2026
Real-time Updates
- Real-time systems need two hops: server to client (WebSockets, SSE, long polling) and source to server (Pub/Su...
Mar 16
•
Jimmy Malhan
3
Multi-step Processes
- Multi-step processes fail halfway: payment charged but inventory not reserved. Use workflow engines like Tempo...
Mar 16
•
Jimmy Malhan
1
1
Dealing with Contention
- Fix race conditions with atomicity, locks, or optimistic concurrency. Scale to distributed coordination when m...
Mar 16
•
Jimmy Malhan
1
Caching for System Design Interviews
- Caching cuts latency 50x and reduces DB load by 95%+. Cache-aside with Redis is the default. Layer CDN for glo...
Mar 16
•
Jimmy Malhan
2
Managing Long-Running Tasks
- When a task takes more than a few seconds, do not make the client wait. Accept the request immediately (return...
Mar 16
•
Jimmy Malhan
1
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts