https://github.com/claudio-code/spring-rabbitmq-batch-config
:memo: How configure retry, listener batch with rabbitmq
https://github.com/claudio-code/spring-rabbitmq-batch-config
java rabbitmq spring
Last synced: 3 months ago
JSON representation
:memo: How configure retry, listener batch with rabbitmq
- Host: GitHub
- URL: https://github.com/claudio-code/spring-rabbitmq-batch-config
- Owner: Claudio-code
- Created: 2024-05-27T20:49:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-14T21:56:27.000Z (about 1 year ago)
- Last Synced: 2025-02-15T20:54:06.202Z (4 months ago)
- Topics: java, rabbitmq, spring
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring with Rabbitmq consuming in batch with size/time limit
This project use spring with rabbitmq to set custom containerFactory with configurations to consume messages in batch.
- **BatchListener**: If true it app consume queue in batch.
- **RetryTemplate**: Sets retry strategy used in containerFactory.
- **BatchSize**: Integer set max size to listener queue (when get to the number of batch size starts consume messages).
- **ReceiveTimeout**: Sets max time wait if not reach the batch size limit but time is running out consume queue.
- **MessageConverter**: Sets objectMapper to convert json to dto record.
- **ConsumerBatchEnabled**: If true it app consume queue in batch based on BatchSize.
- **DefaultRequeueRejected and ErrorHandler**: Sets error handler to containerFactory.