SimpleRabbitListenerContainerFactory in Spring AMQP Explained
SimpleRabbitListenerContainerFactory builds the containers behind @RabbitListener methods. See what it configures and how to customise it in Spring Boot.
2,881 posts about Java: questions with answers, tutorials and articles, newest first.
SimpleRabbitListenerContainerFactory builds the containers behind @RabbitListener methods. See what it configures and how to customise it in Spring Boot.
Configure bounded retries, a dead-letter exchange and a DLQ for RabbitMQ in Spring Boot, plus TTL-based delayed retries.
Jackson2JsonMessageConverter sends and receives RabbitMQ messages as JSON. Learn setup in Spring Boot, type mapping and security settings.
Replace Java serialization with a JSON MessageConverter in Spring AMQP, control type resolution and handle conversion failures with a dead-letter queue.
MessageListener is the Spring AMQP interface whose onMessage method consumes RabbitMQ messages. Use it with a listener container or let @RabbitListener wrap it.
Learn how RabbitMQ acknowledgments work in the Java client: manual acks, nack and reject, prefetch, dead lettering and publisher confirms.
RabbitTemplate is Spring AMQP's helper for publishing messages to RabbitMQ, converting objects, receiving replies and handling confirms.
Build a RabbitMQ producer in Spring Boot with RabbitTemplate, JSON conversion, a REST endpoint, and publisher confirms so failed publishes are noticed.
Set up RabbitMQ in Spring Boot with queues, exchanges, JSON messages, @RabbitListener consumers, retries and a dead-letter queue.
Schema Registry gives Kafka a shared, versioned message contract. Learn how schema IDs, compatibility modes and the REST API keep producers and consumers in sync.
Implement Kafka schema validation in Spring Boot with Avro and a schema registry, plus dead-letter handling and compatibility checks.
ConcurrentKafkaListenerContainerFactory creates the containers behind @KafkaListener and sets concurrency, acks and error handling. See a working configuration.
Set concurrency on @KafkaListener or the container factory to run several consumer threads. Learn how it maps to partitions, ordering and offsets.
@Transactional makes Spring wrap a method in a transaction that commits on success and rolls back on failure. Learn its attributes and the pitfalls.
Set a unique transactional.id, call initTransactions, then wrap sends in begin and commit. Covers fencing, read_committed consumers and Spring Kafka.
ConsumerRecord is the object a Kafka consumer receives for each message. See its fields, how to read headers and timestamps, and which offset to commit.
JsonSerializer and JsonDeserializer turn Java objects into JSON bytes for Kafka and back. See the Spring Boot setup, trusted packages and error handling.
Configure Kafka producers and consumers in Spring Boot with JSON or custom serializers, safe trusted packages and an error-handling deserializer.
ConsumerConfig names, types and validates every setting of a Kafka consumer. See the key properties, their defaults and how they affect offsets, throughput and rebalances.
Set up a Kafka consumer in Spring Boot 3 with @KafkaListener, correct deserializer settings, manual acks, JSON payloads and a dead-letter topic for failures.