Inventory Sync
Store and online shop always show the same stock. Synced every 5 seconds, even when the shop drops out briefly.
At a glance
5suntil store and online shop match
60sfull sync as a safety net
41automated tests guard every change
5retries until the shop answers again
Try it yourself
Sell in the store, take the online shop down, send a faulty stock list. The stock stays correct.
Try it: follow the golden hints.
Store0
Online shop0
ItemStoreShopStatus
What is happening
0stock counts updated
0new tries after errors
0items currently different
Rebuilt in the browser with the rules of the real service: the shop always gets the exact count, never just a change. Failed tries are repeated, a suspicious stock list is stopped. The real code is on GitHub.
How it works
- Python
- FastAPI
- SQLAlchemy
- PostgreSQL
- httpx
- Docker
- pytest