HomeWorkDistributed Smart Parking

Team project · Live demo · Distributed systems · 2026

Distributed Smart Parking

A distributed system built from the Python standard library, with a demo that lets you break it on purpose.

Python standard libraryvanilla JavaScriptWeb Workers

CapabilityInfrastructure & Security

Distributed Smart Parking, live demo on desktop
Distributed Smart Parking: The live demo, with lot servers and failure controls
Distributed Smart Parking on a phone

The brief

Sensor nodes, lot servers and a driver client run as separate processes that only talk through messages. Any of them can be killed, and the rest keep working.

The challenge

Processes that only talk through messages have to keep working when any one of them is killed.

Our role

  • Protocols
  • Servers
  • Recovery
  • Browser demo

What we built

  • Hand-built TCP framing. With idempotent request and reply.
  • Pub-sub and group messaging. A broker and registry-based group messaging.
  • Log replay recovery. Lot servers replay their logs on restart.
  • A browser demo. The system as Web Workers, with scripted failure scenarios and downloadable logs.

Where it stands

The live demo runs the whole system in the page as Web Workers.

Credits

A university team project. Our contribution covered the protocols, servers, recovery and the browser demo. Other parts were built by teammates.

Distributed Smart Parking: Communication patterns, drawn from the running system
Communication patterns, drawn from the running system

What we chose, and why.

The decisions that shaped the build, and the reason behind each.

Decision 01

Standard library only

TCP framing, pub-sub and group messaging written in plain Python.

Decision 02

Idempotent requests

Replies can be retried safely after a dropped link.

Decision 03

Log replay

Lot servers rebuild their state from their logs on restart.

Your project

Need something like this?

Tell us about the system, the storefront or the workflow. We reply within one business day with next steps.