This topic describes the sample code for sending and receiving messages by using the Apache RocketMQ SDK for Go.
Message type | Sample code for sending messages | Sample code for subscribing to messages in SimpleConsumer mode |
---|---|---|
Normal messages |
| ExampleSimpleConsumer.go |
Ordered messages | ExampleProducerWithFifoMessage.go | |
Scheduled and delayed messages | ExampleProducerDelayMessage.go | |
Transactional messages | ExampleProducerWithTransactionalMessage.go |