Fat FIRE devs (@0xffdevs) header
Fat FIRE devs (@0xffdevs) profile picture

Upskill - Earn - Invest - Reinvest - Retire. Producing rich software developers. All about niche SDE skills, investing and trading. Founder: @0xlelouch_

fat fire devs club
Joined March 2023
Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)Photo by Fat FIRE devs (@0xffdevs)
Fat FIRE devs retweeted
Top 10 mistakes developers make with Redis: 1) Using Redis as the source of truth. Then a flush, eviction, or replica lag becomes data loss. 2) No TTLs on cache keys. Memory grows until eviction turns into random latency spikes. 3) Wrong TTL strategy. Same expiry for everything causes a thundering herd at minute 60. 4) Treating KEYS * as a debug tool in prod. It is O(n) and will block long enough to page someone. 5) Big values. Stuffing 5MB JSON blobs into one key kills bandwidth, CPU, and makes replication slower. 6) Too many small keys. Millions of tiny keys add overhead, fragmentation, and slow persistence. 7) No connection pooling. Creating a TCP connection per request looks fine in staging, melts at 2k RPS. 8) Unsafe retries. Retrying writes without idempotency turns a timeout into duplicate work and bad counters. 9) Using Redis transactions/Lua without time limits. A slow script blocks the server; everything queues. 10) Weak observability. No tracking of used_memory, evicted_keys, hit rate, p95 command latency, and slowlog for hot commands
3
6
33
1,450
Fat FIRE devs retweeted
System Design: Twitter Style Home Feed. Made using @kalakaroai
1
3
774
Fat FIRE devs retweeted
Ever wondered that postgres stores rows on 8KB pages. So where do huge values go? Read this nice blog by @PlanetScale Past ~2KB, TOAST kicks in: it compresses the biggest values, then slices them into a hidden table. A tip: use LZ4 by default, and don’t SELECT * on big columns you don’t need. Do give this blog a read, pretty nice. I also used @kalakaroai app to create an explainer video! planetscale.com/blog/what-ge…
1
3
18
913
It wasn't one attack but multiple this week! AI agents are making hacking faster and harder to stop. Microsoft / ARTEX: Microsoft says a China-linked group (Storm-0940) broke into ConnectWise Cloud Backup and used ARTEX, an open-source toolkit of AI agents, to attack Microsoft 365 accounts. The agents made about 2,900 login attempts a minute against more than 2,250 organizations and got admin access to some in under 3 hours. China denies it. CrowdStrike: four hacking groups used AI agents in real attacks, and all four got AI models past their safety rules by pretending to be security testers. One agent took a network's master keys in about 20 minutes on its own. At least 15 healthcare organizations were hit. PHP2Shell: two critical flaws were found in PHP, the code behind much of the web. PHP is already patched. Palo Alto's firewall software is also affected and has no fix yet, though Palo Alto says it hasn't seen anyone exploit it. Banks: after reports that unapproved AI agents were logging into customer accounts, Morgan Stanley is reportedly blocking outside agents, and JPMorgan and Bank of America are restricting them. Wells Fargo isn't blocking them; from November 24 it treats anything your agent does as approved by you. In one line: AI isn't creating new security holes; it lets attackers exploit old ones (weak logins, exposed admin pages, persuadable AI models) much faster, around the clock. Made an explainer video using claude director mode on @kalakaroai - pretty useful for creating explainer videos!!
1
2
332
Fat FIRE devs retweeted
Late night coffee runs are a thing these days.
1
1
12
1,838
Fat FIRE devs retweeted
Unpopular opinion: If you are buying AI courses from all these course sellers who have been in the business for quite a few years and haven't done any development/deployment, etc., for years, then you are the biggest fool. Just think about it: You are buying a course to learn AI development from those who have been selling courses for years and haven't had any AI production experience. AI is self learnable and if you need to pay thousands/lakhs for that, I would rather have you buy enough credits and experiment, break things and learn from free YouTube videos. --- Bhai agar LLM agent integration seekhna hai toh mai free me workshop krduga X pr. Comment krdo. Agar ache free utube tutorials ka idea hai toh wo bhi comment krdo. Let's make this the best twitter thread to learn production grade AI integration for free.
2
2
14
1,881
Fat FIRE devs retweeted
Anyone can say “learn these 10 things in distributed systems” and make a nice checklist. Heck, I do that too. But real experience starts showing when someone can explain especially on X - what they actually do when prod is on fire. Like p95 suddenly jumping from 200ms to 2s. Do you just stare at the API dashboard? Or do you correlate that spike with downstream services, check DB latency, queue depth, cache hit rate, CPU/GC, then follow the same request using correlation IDs across services? Can you explain why p50 looks perfectly healthy while p95/p99 is dying? Can you tell whether retries are actually making the outage worse? Can you look at traces and figure out that one dependency is adding 800ms only for a certain request path? Tbh kind of knowledge rarely comes from interview preparation. It comes from debugging ugly systems for months/years, breaking things, fixing them and slowly building intuition.
Some people have immense tech knowledge because they’ve spent years studying, building and experimenting. They don’t learn just for interviews and job switches. And those who can talk about tech for hours simply because they genuinely love it are rare in X as well as real world.
3
4
49
3,808
Fat FIRE devs retweeted
Senior engineer prod scenario: an AI agent hits a paid API and gets stuck in a loop. Cost goes from $50/day to $5k/hour. You also need an audit trail of every call and output for compliance/debugging. What do you do in the first 5 minutes, and what do you ship after? I’m looking for: hard kill switch (per org + global), spend/rate limits with budgets, idempotency keys so retries don’t double-bill, rollback strategy if bad outputs already wrote to DB, and observability that ties agent step -> request -> downstream charge -> persisted data. Also: how do you keep logs append-only and queryable without logging secrets or PII, and how do you prove data correctness after the incident?
4
4
19
1,482
Fat FIRE devs retweeted
For those who don't know .. 1. Strong read-after-write consistency If you write an object to S3 and the write succeeds, any read immediately after will see that latest object. Example: PUT logs/100 = "event A" → success GET logs/100 → "event A" You do not have to worry about another reader temporarily seeing an older version after the successful write. --- 2. Conditional writes with If-None-Match: This basically means: > "Create this object only if this key does not already exist." Suppose two servers both try to claim log position 101: Writer A → PUT logs/101 with If-None-Match: * Writer B → PUT logs/101 with If-None-Match: * Only one succeeds. The other gets a failure because logs/101 now exists. So you can build something like: logs/100 logs/101 logs/102 ... Multiple writers can race for the next slot, but only one wins each slot. Combined with strong consistency, the loser can immediately see who won and retry the next position. That is the interesting part: S3 itself becomes the coordination primitive, so for certain designs you may not need a separate Raft leader just to decide who gets to append next. But S3 does not automatically provide an ordered distributed log - you still need to design the append/retry protocol around these guarantees.
Everybody is building their write-ahead log on S3 now. Turbopuffer, Chroma, and WarpStream are all doing versions of the same trick. Here's what they are doing and how... The old assumption was that a WAL needs a local disk followed by a replication across nodes for prevention against data loss. The WAL + S3 pattern flips it. A write only counts as committed once it lands in S3, not before. So nodes stay stateless; they only cache in NVMe or RAM, and any node can serve any namespace/data since nothing durable lives on it and everything is on S3. Two S3 properties make this work: strong read-after-write consistency, and conditional writes (If-None-Match). That second one lets multiple writers coordinate an ordered log without a leader election protocol like Raft sitting in front of it. The cost is latency. A single object storage round trip is tens of milliseconds, so nobody writes one record per S3 call. Everyone batches writes and flushes on a timer, and accepts commit latency in the range of 100 to 200ms. This is why it matters - we need not worry about replication topology, not about leader failover, not about disks to provision ahead of load; nothing. S3 storage becomes the thing you trust; everything else is just a stateless cache in front of it. Hope this helps.
1
2
21
2,236
How do you verify code when agents write faster than humans can review? @ShadajL, Research Lead for Hydro at AWS, has some answers—on the AGNTCon + MCPCon North America keynote stage. Get the details: bit.ly/4xAwe8g Join him October 22-23 in San Jose, CA!
2
2
363
Fat FIRE devs retweeted
Tech story time !! One year ago, we had one of those production bugs that was almost impossible to notice. We had a Kafka consumer processing events from another service. 99.9% of the time everything worked fine. Consume message -> process it -> update DB -> move on. But once in a while, processing would fail. Maybe the downstream service timed out. Maybe some payload had unexpected data (some edge cases here that weren't handled). Sometimes the DB connection dropped for a few seconds. Nothing unusual in distributed systems. The problem was our retry logic. We retried the message a few times, and after that... we basically gave up. No DLQ. The consumer kept moving forward, so from the outside the system looked completely healthy. CPU fine. Kafka lag looked fine. Error rate almost zero. No major alerts. But that tiny percentage of messages were effectively lost from the business workflow. And because it happened so rarely, nobody noticed immediately. Weeks later someone found a mismatch between two systems. We started tracing IDs manually and eventually found events that had entered Kafka but never completed processing. That was the scary part actually. The system was not "down" per se. But it was silently wrong. We fixed it by introducing a proper retry + DLQ flow. Normal topic -> consumer -> temporary failure -> retry topic with backoff -> retry again -> after max attempts -> DLQ But just adding a DLQ was not enough. We also added the original payload, error reason, retry count, timestamp and correlation ID so someone could actually debug the failed message. Then alerts for DLQ growth. Then a small replay tool so after fixing the underlying bug, we could safely send failed events back through the pipeline. We also had another bug which led us to make consumers idempotent because replaying messages without idempotency can create an entirely new problem. Duplicate payments, duplicate rows, duplicate notifications... whatever your consumer happens to do. That incident really taught me something important about event-driven systems: Message loss does not always look like message loss. Most of the times Kafka is healthy, consumers are healthy, dashboards are green... But your business data is slowly becoming inconsistent. A DLQ is not just a queue where "bad messages go". It is a safety net for failures you did not predict. And in distributed systems, there will always be failures you did not predict.
1
5
33
1,968
Fat FIRE devs retweeted
Your database CPU is at 95%. P99 latency just crossed 8 seconds. You have 10 minutes before the payment service starts timing out. What do you check first?
5
2
29
5,926
Fat FIRE devs retweeted
Your cache-aside pattern has a race condition: two requests miss cache simultaneously, both fetch from DB, both write to cache. One overwrites with stale data. How will you prevent this? [Asked at Twitter interview]
6
2
27
3,947
Fat FIRE devs retweeted
Most distributed systems bugs are not networking bugs. They are two machines disagreeing about what time it is. One node expires a lease. Another still trusts it. Now both think they are correct. And that is how simple clock skew can actually become a production incident.
In a distributed system, there is no global clock. Instead, each node has its own clock. If you simulate a distributed system you must simulate multiple clocks If you don't, your tests are blind to treacherous failures caused by clock drift and clock skew
3
22
1,976
This is why distributed systems tests that use one fake clock are often lying to you. Real systems do not fail because time.Now() returned the wrong second. They fail because one node thinks the lease expired, another node thinks it is still valid, and both start acting like the leader. One machine is 400ms ahead. Another machine pauses for GC. A third node gets NTP corrected suddenly. Now your retry timer, heartbeat timeout, token expiry and leader election are all seeing a different reality. Your happy-path tests will pass. Production will still find the split brain for you. When building simulators, time should be a property of each node, not a global dependency. Inject clocks per node. Control drift, skew, jumps and pauses. Then run the same scenario again. That is where distributed systems starts becoming interesting.
In a distributed system, there is no global clock. Instead, each node has its own clock. If you simulate a distributed system you must simulate multiple clocks If you don't, your tests are blind to treacherous failures caused by clock drift and clock skew
1
3
840
Fat FIRE devs retweeted
Top 10 Kubernetes mistakes I keep seeing: 1) No resource requests/limits, then nodes OOM and noisy neighbors win 2) Liveness/readiness probes missing or wrong, so traffic hits half-started pods 3) Deploying without PDBs, then a node drain drops 100% of replicas 4) HPA on CPU only (or none), ignoring latency/queue depth and real bottlenecks 5) Treating pods as pets: writing to local disk instead of PVC/object storage 6) Secrets in env vars or in Git, no rotation, no RBAC boundaries 7) No network policies, everything can talk to everything, lateral movement is easy 8) Ingress/TLS as an afterthought: timeouts, headers, and cert renewals break prod 9) No observability: missing request IDs, no metrics per endpoint, logs not centralized 10) Using default namespaces and wide cluster-admin, then one bad kubectl ruins a day
2
7
40
2,374
Fat FIRE devs retweeted
I have been working on a product for indie creators. @indiehash is the agentic payment infra on solana. Upload premium content, share it with your audience and get paid in USDC on solana network. For the end user it's as simple as probe->pay->unlock premium content from your favourite creators. You can also host an api endpoint with some ai agent doing complicated work behind the scene and get paid per api call. No KYC. Instant payment on the solana network.
4
2
3
34
7,381
Fat FIRE devs retweeted
Uber-style system design: ride matching + dispatch. What I look for in interviews: 1) Core services: Location ingest, Driver state, Rider requests, Matching, Pricing/ETA, Dispatch, Trip lifecycle, Payments, Notifications, Support. 2) Hot path: driver GPS updates (1-5s). Don’t write every ping to SQL. Use stream + in-memory/grid index; async persist. 3) Data model: Driver(id, status, geo_cell, last_seen), RiderRequest(id, pickup, dropoff, constraints), Match(id, driver_id, request_id, score, expires_at), Trip(id, state machine, idempotency_key). 4) APIs (idempotent): POST /requests, POST /drivers/{id}/location, POST /match, POST /dispatch, POST /trips/{id}/events, GET /eta. 5) Bottlenecks: geo queries, fanout notifications, lock contention on driver assignment, retry storms, thundering herd on hotspots (airports). 6) Scaling tradeoffs: sharding by geo_cell, eventual consistency for location, bounded staleness, per-cell leaders vs global queue, push vs pull matching. 7) Failure ca
3
31
1,905
Fat FIRE devs retweeted
High-scale database modeling is mostly deciding what you refuse to do at runtime. 1. Start from access patterns: top 5 queries, write paths, latency SLOs. Model for those, not for elegance. 2. Pick your consistency boundaries early: one aggregate per transaction, clear ownership, avoid cross-service joins. 3. Denormalize on purpose: duplicate the 3-5 fields you need for reads; keep a source of truth + async repair. 4. Plan keys like you plan outages: avoid hot partitions, use time-bucketing, add random suffixes when needed. 5. Index budget is real: every index is extra write cost and storage. Track p95 write latency after adding one. 6. Version everything: schema versions, event versions, backfill jobs. Assume online migration with dual writes. 7. Model deletion upfront: TTL vs hard delete, GDPR, tombstones, and how it affects secondary indexes
1
5
1
36
2,096
Fat FIRE devs retweeted
Your Postgres database is at 95% disk usage. You delete 1 million rows but disk space doesn't decrease. Why not and how do you reclaim space? [We faced this last quarter]
17
4
101
30,844