r/java • u/veerendra2 • Oct 07 '26
Push-based, restart-free feature flags and config for Spring Boot, using MongoDB Change Streams
configstream is a library for Spring Boot services that already use MongoDB. Feature flags and config live in a collection, get cached in memory, and any change is pushed to every running instance within about a second via MongoDB Change Streams.
- No restarts, no polling, no message broker, no config server
- Properties declared in a
configstream.ymlmanifest, with typed constants generated at compile time - Optional admin UI with change history and per-team permissions
- Works with Spring Boot 3 and 4
Limits: MongoDB only for now (Postgres planned), pre-1.0, no percentage rollouts or A/B testing.
https://github.com/configstream/configstream
Feedback welcome.
0
Upvotes
View all comments
Show parent comment
1
u/reachkhajam Oct 07 '26
I'm the author of configstream. Fair point, that was loose wording on my part. MongoDB is the config store here, so there is a server involved.
What I meant is that there's no extra server to run. configstream targets teams whose services already use MongoDB, so it adds two collections to the database each service already has, instead of a separate config service to deploy, scale, secure and monitor. And the database isn't in the read path: each instance keeps the values in memory, so if MongoDB is down, the app keeps running with its last known values and only stops receiving changes until it reconnects.
If your services don't use MongoDB already, you're right that this doesn't save you anything. Spring Cloud Config or Consul would be the better fit there.
I've updated the README to say this plainly, thanks for pointing it out: https://github.com/configstream/configstream#what-it-does