Europe's electrical grids face a dual crisis: surging demand from EVs and heat pumps, combined with volatile renewable supply. Upgrading physical infrastructure would cost billions. The smarter alternative is software-driven flexibility, and that's where SPARklE comes in.
SPARklE is a cloud-native microservice platform (Java/Spring Boot core, Python optimization algorithms) that manages Renewable Energy Communities (RECs) and participates in energy flexibility markets. This talk explores the domain challenges that shaped our architecture and the production engineering decisions behind them.
We will dive into three core areas:
Time-Series Data at Scale: TimescaleDB hypertables and retention policies for high-frequency IoT ingestion from smart meters.
Hardened Multi-Tenancy: PostgreSQL Row-Level Security with session variable propagation through a connection pool (and some subtle edge cases we hit).
GitOps via FluxCD: Kubernetes deployments in a multi-party project where components are owned by external partners.
An honest look at production trade-offs made by a small team building software that impacts real-world grid stability. Includes a live demo.
Target Audience: Java/backend developers, DevOps engineers, and architects working on data-intensive or multi-tenant systems. No prior energy domain knowledge required.
Key Takeaways: Production-tested PostgreSQL RLS multi-tenancy; real TimescaleDB adoption patterns at IoT scale; GitOps strategies for multi-party projects.