How do you create a custom RabbitMQ configuration in Spring Boot?
Configure RabbitMQ in Spring Boot with connection properties, queue and exchange beans, a JSON converter, dead-letter handling and a custom listener factory.
2,881 posts about Java: questions with answers, tutorials and articles, newest first.
Configure RabbitMQ in Spring Boot with connection properties, queue and exchange beans, a JSON converter, dead-letter handling and a custom listener factory.
Compare the AUTO, MANUAL and NONE acknowledgement modes in Spring AMQP and learn how to ack, nack, retry and dead-letter RabbitMQ messages safely.
Set up a RabbitMQ consumer with @RabbitListener, a JSON converter, retries and a dead-letter queue, plus a Testcontainers test.
The spring-boot-starter-amqp dependency adds Spring AMQP and the RabbitMQ client, then auto-configures the connection, template and listeners for you.
Set up Spring AMQP with RabbitMQ: configuration, exchanges and queues, JSON messages, listeners, retries and a dead-letter queue.
ProducerFactory creates the Kafka producers that KafkaTemplate uses. Learn how Spring Boot configures it and when to define your own DefaultKafkaProducerFactory.
Configure Kafka producers in Spring Boot with properties or a custom ProducerFactory and KafkaTemplate, with durability and throughput settings explained.
Kafka Serializer and Deserializer turn Java objects into bytes for producers and back into objects for consumers. Learn custom classes and Spring Boot setup.
KafkaTemplate sends records to Kafka topics from Spring applications. See Boot configuration, send variants, callbacks, headers and transactions.
Send messages to Kafka from Spring Boot 3 with KafkaTemplate: producer configuration, topic creation, keys, JSON values and safe delivery settings.
The spring-boot-starter-kafka starter adds Spring for Apache Kafka to Spring Boot and auto-configures KafkaTemplate, listeners and topics from properties.
Step-by-step Spring Boot and Kafka setup: dependency, YAML config, topics, KafkaTemplate producer, @KafkaListener consumer and dead-letter error handling.
In Quartz, JobDetail defines what runs and Trigger defines when. Learn the Spring Boot 3 setup, trigger types, persistence and misfire handling.
Add the Quartz starter, write a job class, and register JobDetail and Trigger beans. Covers cron triggers, JDBC clustering, runtime scheduling and misfires.
It adds the Quartz Scheduler to Spring Boot with auto-configured scheduler, Spring-aware jobs and optional JDBC persistence for clustered, durable scheduling.
Add spring-boot-starter-quartz, write a QuartzJobBean and declare JobDetail and Trigger beans, with JDBC persistence for restarts and clusters.
@Scheduled runs Spring bean methods periodically with fixedRate, fixedDelay or cron. Learn setup, thread pools, time zones and running in clusters.
Write a thread-safe rate-limiting filter in Spring Boot that returns 429 with Retry-After, handles proxies, and notes how to scale beyond one instance.
Bucket4j adds token bucket rate limiting to Java apps, from a single JVM to Redis-backed clusters, and fits neatly into Spring Boot filters.
Compare Spring Boot rate limiting options and implement Resilience4j RateLimiter with properties, fallback and a global 429 handler.