12 November 2026

Posts published on funGyaan on 12 November 2026.

November 2026

MTWTFSS
1
2345678
9101112131415
16171819202122
23242526272829
30

  1. Lambda, Fargate or EC2: how do you decide on cost?

    You pay Lambda per request and per millisecond, Fargate per second of reserved vCPU and memory, and EC2 per instance-hour whether busy or not. The cheapest choice depends on utilisation: spiky and idle favours Lambda, steady and busy favours EC2, and the crossover is worth calculating for your own…

    · 7 min read · AWS

  2. What happens when you reset a few commits and force-push?

    Force-pushing after a reset moves the branch pointer on the server; it doesn't delete anything. The dropped commits live on in reflogs, in every teammate's clone and, on GitHub, by SHA. What each teammate sees next depends on how they pull: a merge-pull brings the commits back, a rebase-pull…

    · 10 min read · How we build

  3. How do you keep two systems consistent without distributed transactions?

    An order in one database, its payment in another, and a process that can die between them. Dual writes, two-phase commit, sagas and the outbox, each run 1,000 times with crashes injected: what goes wrong, what recovers, and what two-phase commit's in-doubt transactions block.

    · 9 min read · Databases

  4. How do you find what's nearby?

    Among a million points across India, finding everything within 1 km took 104 ms with a full scan, 1.2 ms with geohash cells and 43 µs with a quadtree, all returning the same results. Geohashes are simple and fit any key-value store; quadtrees adapt to density. Measured, plus what PostGIS and Redis…

    · 6 min read · Data Structures