Zenvy, the ad, 0:25. What it shows:
- 0:00, The call: Calling Turf Booking Mama. A recorded voice: আপনার ডায়ালকৃত নম্বরে এই মুহূর্তে সংযোগ প্রদান করা সম্ভব হচ্ছে না, the number you dialled can’t be reached right now. চেনা লাগে? Sound familiar?
- 0:05, The group chat: Friday Football. Who’s in today? Is the turf booked? I called him three times, his phone’s off. The other turf has no 8 pm slot. Whose number do I send the advance to? Forget it, not today.
- 0:09, আর না: আর না। No more. আপনার পছন্দের মাঠ, the turf you want. খালি স্লট, এক ট্যাপে, free slots in one tap. শুধু ৳১০০ অগ্রিম, just a ৳100 advance. বুকিং নিশ্চিত, booked.
- 0:15, Booked: Back in the chat: The Goal Station, tonight at 8, booked. বুক করে ফেললাম, ৮টায় চলে আয় সবাই, booked it, everyone come at 8. 🔥🔥🔥
- 0:16, এবার শুধু খেলা: Night matches on the turf. এবার শুধু খেলা। Now, just play.
- 0:20, Tonight?: আজ রাতে খেলবেন? Playing tonight? ফোন ছাড়াই, কয়েক সেকেন্ডে মাঠ বুক করুন, book a turf in seconds, no phone call. zenvy.com.bd, ২০% ছাড় প্রথম খেলায়, 20% off your first game.
Case study 01 / 042026
Zenvy
- My part
- Co-founder and CTO
- Built with
- Next.js, Express, PostgreSQL, Prisma
- Payments
- bKash, Nagad, Rocket, Upay, Card
- Live
- 28 turfs in Sylhet
- Tests
- About 900, against a real Postgres
Book a football turf in Sylhet without calling anyone.
Football in Sylhet is played on small artificial-grass turfs, rented by the hour. Zenvy shows every free hour, takes a small advance by bKash or card, and gives the people who run the grounds an app that keeps working when the signal drops.
Where it stood
To book a turf, you called the manager. Often nobody picked up, and when they did, they were checking a notebook while another team asked about the same hour.
That was the whole problem: you couldn't see what was free, and nobody could promise an hour was yours. Players lost evenings, and grounds lost money on empty hours they didn't know they had.
What I decided
The database refuses double bookings
A rule in Postgres turns away any two bookings whose times overlap, on every code path. A test fires 20 claims at the same hour at once, and exactly one gets through.
The payment redirect isn't trusted
The gateway's redirect back to the site isn't signed, so a booking is confirmed only after a server-to-server check, and webhooks are verified by their signature.
An owner app that works without signal
Cash taken at the ground waits on the phone and syncs when the connection comes back, without being counted twice. Risky actions, like blocking an hour, are refused while offline.
Made for managers who may not read easily
Amounts and names can be read aloud in Bangla at a tap. The day is picked by part (morning, evening, night) instead of from a 24-hour list, payment types are icons, and every target is at least 44 px.
Bangla first
Bangla is the default and English is one tap away. English text messages write Tk instead of ৳, because one character outside the basic SMS set turns a 160-character message into a 70-character one and roughly doubles the cost.
What changed
| Measure | Before | After |
|---|---|---|
| The advance a player pays | 20% of the price | A flat amountper hour, set by each ground |
| Commission for the grounds | 5% | 0%at launch |
| Payout ledger query | 426 ms | 54 ms |
A percentage made advances nobody chose, like ৳260 or ৳440; a flat amount is the same number in the SMS, on the receipt and at the gate. Commission is saved on each booking, so changing it later never rewrites money already earned. The ledger timing is from a synthetic benchmark of 73,000 bookings.
What I'd do next
Fill the quiet hours with a forecast. With enough booking history, a model can predict which hours will stay empty from the day, the time, the weather and holidays, so owners can discount them early. It's the first thing I'd build with the machine learning I'm studying.