Trilochanprasad B Hilli (@tpbh108_dev) header
Trilochanprasad B Hilli (@tpbh108_dev) profile picture

Founding AI Engineer | Creator of https://nitter.gq/t.co/Cf77Zg3hJp https://nitter.gq/t.co/InDFWaL2x6 https://nitter.gq/t.co/EKLq7Lk0TA

Bengaluru
Joined October 2024
Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)Photo by Trilochanprasad B Hilli (@tpbh108_dev)
Users hate waiting. They hate errors even more. In ScoreResume.com the resume scoring sometimes takes 40 to 70 seconds. If I ran that inside the request, half the users would hit a timeout and think the whole thing was broken. So the API just drops a job in a BullMQ queue and says processing. The worker picks it up, does the RAG and scoring, retries with backoff if the model is slow, and only then notifies the user. Jobs that fail after three tries go to a dead letter queue so I can actually see them. I was worried every slow LLM call would turn into a 502 and a lost customer. The goal was simple. The user should never feel the delay. It worked. 25 plus paying users and the request never dies because of a model timeout. If your AI feature can take more than 10 seconds, do you still run it inside the HTTP request?
2
47
I reduced cost of our story api by over 100% Long running calls or agents are costly. Most AI pipelines treat a crash like the end of the world. You either lose the whole job or you burn money regenerating everything from scratch. In Prajna I got tired of that. Every step of a story, the text, each image, the narration, saves what it produced before it moves on. So if image 6 out of 7 fails, we only redo image 6. A full story used to cost 0.48. Now a retry is like 0.016. The job itself gets written to Postgres first. A small dispatcher picks it up and throws it into SQS. If the dispatcher dies, a reconciler finds the stuck row a minute later and either finishes the job or refunds the credit. No lost stories. No double charges. I used to worry that one bad crash would either kill a kid’s story or quietly burn money on a full regenerate. Once the outbox and the step saving were in, both of those worries mostly went away. What would you change if you had to make your pipeline survive a crash tomorrow without wasting the whole run?
1
2
56
college students thank me later
🤖 Made with AI
18
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 👇
10
23
166
7,552
Cant put into words how much your tech breakdowns have helped me. I have started to ask what, for who , how many, what kind and so many questions before building anything. Enjoying system design/ engineering things. Thankyou @arpit_bhayani
Suggesting an infra component, like a database, is pretty easy. But living with that decision is difficult, because your decision might backfire :) In 2018, Tripadvisor needed to map cookies, device IDs, and user IDs to a common visitor ID for over 20 million visitors a day, with a p99 latency target of 30 ms and local reads and writes in every region. PostgreSQL was their familiar choice. But running it across regions meant dealing with streaming changes from the WAL, resolving conflicting writes across regions, and recovering when replication broke. They would also have to build and maintain a lot of custom machinery around PostgreSQL just to make it work for their use case. So, they built a proof of concept with Cassandra. Cassandra, because its replication model was a better fit for a multi-region workload. It could replicate data across regions without requiring them to build the same replication machinery themselves. But yes, Cassandra did not solve consistency. It came with the classic distributed database tradeoff: availability and local writes came at the cost of having to deal with conflicting updates. So, Tripadvisor still had to keep the oldest visitor ID and remap the others when conflicting identities were discovered. And here is the interesting part: they ended up needing two databases. PostgreSQL remained useful for workloads that needed stronger consistency and relational capabilities, while Cassandra handled the high-volume, multi-region identity mapping workload. The problem was not that one database was universally better than the other. Of course, this also meant having one more database to operate, monitor, maintain, and debug. This is where a suggestion can backfire. "We know it well" and "everyone is using it" both sound reassuring, but neither tells you how a system will behave under your constraints. This is a classic example of why we should never choose an architecture or infra component just because it is fancy :) This is what I would recommend: 1. Write down what the system actually needs to do. 2. Define the latency targets 3. Understand the consistency guarantees 4. Understand your optionals and non-optionals 5. Think about the failure modes thoroughly 6. Account for the operational overhead 7. Estimate custom infra you have to build around it 8. Consider how the system will evolve as traffic, data volume, and geographical distribution grow. A database that looks great in a benchmark might turn out to be a terrible operational choice. So, always pick tech that you can live with, operate, and evolve over the next few years. Hope this helps.
1
62
Juice of 1. Product with cool value 2. Commanding presence on X. @ErnestoSOFTWARE this is astounding. Congratulations 🎊
$18,000 in 1 day Im so proud of how locked in my audience is The amount of 6 figure founders that have bought volumereel.com is unreal This is useful for everyone beginners or experts in apps I just added 300 extra UGC reactions + Adding 200 more by today So now you get 1800 UGC hooks reactions for the same price + a group call with me next Wednesday Were I will be teaching you how to make FU money with apps I’ve built million dollar apps in public So i will not only give you the content to post But also the knowledge to operate. P.S I will be documenting in public scaling an app with these reactions I started posting yesterday so far 11k views 3 trials Insane for first day If you are still uncertain about getting volumereel Just follow me So you can see how it works first
27
Applying to jobs is getting automated. Standing out isn’t.
47
One tweet can change your life.
college students thank me later jellykit.site
21
What your Mumbai rent buys you! #mumbai
🤖 Made with AI
32
Hey builders 👋 If you are in tech lets connect. 🤝 Im a builder from 🇮🇳 cooking SaaS and learning growth.
7
10
184
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.
34
119
12
1,624
127,618
I hire at my company. If you have built these 5 projects you have strong chance to get hired.
1
33
Hey builders , let's connect ! 👋 If you are building something , drop your link.
2
5
106
25 days. 410+ followers.
1
27