Platform
Tirana Parking
The city's parking platform. About 10,000 users and 25,000 transactions a day across an API, a web dashboard and a mobile app.
On the wall: parking bays filling and emptying. Blue is occupied, yellow is a bay that just changed.

- ~10,000users
- ~25,000transactions a day
- 5engineers on the team
Problem
A city's parking runs through one platform. It has a mobile app, a web dashboard and one API behind both, and that API has to keep answering while about 25,000 transactions come in every day.
Architecture
- I owned the business logic, the data analysis, the database design and the architecture of the API, web dashboard and mobile app.
- The backend is structured as HMVC with laravel-modules, an open-source package I wrote, so each area of the system is a self-contained module.
- Live parking availability comes from Windows machines on site. Data is synced over SMB, with one queued job per parking lot, so a slow lot never holds up the others.
- Dates and time zones are handled the same way in Laravel, Angular and Ionic.
Clients
- Angular dashboard
- Ionic mobile app
Edge
- Cloudflare
Server
- Ubuntu
- Apache mpm_event
- PHP-FPM
API
- Laravel
- HMVC modules
- MySQL
- Queue workers
On site
- Windows machine at each parking lot
Outcome
- Under load, Cloudflare was returning 522 errors. I moved Apache from mpm_prefork to mpm_event with PHP-FPM and they stopped.
- The platform serves about 10,000 users and 25,000 transactions a day.
- laravel-modules, the package the backend is built on, is open source.