Overview of Spring Cloud Bus Configuration Management Demo
mainThis sample demonstrates automated configuration management using Spring Cloud Config, Spring Cloud Bus, and Spring Cloud GCP Pub/Sub.
Architecture
- Configuration Server: Runs on port
8888. It reads configuration from a local filesystem (using thenativeprofile) or a Git repository. When it detects changes (via manual updates or the/monitorendpoint), it broadcasts aRefreshRemoteApplicationEventvia Spring Cloud Bus. - Client Application: Subscribes to the configuration server and listens for refresh events via Pub/Sub. It provides an HTTP endpoint
/messageto display dynamically updated property values. - Spring Cloud Bus: Uses a Spring Cloud Stream binder for Cloud Pub/Sub to communicate between the server and clients. By default, it uses a topic named
springCloudBus.