I designed, built and run SPARC, the platform collecting sensor data on two ULB campuses. Alone, from the gateway to the database.
SPARC
Sensor Platform for Academic Research and Community · in production since January 2026
| Users | CIREM, ULB infrastructure department |
|---|---|
| Fleet | 34 registered sensors, 3 LoRaWAN gateways, 2 campuses (November 2026) |
| Protocols | LoRaWAN (ChirpStack v4), MQTT 5.0, HTTP |
| Data model | FIWARE Smart Data Models, NGSI-LD ids |
| Backend | Rust, 8 crates, 673 automated tests |
| Runs on | Podman + Traefik on a VM; front-end on OKD |
The problem: research and campus teams need reliable sensor data, but devices speak different protocols and no team should have to run its own pipeline.
Constraints
- One engineer, from design to production
- Reuse the LoRaWAN gateways already on campus
- Three device protocols: LoRaWAN, MQTT and HTTP
- Several tenants, each with isolated data
- University infrastructure: Authentik for identity, an internal PKI for certificates
Decisions and trade-offs
- Rust, because I build it alone
- With no second reviewer, the compiler is my first safety net. Trade-off: slower prototyping than in TypeScript.
- One workspace, not microservices
- One engineer runs it, so the backend is one Rust workspace (8 crates) built into one image and run as three binaries: iot-ingestion, iot-processing and iot-api. Hexagonal boundaries keep the domain independent of Axum, NATS and TimescaleDB.
- Light CQRS, checked by the compiler
- Write and read paths are separate. The API layer cannot write telemetry: only the ingestion path can, and the types enforce it at compile time.
- A durable buffer before the database
- Ingestion publishes to NATS JetStream instead of writing straight to TimescaleDB, which decouples receiving data from storing it. Trade-off: one more component to run and monitor.
- TimescaleDB, not a separate time-series store
- Time series stay in PostgreSQL and plain SQL: hypertables for ingestion, continuous aggregates for reads, native compression for storage.
- The backend on a VM, not the cluster
- SPARC's scale does not justify Kubernetes for the backend: Podman and Traefik on a VM are simpler to run and to debug. The Nuxt 4 front-end ships through our OKD GitOps chain.
When things go wrong
A simulation of the write path. Stop the database, send a broken reading or replay one, and watch where each reading goes.
Running.
Simulation, not live data. The rules are the real ones: no ack until the insert succeeds,
failed validation goes to DLQ_OBSERVATIONS, and duplicates hit ON CONFLICT DO NOTHING.
Every failure case, and what SPARC does about it:
- A reading arrives twice
- Idempotent consumers store it once.
- A payload cannot be processed
- It goes to a dead-letter queue instead of blocking the stream.
- The database slows down
- JetStream keeps readings buffered between ingestion and storage.
- A sensor goes silent
- Device status is derived from last activity, so a silent sensor stands out.
- A reading crosses a threshold
- An alert goes out by email.
- The TLS certificate is renewed
- A systemd path unit sees the new certificate and restarts Traefik. No cron job.
- A user asks for data outside their tenant
- RBAC fails closed: no matching permission, no access.
Infrastructure
SPARC's backend runs as Podman containers behind Traefik on a Proxmox VM, with GitLab CI for builds and tests. Its Nuxt 4 front-end runs on our OKD cluster, deployed through GitOps.
- Proxmox VM + Podman
- The backend stack (the three Rust binaries, NATS, TimescaleDB, Traefik) runs as containers on a VM. ChirpStack v4 runs on a separate VM.
- Traefik + internal PKI
- TLS termination with a certificate from the university's internal PKI. A systemd path unit restarts Traefik when the certificate is renewed.
- GitLab CI
- Build and test pipeline.
- Prometheus + Grafana
- Metrics and dashboards for the platform.
The export queue is a table
CSV exports run in the background. Instead of adding a broker, the export_jobs
table is the queue: each worker claims one job in a single statement, and SKIP LOCKED lets several workers run without taking the same job.
// crates/storage/src/export_job.rs
async fn claim_next(&self) -> Result<Option<ExportJob>, DomainError> {
// One statement: the sub-select locks a single candidate and SKIP LOCKED
// steps over rows another worker is taking, so N workers claim N jobs.
let row = sqlx::query(&format!(
"UPDATE export_jobs SET state = 'running', claimed_at = now(), \
attempts = attempts + 1 \
WHERE id = ( \
SELECT id FROM export_jobs \
WHERE state = 'pending' \
ORDER BY created_at \
FOR UPDATE SKIP LOCKED \
LIMIT 1 \
) \
RETURNING {JOB_COLUMNS}"
))
.fetch_optional(&self.pool)
.await
.map_err(to_domain_error)?;
// ... Other work
Also in production at ULB, and built for FARI.
Digital Twin Framework · open source, MIT
A TypeScript framework for building digital twins: you write Collectors, Harvesters, Handlers and Assets Managers, and the engine schedules them, queues the work and exposes the API. NGSI-LD native, built as an in-house alternative to FIWARE/Orion. It runs in production as the gateway that unifies digital-twin entities, IoT sensors, mobility and environment data for a Unity 3D visualisation.
- Layer 3
engine: scheduler, queues, loader, OpenAPI - Layer 2
components,assets: what users extend - Layer 1
database,storage,auth: adapters - Layer 0
shared: types, errors, utils, no internal deps
Also shipped
- Tandem Language exchange platform for students and staff of three universities (ULB, VUB, UAntwerp). AdonisJS.
- IRIS Application and document submission platform for postdoctoral fellows. AdonisJS.
- Infofin ULB's platform listing research funding opportunities: calls for projects, grants, mobility, events. Laravel. infofin.ulb.be
About
I started at ULB in 2023, right after my bachelor's in computer science (networks and telecoms) at HEH. It's my first job, and most of it has been building things on my own: SPARC from the first design to production, plus the platforms around it. Working alone taught me to keep systems simple, to test what matters, and to think about what happens when something fails, because when it breaks, the Teams message comes to me.
Now I want to work in a team, with engineers I can learn from and review code with. I'm open to both backend and data engineering roles, and I'm getting deeper into streaming, CDC and lakehouses.
Outside work, I'm building a small homelab on second-hand PCs, so I can break things there before I break them at work.
I also gave a one-day training on AI for the common good to BELSPO, with the FARI AI Academy.