Purpose of spring-boot-starter-data-elasticsearch
It auto-configures an Elasticsearch client, template and repository support so you can index and search documents from Spring Boot.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
It auto-configures an Elasticsearch client, template and repository support so you can index and search documents from Spring Boot.
The Spring AMQP ErrorHandler is called when a RabbitMQ listener throws. Use it to log, classify and reject messages so poison messages do not loop forever.
Avoid endless requeue loops in Spring AMQP: enable retry with back-off, configure a dead-letter queue and reject permanent failures without requeue.
MessageConverter turns Java objects into RabbitMQ messages and back. See the built-in converters, how to switch to JSON, and how to map types between services.
@RabbitListener makes a Spring method consume messages from RabbitMQ queues, handling the listener container, conversion and acknowledgement for you.
RabbitTemplate wraps the RabbitMQ client so you can publish, convert and receive messages in Spring Boot with minimal code, including JSON and publisher confirms.
Build a reliable RabbitMQ producer with Spring Boot: connection properties, exchange and queue beans, JSON conversion, RabbitTemplate and publisher confirms.
Spring Kafka retries failed records and sends them to a dead-letter topic with DefaultErrorHandler, which replaced the removed ErrorHandler interface.
Configure DefaultErrorHandler, retries and a dead-letter topic in Spring Kafka, and protect consumers from poison records and deserialization failures.
The Spring Kafka MessageConverter maps Kafka records to the Spring messages and objects your listener uses. See built-in converters and setup.
KafkaTemplate is Spring's template for producing Kafka messages. See manual configuration, keyed JSON sends, reliability settings and embedded tests.
Set up a Spring Boot Kafka producer with spring-kafka: properties, serializers, KafkaTemplate and CompletableFuture callbacks, topic creation and reliability settings.
Use Kafka for event messaging in Spring Boot: design topics and keys, publish with KafkaTemplate, consume in groups and pick delivery guarantees.
Spring Data MongoDB's Aggregation class builds typed pipelines with match, group, sort and lookup stages. See working examples with MongoTemplate.
Build MongoDB aggregation pipelines in Spring Data with Aggregation.newAggregation and MongoTemplate, from group and sort stages to typed results and repository annotations.
Pageable becomes skip, limit and sort in a MongoDB query. See repository and MongoTemplate paging, count queries and keyset scrolling.
Structured logging writes log events as named fields, usually JSON, so you can correlate and query them across services. See a schema, Java examples and practices.
Use SLF4J, structured JSON on standard output, deliberate log levels and correlation ids so production logs stay searchable, cheap and free of secrets.
Use SLF4J, structured JSON on standard output, deliberate log levels and correlation ids so production logs stay searchable, cheap and free of secrets.
Page and sort MongoDB documents in Spring Boot with MongoRepository, Pageable and MongoTemplate, and keep large collections fast with indexes.