configstream
A tool that updates Spring Boot configuration without restarts using MongoDB change notifications.
What does it do?
Declare a service’s configuration in configstream.yml and read it through generated constants. At startup, values stored in MongoDB are loaded into memory. When values change through the admin server or database, MongoDB Change Streams update the caches of running instances. Reads are served from memory, and each instance retains its last known values if MongoDB disconnects. The admin server lets users view values and change history.
Key features
- Store feature flags and non-secret configuration values in MongoDB.
- Update configuration caches in running instances through MongoDB Change Streams.
- Read the last known values from memory during a MongoDB outage.
- View values by service and change history in an optional admin server.