Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR we improved the RabbitMQ feature, by adding 3 modes to it:
isolated
In this mode each instance will have an exchange and linked to a queue defined by the name of the events, the exchanges will be binded to them:
The exchange name will be the instance name
Screenshots
![isolated_exchanges](https://github.com/EvolutionAPI/evolution-api/assets/44608323/764ef122-342b-40a4-a708-561393f41839) ![isolated_queues](https://github.com/EvolutionAPI/evolution-api/assets/44608323/2a1cd8c5-04f0-452e-bc47-0820f147fbf4) ![isolated_queue](https://github.com/EvolutionAPI/evolution-api/assets/44608323/29275cf3-277a-4131-9431-c6e6c00fcbdb)single
In this mode we'll have one exchange and one queue.
The exchange name can be customized from the env file
The queue name will be
evolution
Screenshots
![single_exchanges](https://github.com/EvolutionAPI/evolution-api/assets/44608323/d87eedd9-b582-48ef-a62d-69b8b694ae9b) ![single_queues](https://github.com/EvolutionAPI/evolution-api/assets/44608323/844b9822-d7f3-4459-a27a-4ec8c0f798ba)global
IMO this is the best option In this mode will have one exchange and 5 queues, each queue will be grouped by a few events, you can check on the screenshots bellow:
The exchange name can be customized from the env file
Screenshots
![global_exchanges](https://github.com/EvolutionAPI/evolution-api/assets/44608323/6395e310-881e-4376-bb69-09892ffd9431) ![global_queues](https://github.com/EvolutionAPI/evolution-api/assets/44608323/4d69d7cc-f7bf-4b5e-8023-68e16085a341) ![global_events](https://github.com/EvolutionAPI/evolution-api/assets/44608323/8464fd87-33f0-4694-8efc-647de5f5f9cb)2 new parameters has been added to env file:
RABBITMQ_RABBITMQ_MODE=global
-> acceps single/global/isolatedRABBITMQ_EXCHANGE_NAME=evolution_exchange
-> will only be used in global/single