
Spring Boot Guide From First Project to Production
Build, configure, test and package a Spring Boot 4 service, then see what separates a demo from a service you can run in production.
Where to cut a system in two, how services talk, and what happens when one of them stops answering.

Build, configure, test and package a Spring Boot 4 service, then see what separates a demo from a service you can run in production.

A complete guide to Kafka producer durability in Java: acks, replication, idempotence, retries, transactions, the outbox, testing and monitoring.

Choose between REST, GraphQL and gRPC for a Java service by who calls it, how data is shaped and what tooling you need, with a verdict for each case.

Implement an Idempotency-Key header in Spring Boot so a retried POST returns the first result: key storage, request hashing, concurrency and expiry.

Compare Redis, Hazelcast and Infinispan for shared caching and state in Java: deployment model, data structures, near caches, consistency and when each fits.

Use Kafka exactly once semantics in Java: the idempotent producer, transactions for consume transform produce, isolation level and what it cannot cover.

Why exactly once delivery is hard: the Two Generals problem, at-least-once and at-most-once semantics, and how Kafka and idempotence give effectively once.

Handle duplicate and out of order messages: a processed message table, natural keys, versioning and a design that ignores delivery order.

Publish events reliably with the outbox pattern: write an outbox row in the same transaction and stream it to Kafka with Debezium change data capture.

Test a Spring Kafka consumer against a real broker in Testcontainers: send a record, wait for the effect, and cover retries and the dead letter topic.

Compute Kafka consumer lag with the AdminClient, export it as a Micrometer gauge, set time based alerts and learn what a growing lag really means.

Understand how Kafka topics split into partitions, how the message key picks the partition and ordering follows from it, and size partitions for consumers.
We send one email when a new post is published. No spam.