4 November 2026

Posts published on funGyaan on 4 November 2026.

November 2026

MTWTFSS
1
2345678
9101112131415
16171819202122
23242526272829
30

  1. CAP or PACELC: what trade-off do you make when nothing is broken?

    CAP describes the rare moment the network splits. PACELC adds the trade-off you make all day: a fresher answer costs latency. Measured on a PostgreSQL primary and replica: how often reading your own write is stale, what each synchronous_commit level costs, and what happens when the replica is gone.

    · 9 min read · Databases

  2. How do you find the top 10 among billions of events?

    Counting every key exactly took 58-149 MiB for 5 million keys. A count-min sketch with a small heap found the true top 10 in 2 MiB; Space-Saving did it in 62 KiB. With too few counters on flatter traffic, Space-Saving found only 2 of the 10. Measured, and when each one is safe.

    · 6 min read · Data Structures

  3. Do I need Kubernetes?

    Probably not yet. Plain EC2 with Docker, or ECS on Fargate, runs most small and mid-sized products with far less to operate. When Kubernetes (EKS) earns its complexity, and what each option costs you in money, people and on-call.

    · 6 min read · AWS

  4. Read replicas, partitioning or sharding: what does each one fix?

    Three ways to outgrow one database, often confused. Replicas add read capacity and cost you freshness. Partitioning keeps one huge table manageable but adds no capacity. Sharding adds write capacity and costs you almost everything that was easy. Measured on PostgreSQL 17: replica staleness, and…

    · 8 min read · Databases