Bimal Ray (@Ray99Bimal) header
Bimal Ray (@Ray99Bimal) profile picture

I build stuff

Joined April 2026
Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)Photo by Bimal Ray (@Ray99Bimal)
Starting a new engineering series! Every day, I'll pick a system design problem, implement it, explore trade-offs, experiment with failures, and share what I learn. Less theory, more building. Let's see where this goes. i will try to be consistent here are some awsome resources for system design github.com/ByteByteGoHq/syst… github.com/donnemartin/syste… github.com/karanpratapsingh/… github.com/binhnguyennus/awe… github.com/ashishps1/awesome…
1
141
the timestamp batching part in K2 is pretty interesting instead of asking the TrueTime oracle for every transaction, a coordinator gets a batch of timestamps and issues them locally until the batch expires with a 100µs TTL and 10ns steps, one batch can generate up to 10k timestamps less oracle traffic and fewer round trips on the transaction path :p
2
23
found K2, a multi-region database paper using TrueTime clocks it targets strict serializability and lower visibility delay at replicas the design combines timestamp batching, multi-version concurrency control and a replica visibility protocol will try to implement this arxiv.org/pdf/2504.01460
2
108
system design: payment webhook delivery 50k merchants, 10k events/sec at peak, retries for 72 hours and ordering per payment endpoints can go down or process an event but lose the response how would you design delivery, retries, deduplication and tenant isolation without letting one unhealthy merchant affect everyone else?
2
20
one engineering blog turns into 5 open tabs, 3 github repos and a completely different rabbit hole came here to learn one thing and somehow ended up questioning everything i know :p
2
14
one thing i'm curious about in DYLAN it doesn't create a separate HNSW graph for every trie node it selectively shares graph indices and uses ancestor-level graphs to bridge fragmented search regions wondering how this trade-off behaves as the label distribution changes arxiv.org/abs/2611.12539
2
15
figma's postgres scaling journey is worth a read they went from vertical scaling + read replicas to partitioning, and eventually sharding across physical databases the vacuum and iops bottlenecks are the parts i'm curious about blog.bytebytego.com/p/100x-s…
1
2
22
found this paper on label-filtered ANN search DYLAN combines two things, Trie + HNSW, to handle vector search with label filters the graph-sharing part looks interesting, adding this to my reading list :p arxiv.org/abs/2611.12539
1
15
check this A relational database promising full ACID guarantees across a cluster of machines pays a real coordination tax on every transaction. A NoSQL database that relaxes those guarantees, accepting eventual consistency instead, exactly the AP Systems, can distribute writes across many nodes far more cheaply, because it never has to coordinate a global agreement before acknowledging a write.
1
2
100
System design: build a webhook delivery platform. Constraints: - 50k tenants - 20k events/sec peak - At-least-once delivery - Per-endpoint ordering - Endpoints can be down for 72 hours - Retry with backoff; no noisy tenant should starve others
2
2
34
How would you partition delivery work, isolate unhealthy endpoints and make retries safe?
1
12
A useful Go concurrency read: pipelines and cancellation. The interesting bit isn't just starting goroutines. It's making sure downstream stages can stop upstream work, bounding parallelism, and closing channels without leaks.
1
2
127
The article walks through a file-digest pipeline and shows where cancellation belongs.
1
9
At-least-once delivery means duplicates are part of the contract. Cloudflare Queues makes this explicit: a message can be delivered more than once, so consumers need a deduplication strategy when processing isn't naturally repeatable.
1
2
16
"Exactly once" is usually an end-to-end application property, not a checkbox on a queue.
1
5
A timeout is not proof that the work stopped. In Go, a request can time out while goroutines it started are still doing work unless cancellation is propagated and respected. This matters a lot when those goroutines call databases or downstream services.
1
1
21
A good read on context propagation:
1
5
PostgreSQL updates don't overwrite rows. With MVCC, an UPDATE creates a new row version. Old versions can only be cleaned up when no active transaction needs them. That's why long-running transactions can contribute to table bloat.
2
41
A PostgreSQL update doesn't simply overwrite the old row. With MVCC, PostgreSQL creates a new row version. The old version can only be cleaned up when no active transaction might still need it. That's why long-running transactions can quietly turn into table-bloat problems.
2
3
105
Worth understanding before tuning autovacuum:
1
12
such a inspiration
Most people start their careers with some privilege, and many start from zero. I started from minus ₹1 crore, and I did not even know it until my second year at IIT Delhi. Over the years, that debt took me from a failed placement day to Google, to a ₹2 crore side business, and finally to the startup I had always wanted to build. This is that story. My father ran a real estate business, and he had invested in under-construction flats from builders like Jaypee and Wave, paying most of the price up front through home loans. Years went by without the flats being delivered, but the banks still wanted their EMIs on time. So my parents borrowed from friends and relatives, and when that was not enough, from credit cards. My parents carried all of this debt quietly and tried to shield me from it. I knew we owed money, but never how much. Then in my second year, collection agents started coming to our house and sitting there, asking for payments we could not make. It stressed my mother a lot, and I could see it on her face every day. 𝗧𝗵𝗲 𝗹𝗶𝘀𝘁 One day, I sat my parents down and asked them a simple question: who exactly do we owe, and how much? Then I took a sheet of paper and started writing down how much we owed, to every bank, every friend, every relative and every credit card. The list kept getting longer, and by the time I finished, the principal alone was more than ₹1 crore. I still remember how heavy it felt while writing each line. That day, I knew I had to grow up quickly and get my parents out of this situation. I had joined IIT knowing exactly what I wanted to do after college, which was to build a startup. But that sheet of paper changed everything, and the dream would have to wait. The new plan was to get a high-paying job, pay off everything on that list within two years so that my parents could finally breathe again, and only then pursue my dream of starting up. 𝗠𝘂𝗿𝗽𝗵𝘆'𝘀 𝗹𝗮𝘄 From my third year, everything I did was aimed at that one goal: getting a job at an HFT, which paid ₹50 lakh+ a year. I was ranked 2nd in my department and had a CGPA of 9.7/10, so I genuinely believed I could get in. Then day one of campus placements came. I prioritized Tower Research over the other companies, cleared three rounds, and was rejected in the final one. I was so crushed that I could not perform at the others that had shortlisted me, and by evening, they were all gone. That evening was really hard. Every rupee I was not going to earn meant my parents would have to carry that weight for longer. On day two, I took an offer from Cohesity at ₹18 lakh a year. It was a good job, but nowhere near the number we needed. In July 2019, I moved to Bangalore, stayed in a PG, kept my monthly expenses to under ₹20,000, ate meals at the office, and rarely went out with friends. Everything else, I sent back home. My friends would talk about investing and going on trips, but I did none of that. I soon realized that this salary would never be enough. So I set a new target: Google US. Whatever time I could find outside work went into competitive programming, and I soon became a Master on Codeforces. In January 2020, I started applying to Google and other companies in the US and UK. A few weeks later, COVID hit, and overnight, companies stopped hiring overseas candidates. The way out I had been working towards for months disappeared. 𝗪𝗵𝗲𝗿𝗲 𝗱𝗶𝗱 𝗮𝗹𝗹 𝘁𝗵𝗲 𝗺𝗼𝗻𝗲𝘆 𝗴𝗼? Around the same time, I got an offer and joined Spotnana as a founding engineer. I really liked their vision, and I believed that growing with a young startup and holding equity in it could be the big break I needed. About a year after I had started sending money home, I sat down to see where it had gone. Almost my entire salary had been spent on interest for our credit card loans. We had not reduced the principal and had not saved anything either. After a full year of hard work and sacrifice, the list was exactly as long as the day I had written it. That was one of the lowest points of my life. It felt like I was running as hard as I could, just to stay in the exact same place. Meanwhile, I was giving Spotnana everything, working on weekdays and weekends, and was one of the top performers there. But when appraisal season came, the raise was still not as high as I was hoping for. I was really disappointed. My equity, though promising, could not help us pay off the debt anytime soon. I told my manager I would need something on the side to make up the difference. I created a programming YouTube channel and later learned Android development, but neither brought in any money. 𝗜 𝗰𝗼𝘂𝗹𝗱𝗻'𝘁 𝘀𝗹𝗲𝗲𝗽 𝘁𝗵𝗮𝘁 𝗻𝗶𝗴𝗵𝘁 During that time, I was talking to one of my college seniors who had joined Google. I told him everything, about the list, my plan and my belief that I could clear it all in two years. He listened patiently and then told me the truth. If I stayed at Spotnana, it would not take two years, it would take more than four. He said that instead of being emotional about the company, I needed to be tactical if I really wanted to solve my family's problem. He then referred me to Google. The next four months were the most focused of my life, and every spare hour went into preparing for Google. When I got rejected from Uber and Coinbase, I was terrified about what would happen next. But then, Google said yes. The day the recruiter told me I had been selected for the Google Search team is still one of the best days of my life. That night, I couldn't sleep at all. I lay awake, too happy to close my eyes, thinking about how this would finally change things for my family. For the first time since I wrote that list, I could actually see a way to clear it. 𝗧𝗵𝗲 ₹𝟮.𝟭 𝗹𝗮𝗸𝗵 𝗯𝗲𝘁 When I joined Google, the list still had ₹80 lakh left on it, and salary alone would take years to clear it. But Google also gave me something I had not had before: time. So with Google's permission, I started a mobile apps business with my father, working nights and weekends. In the first three months, we built a bunch of Android apps and games, but could not make any revenue. Then I analyzed iOS versus Android and decided we should build for iOS instead. So we took the bet. I bought a MacBook Pro for a hefty ₹2.1 lakh, picked our most downloaded game on Android, built its Swift version in six days, and launched it on iOS. Installs were high from day one, and within a couple of days we turned on monetization. I kept refreshing the dashboard as paying users came in, and within just a few days the game had paid back the cost of the laptop. And that was just the beginning. Our revenue grew from ₹6 lakh in the first month to ₹24 lakh in the fourth, as we added more games. I was working close to 100 hours a week between Google and our apps. Over a year and a half, our games crossed 200K downloads, with players mostly from the US, and brought in more than ₹2 crore in revenue. 𝗖𝗿𝗼𝘀𝘀𝗶𝗻𝗴 𝗼𝗳𝗳 𝘁𝗵𝗲 𝗹𝗶𝘀𝘁 With that revenue and my Google salary, we finally started crossing lines off the list. This time we were not just paying interest, we were paying back the principal, one line after another. With every line we crossed off, the stress at home got a little lighter. In June 2023, we paid off the last one. The list I had written in my second year of college was finally empty. My parents were free, and after years of waiting, so was I. As soon as the last loan was cleared, I put in my papers at Google. The apps had left me with enough savings to finally start my own company. My last day at Google was the day before my 25th birthday, and on 21 July 2023, I woke up with no debt, no job, and for the first time in years, nothing standing between me and the thing I had always wanted to do. 𝗦𝗵𝗼𝘂𝗹𝗱 𝗜 𝗴𝗼 𝗯𝗮𝗰𝗸 𝘁𝗼 𝗮 𝗷𝗼𝗯? Over the next four months, I built 12 new games, but month after month, none of them worked. And it was not just me. Apple's iOS privacy changes had broken the economics of hyper-casual games. That November, I remember walking on my terrace, thinking about whether leaving my job had even been the right choice. My parents had started telling me to get a job again. But I had waited far too long for this chance to give it up. I decided to shut the games business down and hard pivot into SaaS. I started with Shopify apps, only to realize a month later that I had no unique idea and the competition was intense. I then analyzed around 70 B2B SaaS marketplaces to find the next Shopify app store, found monday, the project management platform, and started Super Workday, building apps for teams using it. My first app there failed too, because it was too niche. For the next one, I went through the platform's feature requests and picked the biggest unsolved problem. That one worked. In April 2024, after eight months without any revenue since leaving Google, I got my first paying customer. I was so happy that day that I emailed him just to tell him he was my first customer. I still remember his name. After that, I kept launching one new app every month, and the revenue grew sharply. Today, the business runs on autopilot, has 300+ paying customers, mostly in the US, and is close to $100K in ARR. It also paid for my sister's wedding, and being able to do that for my family made me very happy and proud. 𝗧𝗵𝗲 𝘀𝘁𝗮𝗿𝘁𝘂𝗽 With that income stable, I finally felt ready to go after a venture-scale idea and started building an AI executive assistant. In January 2025, South Park Commons, a Silicon Valley VC, invested $400K at a $5.7M valuation. I cannot explain what I felt the day their offer came. All those years of waiting finally made sense. My startup journey is still early. Since then, there have been many more ups and downs, and there are still many things to figure out. But for the first time, I am building the startup I always wanted to build, and I am ready for whatever comes next.
4
37