Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vanishine/java-rabbit-example
https://github.com/vanishine/java-rabbit-example
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/vanishine/java-rabbit-example
- Owner: Vanishine
- Created: 2021-02-03T10:20:57.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T13:28:40.000Z (almost 4 years ago)
- Last Synced: 2024-01-24T15:48:32.210Z (10 months ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RabbitMQ
## Start the project
Create a container for RabbitMQ:
```shell
docker pull rabbitmq:management
docker run -d --hostname rabbit --name rabbit rabbitmq:management
```Get IP address of the container:
```shell
docker exec rabbit hostname -I
```Attach to the container:
```shell
docker exec -it rabbit /bin/bash
```## Some key points
Provided that a consumer with slow consume ratio and enabled auto ACK mechanism, the server will constantly push new messages to the client and maybe flood the client. After the client disabled this mechanism, the server will provide the consumer messages at a reasonable speed.