Decorative: a 3D grid city sits behind this page. Its towers are the 215 services Krish is on call for; an amber tower is an incident and a cyan pulse is the agent answering it. Everything shown in it is also in the page text.

KRISH ARYANon-call: green

Work / 06 · Open source

Inventory and order management.

01

Problem, approach, result

Problem

  • Two orders for the last unit arrive at the same moment.

Approach

  • Transactional orders with row locking and idempotency, on FastAPI, React, PostgreSQL and Docker.

Result

  • One order wins. The other waits, then sees the truth.
02

How it works

Two orders reach the last unit at once. The row lock lets one commit; the other waits, then sees qty 0.

03

Stack and links

hover a tag to light everything that uses it