Erland Muchasaj

Tirana

← All work

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.

Role
Technical Lead & Staff Engineer
Team
5 engineers
Client
ATIS
Stack
  • Laravel
  • Angular
  • Ionic / Capacitor
  • MySQL
  • Ubuntu / Apache
  • Cloudflare

On the wall: parking bays filling and emptying. Blue is occupied, yellow is a bay that just changed.

Tirana Parking
  • ~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.
Colour marks the layer: blue backend, orange frontend, green mobile, violet infrastructure, rose database.

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.

Layers I worked in

  • Leadership
  • Backend
  • Frontend
  • Mobile
  • Infrastructure