Devanshu (@DevanshuXi)

Devanshu @DevanshuXi 2026-08-27T15:30:00.000Z

Career update: I’m excited to share that I’ll be joining @mastra as a Platform Engineering Intern, starting next month! AI agents are increasingly becoming distributed,stateful systems and I’m excited to work on the infrastructure that runs them in production. Huge thanks to @calcsam @abhiaiyer for the opportunity.

306 2 23509 53 2
Purbayan Pramanik @ppramanik62 2026-11-24T10:20:29.000Z

why databases use trees to find data ?? because on disk, the cost of search is the number pages being read, not the number of comparisons. once the page is in memory, comparing keys inside it is very fast. but getting the page there is way slower than that. starting with the most basic idea: binary search. it works, but every steps reads a new page, so every step is a slow random read. a file of 10,000 pages needs about 14 of them in the worst case. and each read is mostly wasted: you read a whole page of keys, use one for the comparison, and throw the rest away. now what happens if we play smart and use the rest. to decide which page to open, you only need the first key of each page. write those down with their page numbers in a small separate file. that's an "index", way smaller than the data. it's sorted too, so index it again, and keep going until the top fits in one page. what you've built is a tree (check the diagram). at each page the search compares against every key in it to choose among all its children at once. one page read divides the search by the "fanout" (children per node), not by 2 (in case of binary tree). to work out a real tree's height: → fanout = page size / (key size + pointer size) → height = how many times you multiply by the fanout to reach the key count → nodes are at least half full, so the worst case adds at most one level the top part of the tree consists of exponentially lesser number of nodes, so it stays cached in memory. challenge: as more keys come and go, the tree needs to keep it balanced, which is one of the most complex challenges. takeaway: HIGH FANOUT, and LOW HEIGHT. that's why b-trees exist.

59 3 1668 3 0
Aryan Srivastava @distroaryan 2026-11-24T12:03:17.000Z

So I have question to the twitter community and this is a genuine question from someone who is actively looking for a job. When you say you want to join a startup and working at a startup is the best option for growing, what are the things that you look for in a startup? Like I can't possibly believe that every startup out there is good for career. So what are the things that you look for when joining a startup? Like it should have raised 1 round of funding, should be atleast 10 people or like what other things? Any advice would be really helpful. Thanks

14 0 1622 5 2
Devanshu @DevanshuXi 2026-11-24T11:23:27.000Z

In 2027, the best thing to do is to go wherever your curiosity takes you. You will outperform the people searching for a roadmap. People always ask me in DMs what to learn and honestly I’m confused as to how to answer. There are so many opportunities in the world. Wherever you go there are institutions willing to reward your time, curiosity and craft. Don't overthink and have fun my cuties.

@404not_utkarsh

Am I supposed to quit tech now? https://t.co/hEgEOCC8q8

189 5 3431 5 0
@DevanshuXi reposted
Priyansh @prynsshh 2026-11-24T07:21:17.000Z

Good read for people to get intuition of how replication works in databases. You can dig deeper if you are curious! Now i get it why @DevanshuXi and @Hi_Mrinal keep databasemaxxing. This is never ending rabbit hole it seems.

@joeksluis

Finished my article on how database replication works I tried to explain the principles behind replication while touching on a wide range of topics (physical vs logical replication, replica lag, replication slots, sync vs async replication, failovers, etc) https://t.co/5q3ABByhLV

7 2 406 2 0
Devanshu @DevanshuXi 2026-11-23T13:33:00.000Z

I've come to realise that we can actually not always trust the disk. Occasionally individual bits will change by themselves, also sometimes the disk will lose power whilst writing and so only half a block will be written. Despite this, when you try and read it back it still appears perfectly fine. like No errors are recorded, although in fact the information is incorrect. So currently I am implementing a basic ‘checksum’ method. like Whenever I write a 4kb block I input it into a CRC32c mathematical function. This takes the 4096 bytes of information and converts them into a small 4 byte value. We store this value. Then, when we reread the block we again pass it into the mathematical function and compare the result. Should there have been any changes to the block then these two values will differ. Rather than returning corrupted data, the system will therefore inform me that block x is corrupt. Right now checksums just live in memory so i'll be needing somethig persistent later.

@DevanshuXi

Working on a block store in Rust and I'm learning that "written" and "durable" are completely different things. 4KB writes go to the OS page cache which resides in RAM and takes about 3us to write. A power cycle would lose that data. fsync (which is guaranteed by the OS to write the data to disk) takes approximately 3-4ms which is over 1000x slower. Thus, storage systems ack writes right away and only guarantee durability at a flush.

46 1 1906 7 0
Andrew Rogers @andrew_rogers 2026-11-23T21:18:04.000Z

@DevanshuXi CRCs are poor for detecting storage corruption. They are only optimized for detecting corruption due to electrical interference. Storage corrupts differently. An algorithm with uniform probability across all distributions of corrupted bits like a hash works better for storage.

1 0 60 1 0
Devanshu @DevanshuXi 2026-11-23T19:01:58.000Z

Forget the Mona Lisa, hang this in the Louvre.

@paulg

It's a mistake for startups to treat fundraises as a series of milestones. There's something even more impressive than raising a series whatever: to be making so much that you don't need to. Eventually all companies have to reach this point. The sooner you do, the better.

22 0 775 0 0
Pushkar @86pushkar24 2026-11-20T08:39:50.000Z

hiring an AI product manager intern. bangalore, 6 months, ₹40k/month. looking for someone who's technical, has great product intuition, and loves building things. if you've built something people actually use, that's a huge plus. haven't found the right person yet. hoping they're here. drop your projects, portfolio, or resume below.

257 4 19167 99 1