Prerequisite
RocketMQ
Download & Build from Release
Execute the following commands to unpack 4.2.0 source release and build the binary artifact.
Start Name Server
|
|
Start Broker
|
|
Send & Receive Messages
Before sending/receiving messages, we need to tell clients the location of name servers. RocketMQ provides multiple ways to achieve this. For simplicity, we use environment variable NAMESRV_ADDR.
Shutdown Servers
|
|
Binder
A typical binder implementation consists of the following
- a class that implements the Binder interface;
- a Spring @Configuration class that creates a bean of the type above along with the middleware connection infrastructure;
- a META-INF/spring.binders file found on the classpath containing one or more binder definitions, e.g.12rocketmq:\org.springframework.cloud.stream.binder.kafka.config.KafkaBinderConfiguration