How do you handle InfluxDB transactions in Spring Boot?
InfluxDB does not support transactions, so Spring Boot code must rely on batched writes, idempotent points and retries. This guide shows the practical patterns.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
InfluxDB does not support transactions, so Spring Boot code must rely on batched writes, idempotent points and retries. This guide shows the practical patterns.
Spring Boot connects to an InfluxDB cluster through a single load-balanced URL. See the client bean, writes, queries and health check, and why multi-URL clients do not exist.
Set up the InfluxDB Java client in Spring Boot, run Flux queries, map results to typed classes and learn what changes with InfluxDB 3 and SQL.
InfluxDBTemplate is an old helper for InfluxDB 1.x, not part of Spring Boot. Learn what it did and how to use the official Java client today.
Connect Spring Boot to InfluxDB 2.x with the official Java client, write and batch time-series points, and query them with Flux.
Use @Transactional with Spring Data Neo4j 7 in Spring Boot 3, run Cypher in the same transaction, control rollback and test against a real Neo4j container.
Use a neo4j:// or neo4j+s:// routing URI so the driver finds the leader and secondaries, then mark read methods with read-only transactions.
Use @Query on Neo4jRepository methods, projections and Neo4jClient to run parameterised Cypher queries from Spring Boot, with mapping and performance tips.
Create, read, update and delete graph nodes and relationships in Neo4j with Spring Data Neo4j, including custom Cypher queries, Neo4jClient and Testcontainers tests.
Neo4jTemplate gives programmatic CRUD and parameterised Cypher access to Neo4j in Spring Boot. Learn when to use it instead of repositories or Neo4jClient.
Connect Spring Boot to Neo4j with Spring Data Neo4j: configure Bolt, model nodes and relationships, write repositories and Cypher queries, and expose a REST API.
Index documents into Apache Solr from Spring Boot using SolrJ, since Spring Data Solr is discontinued. Covers client setup, beans, batching and commits.
Learn how create, read, update and delete work in a time-series database, with the InfluxDB 2.x Java client wired into Spring Boot as a bean.
Solr has commits and atomic updates, not full transactions. See how to use SolrJ in Spring Boot with commitWithin, rollback and version checks.
Connect Spring Boot 3 to SolrCloud using ZooKeeper and a SolrJ CloudSolrClient bean, with cluster setup, indexing and query examples.
Run Solr searches from Spring Boot using SolrJ. Build SolrQuery objects with filters, paging, edismax, facets and highlighting, and avoid common mistakes.
Spring Data Solr is discontinued, so this shows create, read, update and delete against Apache Solr in Spring Boot 3 with the SolrJ client and a small repository class.
Spring Boot logs with SLF4J and Logback by default. See how to set levels, rotate files, use profiles, add structured JSON logs and MDC context.
ResponseEntity represents a full HTTP response in Spring: status, headers and body. See how to use its builders for created, not found, downloads and caching.
Set up a DataSource with Spring Boot properties, a custom bean, HikariCP pool tuning or two databases, with working configuration examples.