PSPF Roadmap 2026: Hardening for Scale & Security
This roadmap outlines the evolution of PSPF from a functional framework to an enterprise-hardened streaming platform.
Phase 1: Security & Persistence (Hardening)
Objective: Eliminate high-risk dependencies and ensure crash-resilience for all connectors.
- [x] Serialization Migration:
- Replace
picklewith Msgpack as the default binary format in SQLite and RocksDB backends. - Implement a "Safe JSON" fallback for human-readable state inspection.
- Replace
- [x] Durable Retry Tracking:
- Refactor
KafkaStreamBackendto store retry counters in theStateStoreinstead of in-memory. - Ensure message retry state survives worker restarts.
- Refactor
- [x] Idempotent Sinks:
- Provide a standard
BaseSinkthat enforces idempotency tokens for external side-effects (API calls, DB writes).
- Provide a standard
Phase 2: High-Performance Connectivity (Interop)
Objective: Enhance Kafka reliability and support enterprise data formats.
- [ ] Kafka Low-Watermark Commits:
- Implement a local offset manager for Kafka that tracks the "low-watermark" of a batch.
- Ensure that failing messages stop the offset progression of the entire partition to prevent data loss.
- [ ] Pluggable Serializers:
- Support Protobuf and Avro as first-class schemas.
- Add a
SchemaRegistryintegration for Kafka.
- [ ] Batch Performance Tuning:
- Introduce
aiokafkaproducer batching and compression settings inValkeySettings.
- Introduce
Phase 3: Operational Excellence (Stability)
Objective: Simplify deployment and improve cluster-wide stability.
- [ ] Resilient Port Binding:
- Implement automatic port incrementing for Admin API and Telemetry if the default port is occupied.
- Expose
actual_portin the cluster metadata for coordinator discovery.
- [ ] Optimized Cluster Rebalancing:
- Extract rebalancing logic from the 3s heartbeat loop into a membership-triggered
StateSyncevent. - Reduce Valkey/Redis overhead by 40% in large clusters.
- Extract rebalancing logic from the 3s heartbeat loop into a membership-triggered
- [x] Native CLI Tooling:
- Implement
pspf-clifor live stream tailing, manual DLO reprocessing, and state inspection via the Admin API.
- Implement
Evaluation Metrics
- Data Loss Rate: Zero (Verified via Chaos testing).
- Startup Time: < 1s (Delayed Admin start).