Sabitlenmiş Tweet
Vikash Singh
10.3K posts

Vikash Singh
@code_bytein
Backend | System Design | AI | Building, learning & sharing daily | Building https://t.co/q3a6pxtVuV | DM For Collab & work
Katılım Şubat 2026
978 Takip Edilen2.1K Takipçiler

@OpenAGIxd Assume they're compromised. Revoke first, clean up later.
English

@shub0414 AI eating its own output is the digital equivalent of inbreeding😬
English

Here's what's missing 🧵
No database transaction.
deductBalance succeeds ✅
addBalance fails ❌
Money is gone. Forever.
Now either both succeed or both rollback.
No in-between state. No missing money.
This is called Atomicity.
The "A" in ACID.
Rule: Any operation that touches money, inventory, or critical state -always wrap in a transaction.
No exceptions. Ever.
The fix :

English

@AnupamHaldkar Funds vanish silently-no error thrown, just money gone 💀
English

@code_bytein Buggy money transfer:
deduct succeeds but add fails → funds vanish without DB transactions or rollback.
English

@TECHwithRUDE Both succeed or neither does- thats the only acceptable outcome for a money transfer
English

@code_bytein Missing transaction atomicity.
The debit succeeded, the credit failed, and without a rollback mechanism the money vanished. Use a database transaction (ACID) so both operations succeed or neither does.
English

@code_bytein i m waiting for some good ansr as i cannot ansr it...😢
English

@code_bytein Money vanishes because deduct succeeds but add fails with no rollback. Always wrap transfers in a DB transaction for atomicity.
English

@NitishaAgrawal3 @OpenAGIxd Funds gone forever without a transaction- no error, just silence 💀
English

@code_bytein @OpenAGIxd Deduct succeeds but add fails with no transaction = funds gone forever. Always wrap transfers in DB txns!
English

@TECHwithRUDE Response validation is the missing piece in most health checks
English

@code_bytein 200 OK only proves the server is alive. Synthetic checks with response validation prove it's actually working
English

@AnupamHaldkar Exactly the scenario that keeps engineers up at night 💀
English

@code_bytein Server C returns 200 OK but wrong responses
LB sees all servers healthy.
English

@SourabhGurwani This one line would save so many prod incidents 😅
English

@code_bytein 200 OK only means the server responded. Not that it responded correctly
English

@_devdeep Schema checks in health endpoint-never thought of this before honestly 🤯
English

@code_bytein Turn the LB into a circuit‑breaker: if a node returns 200 but fails schema checks, mark it unhealthy and drain it automatically.
English

@bkarishma360 Alive doesn't mean working, learned that the hard way
English

@code_bytein Don’t just check if the server is alive
check if it’s correct
English















