Assuming no ACID guarantees (SoR is Kafka) you need an indempotency guarantee. You can do this with bounded counters (so you only pay the contention on the last units) or per-SKU keying (in Kafka you are guaranteed that for a single key you get FIFO) as an idempotency key.
Recently I interviewed a Senior Engineer.
Strong candidate.
Kafka? ✅
Redis? ✅
Microservices? ✅
Distributed systems? ✅
Then I asked:
"You're building the inventory service for a flash sale.
Only 1 item left in stock."
Two users hit “Buy Now” at the exact same
No son propuestas, son deseos. Ni siquiera son deseos socialistas. Son deseos bastante de centro, y lo más triste es que van sin propuestas de cómo conseguirlos. Cómo va alguien a poder soñar que todo es posible si no tenéis ni el camino?
Estas son nuestras 5 propuestas para tener paz, casa y trabajo.
1️⃣Las casas son para vivir.
2️⃣Bajar el coste de la vida.
3️⃣Ni un euro para guerras.
4️⃣Subir el SMI a 1.800€ y jornada laboral de 30h.
5️⃣Proteger lo público y políticas contra el cambio climático.
🎥@_PabloFdez_
This is not significant. Tests were performed by the same agent session within the code and the tests.
Predictable quality improvement happens at empty context, not dirty with impl. detail. Use ultracode in Claude or a coordinator agent that will spin different subagents.
ok it's official... AI-written unit tests and integration tests are empirically proven to be unhelpful. you should tell your agents to stop writing tests by themselves
on the deepswe eval set, banning sonnet 5.5 high from writing any tests actually resulted in slightly higher