
Founding AI Engineer | Creator of https://teapawt.net/t.co/Cf77Zg3hJp https://teapawt.net/t.co/InDFWaL2x6 https://teapawt.net/t.co/EKLq7Lk0TA Open for Collabs
Bengaluru
Joined October 2024
- Tweets1.2K
- Following1.6K
- Followers429
- Likes26.2K
Trilochanprasad B Hilli retweeted
I treat system design like a checklist.
Here’s my go-to mental TODO list when building systems:
Fundamentals
- What are the read patterns?
- What are the write patterns?
- Who owns the source of truth?
- Is consistency or availability more critical?
- Single writer or multiple writers?
Architecture
- Synchronous or async?
- Do I need a queue, or is a cron job enough?
- Can I separate the compute from storage?
- Stateless or stateful services?
- Contracts versioned?
Reliability
- What happens when this fails?
- Where’s the retry logic, and is it idempotent?
- Are we alerting to symptoms or root causes?
- Timeouts configured?
Scaling
- How do reads scale?
- How do writes scale?
- Will this design hold up at 10x traffic?
- What’s the hot path, and how do we optimize it?
Observability
- Do we log what we need to debug in production?
- Can we trace a request across services?
- What metrics define “healthy”?
- Debuggable without redeploy?
I don’t always follow it linearly, but if something breaks or feels off, this list helps me pinpoint what I may have overlooked.
Add something for the next engineer 👇
Trilochanprasad B Hilli retweeted
AWS security common sense:
- No IAM users. Use SSO + roles only
- Root account: MFA on, keys deleted, never use it
- No long-lived access keys anywhere. OIDC for CI/CD
- Least privilege
- S3 Block Public Access on at the account level
- CloudTrail on in every region, logs in a separate account
- GuardDuty on. Actually read the findings
- Secrets in Secrets Manager, rotated
- IMDSv2 enforced on every EC2
- Security groups: 0.0.0.0/0 only on 80/443
- Billing alerts. A cost spike is often your first breach signal
Boring stuff, but it stops 90% of incidents.
Top 10 Backend Resilience Patterns Every Software Engineer Should Know (With Resources).
Building a system that works is easy. Building one that survives failures is the real challenge.
1. Circuit Breaker
Stop sending requests to a failing service to prevent cascading failures.
Resource: martinfowler.com/bliki/Circu…
2. Retry with Exponential Backoff
Retry transient failures with increasing delays and randomized jitter.
Resource: aws.amazon.com/builders-libr…
3. Bulkhead Pattern
Isolate resources so that one failing component doesn’t bring down the entire system.
Resource: learn.microsoft.com/en-us/az…
4. Rate Limiting
Control incoming request volume to protect services from excessive traffic.
Resource: redis.io/learn
5. Load Shedding
Reject excess requests when the system reaches its processing capacity.
Resource: aws.amazon.com/builders-libr…
6. Backpressure
Slow down producers when consumers cannot process incoming requests fast enough.
Resource: reactive-streams.org/
7. Graceful Degradation
Disable non-essential features during failures while keeping critical functionality operational.
Resource: sre.google/sre-book/handling…
8. Transactional Outbox
Atomically persist business changes and outgoing messages to prevent event loss.
Resource: microservices.io/patterns/da…
9. Idempotency
Ensure repeated requests don’t produce duplicate business operations.
Resource: aws.amazon.com/builders-libr…
10. Dead-Letter Queue
Isolate messages that repeatedly fail processing for investigation and controlled replay.
Resource: learn.microsoft.com/en-us/az…
Bonus concepts:
• Timeout propagation
• Health checks
• Failover mechanisms
• Chaos engineering
• Request hedging
• Disaster recovery
Junior engineers design for the happy path.
Experienced engineers design for network failures, database crashes, duplicate events and unexpected traffic spikes.
Failure is inevitable. Cascading failure doesn’t have to be.
(Bookmark it)
Trilochanprasad B Hilli retweeted
I am telling you this. Learn about Ontological Knowledge graphs.
The industries who are trying to adopt AI are going crazy for this.
Trilochanprasad B Hilli retweeted
Failure modes to bring up in every system design round:
→ The dependency gets slow (worse than down)
→ The same message arrives twice
→ The cache restarts empty
→ One key gets half the traffic
→ Two servers' clocks disagree
→ A short blip turns into a retry storm
→ A bad message blocks the whole queue
→ The primary dies mid-write
→ A config change goes out everywhere at once
→ The disk fills up with logs
Pick the 3 that fit your design and say how you'd handle each.
Trilochanprasad B Hilli retweeted
recommended reading by @mickeynp. many nice ideas in dreamcoder.
masteringemacs.org/article/a…
Trilochanprasad B Hilli retweeted
8 engineering blog posts on how real companies scaled their databases:
1. Herding elephants: Lessons learned from sharding Postgres at Notion
2. Scaling Datastores at Slack with Vitess
3. MySQL High Availability at GitHub
4. Inside the Magic Pocket (Dropbox)
5. Designing Schemaless, Uber Engineering's Scalable Datastore Using MySQL
6. A Pods Architecture to Allow Shopify to Scale
7. Sharding Pinterest: How we scaled our MySQL fleet
8. How Figma's databases team lived to tell the scale
Read one a week. Search the titles.
Trilochanprasad B Hilli retweeted
It's true. Startups are basically a series of disasters. Although YC's official motto is "Make something people want," we had two unofficial ones as well: "Never a dull moment" and "You can't make this stuff up."
Trilochanprasad B Hilli retweeted
Replying to @caterinacurti
The official docs are very good. I read it from there but might have to spend some time with it. a2a-protocol.org/latest/topi…
Trilochanprasad B Hilli retweeted
If you're building with agents, or thinking about software factories, don't miss this new post from Matthew Goldberg about the new AWS Emulator: aboutamazon.com/news/aws/how…
There are two very cool things here.
Trilochanprasad B Hilli retweeted
I learn from first principles.
To understand how AI memory works under the hood, I built OpenMemoryUI: openmemoryui.netlify.app
Then I built OpenMCPUI to understand MCP from the inside: openmcpui.netlify.app
Now I'm building OpenMultiAgentUI, a platform that shows how a multi-agent system really works, end to end:
- tool calls and MCP servers
- guardrails and safety
- authentication and authorisation
- permissions
- databases and memory
Every layer is visible, clickable and traceable, so you can see exactly what happens when an agent handles a request.
STAY TUNED













































