What is the role of Spring Cloud Bus?
A) To propagate configuration changes across microservices
B) To handle inter-service communication
C) To manage load balancing between services
D) To provide distributed caching
Answer:
A) To propagate configuration changes across microservices
Explanation:
Spring Cloud Bus is used to propagate configuration changes across microservices in a distributed system. It works by connecting distributed services with a message broker (such as RabbitMQ or Kafka), enabling them to broadcast and listen for configuration changes or other important events.
When a configuration change occurs, Spring Cloud Bus ensures that all connected microservices are notified and can update their configurations accordingly. This helps maintain consistency across the system without requiring manual restarts or updates for each service.
Reference links:
https://www.javaguides.net/p/spring-boot-microservices-tutorial.html