Fahad Jafar
Open for projectsLet's talk

Work / 02 · Techanzy · client project

PRT logo

PRT

SmartC: real-time monitoring for waste compactors

SmartC by PRT Parts monitors the waste compactors and balers PRT places with customers across the US. In production for over a year with active users.

My role
Full-stack, firmware, infrastructure
Client
PRT Parts (US)
Frontend
Next.js on Vercel
Backend
Django · Docker · Traefik
Environments
Prod · UAT · Dev
Fig. 02Data in, commands out
  1. Compactor devicenRF91 · Zephyr firmware
  2. Device cloudGolioth → ThingsBoard
  3. Django API1,000+ requests / min
  4. SmartC dashboardNext.js · Vercel

Hosting: DigitalOcean today, moving to Azure at the client's request

01 — The problem

PRT supplies waste compactors and balers to customers across US states, each fitted with a tracking device. The team needs to see every machine's status in real time, update its firmware, send it commands, and retire hardware cleanly when it goes quiet.

02 — What I did

I work across the whole platform: the Next.js frontend and Django backend, device data flowing in through webhooks and commands going out through APIs, the asset tracker firmware, and the servers underneath. I also run the production environment day to day.

Highlights

  • Live in production for 1+ year with active users
  • Backend takes 1,000+ device requests every minute
  • Ran a fleet-wide firmware rollout and tracked every board's update state
  • Built a decommissioning flow for inactive boards, including pausing or deactivating their SIMs
  • Moving device communication from Golioth to ThingsBoard
  • Upgraded the production server live and fixed the networking it broke on reboot

03 — Decisions

  • Next.js frontend on Vercel, Django backend on its own servers

    [ Why: add your reason ]

  • A UAT environment between dev and prod

    The client signs off on changes in UAT before anything reaches production.

  • Static network config on production

    After a resize broke DHCP networking, production moved to a static config so a reboot can't take it offline again.

04 — Results

  • 1+ yrIn production with active users
  • 1,000+Device requests every minute
  • 3Environments: prod, UAT, dev

Stack

  • Next.js
  • Django
  • Docker
  • Traefik
  • Golioth
  • ThingsBoard
  • nRF91 · Zephyr
  • DigitalOcean
  • Azure
  • Vercel

Next time: [ what you would do differently ]

Next case · 03Analytica →