CAS-MARKET
A B2B and B2C marketplace for Guinea: building materials, mining, vehicles. Orange Money and MTN payments held in escrow, and GPS-tracked delivery until the buyer confirms receipt.

Usage, in production
The starting constraints
- Every amount is a whole number in Guinean francs.
- People pay with Mobile Money, not cards.
- People sign in by SMS: the phone is the main channel.
- Trust between buyer and seller rests on escrow, released only on delivery.
The architecture
The decisions, and why
A transactional outbox between order and delivery
A synchronous HTTP call to api_logistics silently lost the event when the service was down: a paid order with no delivery. The event is now written in the same transaction as the order, then replayed by Celery with backoff and a dead-letter queue.
commit e2bdd4cThe escrow cannot be reached from the Internet
The internal fund-release routes were protected by the application alone. nginx no longer exposes them, and they require an internal token.
commit 1bf07a7Two buckets rather than one
R2 has no per-folder policy: a single bucket would have made sellers' identity documents (KYC) public.
commit a056813The real client IP behind Cloudflare
Without it, rate limiting counted the whole country as a handful of Cloudflare addresses and blocked everyone at once.
commit a056813Measure before optimising
The Celery worker leaked 99 out of 100 PostgreSQL connections, and CI took 56 minutes. Both were diagnosed and fixed: CI now runs in 8 minutes.
commits 7e7e7bf, fc290e9

The numbers, counted in the repository
Private repository: the commits cited can be shown in an interview.
What does not work yet
- No load testing yet: real capacity is unknown.
- Neither the back office nor the mobile app has tests.
- The mobile app is ready for Google Play but not published yet.