CASE FILE 02 · Go + PostGIS · live
Tabi
Meet people by doing small things together: pick a short plan on a map, meet at a public place, level up as you go.
The problem
Open-ended socialising is hard for people who find it awkward. Tabi swaps swiping and group chats for a short, time-boxed plan at a public place: a coffee before class, a pickup game, an hour of revision.
It starts in Kingston, is for adults 18 and over, and treats safety as a feature that stays free.
Numbers
- 96Klines of Go backend
- 138versioned migrations
- 147Go test files, run against a real Postgres
- 30 daysvenue catalogue refresh from OpenStreetMap
What I built
Architecture
- A mobile app on a Go backend over PostgreSQL with PostGIS. Row-level security on the schema.
Backend
- Quests with a kind, a time, a length and a public meeting point; check-in when both people arrive or by scanning each other's code.
- XP, classes earned from what you do most, bosses, dungeons, raids, streaks and parties of up to five.
- A safety timer on every quest that asks everyone if they are okay, an SOS that alerts trusted contacts, and block and report.
Frontend
- A world drawn in a fine grid of ASCII art, with a mascot you dress with gear you earn, guild halls and rooms you decorate.
Data
- H3 cells, so the system stores only a rough location. Live location is shared only with people on the quest, only while it is on, and is never stored.
- Append-only event ledgers feed transactional batch jobs that build world and regional leaderboards with window functions and advisory locks.
- A Postgres job queue (FOR UPDATE SKIP LOCKED, retries, crashed-worker recovery) runs aggregation, data-retention and notification jobs.
- An ETL pulls OpenStreetMap venues through the Overpass API, maps raw tags to a venue catalogue and refreshes it every 30 days with retries.
Hard problems
- 01Knowing where people are without keeping where they are
H3 cells let the backend match and rank by area while storing only rough location. Live position exists only for the length of a quest.
- 02A queue with no queue server
Scheduled work runs on a Postgres job queue using SKIP LOCKED, with retries and recovery when a worker dies mid-job.
- 03Leaderboards you can rebuild
Gameplay is stored as append-only ledgers, so the world and regional boards can be recomputed from history instead of being patched in place.
Stack
- Go
- PostgreSQL
- PostGIS
- H3
- Row-level security
- Overpass ETL
- Job queue
- Window functions
- Advisory locks
Screens













