Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vanishine/java-rabbit-example


https://github.com/vanishine/java-rabbit-example

Last synced: 1 day ago
JSON representation

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.