Spring Cloud Stream - Interview Questions

What is Spring Cloud Stream?

 

Spring Cloud Stream, part of the Spring Cloud platform, is a framework to build highly scalable event-driven microservices connected with shared messaging systems.

The framework provides flexible programming model built on already established and familiar Spring patterns and best practices. Spring Cloud Stream supports persistent pub/sub semantics, consumer groups, and stateful partitions.

What are the core building blocks of Spring Cloud Stream?

 

Spring Cloud Stream consists of the following key components.

1. Destination Binders - Destination Binders are components responsible for integrating with external messaging systems.

2. Destination Bindings - Destination Bindings are components that provide the bridge between the external messaging systems and application provided Producers and Consumers of messages.

3. Message - Message is the payload used by producers and consumers to communicate with other applications via external messaging systems using the Destination Binders.

What external messaging systems does Spring Cloud Stream support?

 

Spring Cloud Stream provides binder implementations for the following messaging systems.

1. RabbitMQ

2. Apache Kafka

3. Amazon Kinesyis

4. Google PubSub

5. Solace PubSub

6. Azure Event Hub