Tag: java
All the articles with the tag "java".
Kafka on Kubernetes with Strimzi: partitions, rebalancing, failover, commits and a DLQ in one lab
A local kind cluster running Kafka 4.3.2 in KRaft mode through Strimzi, and the commands and real output for keyed partitions, consumer groups, losing a broker, at-least-once vs at-most-once commits, an idempotent consumer and a retry topic with a dead letter queue in Spring Boot.
Java4Shell (CVE-2026-114938): the Base64 intrinsic bug, and how to check your JVM
Why a padded Base64 tail makes HotSpot's AVX-512 decoder write 64 bytes into a much smaller array, which CPUs and Java versions run that code, three commands to check a server, the JVM flag that turns it off, and which builds carry the four-line fix.
One Spring Boot jar on five JVMs: Temurin, Corretto, Zulu, Semeru and GraalVM under load
The same Spring Boot 4.1 notes API, built once and run on five Java 25 runtimes with default settings. k6 read, write and mixed tests on DigitalOcean, with startup, requests per second, p99, memory, GC and JIT compile time for each JVM, plus the scripts to repeat it.
Spring Boot logging, from log levels to Grafana Loki
A Spring Boot 4.1 service that logs at every level, writes JSON with one property, changes its log level at runtime through Actuator and ships everything to Loki with Grafana Alloy. Every config file, command and output, plus the LogQL that finds a failed payment and its stack trace.
Ten Spring Boot speedups on one small app, with the commands and the numbers
An index found through pg_stat_statements, join fetch, JDBC batching that stays off with IDENTITY ids, a Caffeine cache, projections, open-in-view, keyset paging, parallel calls, gzip and a JDK AOT cache. Each one with the code, the command that measures it and the output from one laptop.
Java garbage collection in its own log: eight checks you can run
Eden, survivor spaces, tenuring and full collections are easy to draw and easy to forget. Here is one 25-line program and the JVM flags that make each step show up as numbers you can add up yourself.