Spring Cloud Stream: Difference between revisions
Line 42: | Line 42: | ||
<font color=darkgray>Is this the same thing as the handler method?</font> | <font color=darkgray>Is this the same thing as the handler method?</font> | ||
<syntaxhighlight lang='java'> | |||
@StreamListener(Sink.INPUT) | |||
public void handle(...) { | |||
... | |||
} | |||
</syntaxhighlight> | |||
==Annotations== | ==Annotations== |
Revision as of 20:36, 23 October 2018
External
- https://cloud.spring.io/spring-cloud-stream/
- https://cloud.spring.io/spring-cloud-stream-app-starters/
- Spring Cloud Stream Core https://docs.spring.io/spring-cloud-stream/docs/Elmhurst.RELEASE/reference/htmlsingle/#_spring_cloud_stream_core
Internal
Overview
Spring Cloud Stream is a framework for building highly scalable event-driven microservices connected with shared messaging systems. Spring applications use Spring Cloud Stream libraries to bind to a messaging middleware.
Concepts
Destination Binder
The component responsible to provide integration with external messaging systems. Available binders:
Destination Binding
Bridge between the external messaging system and application-provided Producers and Consumers of messages. The Producers and Consumers are created by the Destination Binders.
Sink Binding
Input and no output.
Destination
The destination can be a queue, topic, or others.
Message
The canonical data structure used by Producers and Consumers to communicate with Destination Binders, and thus other applications via external messaging systems.
Message Handler
Is this the same thing as the handler method?
@StreamListener(Sink.INPUT)
public void handle(...) {
...
}