May 2026
Posts published on funGyaan in May 2026.
May 2026
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
-
When is domain-driven design worth it?
DDD pays off when the business rules are the hard part and several teams or departments use the same words to mean different things. For CRUD apps it's mostly ceremony. Which parts to take (language, bounded contexts) even on small projects, and which to skip.
-
How do you design a URL shortener?
A counter encoded in base62 gives short, unique codes without collision checks; a cache in front of the database serves almost every redirect. The real decisions are 301 vs 302, how to count clicks without slowing redirects, and how to stop abuse.
-
Access tokens and refresh tokens: why two, where do they live, and what happens when one leaks?
Why two tokens: a short-lived access token shown to every API, and a longer-lived refresh token shown only to the auth server and rotated, so reusing a stolen one raises an alarm. Diagrams of the flows, where to store each token on web, mobile and server, and what an attacker gets from each kind…
-
How do you make LLM document extraction reliable enough to automate?
Why I route extracted documents by their weakest field, treat model output as untrusted, and judge the system by straight-through rate and error rate among auto-accepted documents.
-
How do you cut an AWS bill by 86%?
From about $14K to about $2K a month, with the platform still serving 5K-10K requests a second at 99.9% uptime. Three levers, in order: delete what nobody uses, right-size what's left from measured peaks, and self-host databases only where you can restore, fail over and patch on your own.
-
Monolith vs microservices vs cell-based architecture: which one, when?
Start with a modular monolith, split out only the parts that scale or fail differently, and reach for cells when one customer's bad day must not become everyone's. What each architecture fixes, what it costs, and the signals that say it's time to change.
-
How do you rate-limit without running out of memory?
A rate limiter is a map that attackers get to grow. How I key it, bound it, and decide what happens when it's full, with the Go code and tests.
-
How do you keep tenants apart when they share one database?
How I let Postgres, not application code, keep tenants apart, so a forgotten tenant filter returns nothing instead of another customer's data: FORCE, non-owner roles, transaction-local settings, fail-closed policies, and tests that prove it.
-
Which isolation level should you use, and what does each one let through?
Ten concurrency scenarios, four isolation levels, one PostgreSQL 17 database. A measured matrix of what each level allows, and why the stricter levels move the work into your retry loop.