Topic archive
Spring Boot
Spring Boot, JPA, transaction management, and backend practices.
-
Streaming File Uploads in Spring Boot: 300 MB Under a 64 MB Heap, Measured in WebFlux and MVC
What a multipart upload actually does in Spring Boot 3.5.16: when the handler runs relative to the bytes on the wire, why a size check inside FilePart.content() cannot abort early, why the usual per-buffer APPEND write fails outright, and 300 MB uploads under -Xmx64m in both stacks.

-
Spring Boot 3 Cache Invalidation with Redis: @CacheEvict, @CachePut, TTL, Null Entries, and What Pub/Sub Is Actually For
Tested on Spring Boot 3.5.16 and Redis 7.4.11: the exact keys and TTLs Spring writes, why a null result can throw, why a second instance needs no pub/sub message to see an eviction, and the customizer ordering trap behind spring.cache.cache-names.

-
Spring Boot 3.5 Native Images with GraalVM: A Measured Build, Startup Against the JVM, and a Reflection Failure Fixed with RuntimeHints
One Spring Boot 3.5.16 web app compiled with GraalVM CE 21.0.2 and Native Build Tools 0.10.6: 1m14s build, 78 MB binary, first response in about 50 ms versus about 1 s on the JVM, plus a ClassNotFoundException reproduced in the native binary and fixed with a RuntimeHintsRegistrar.

-
Custom Metrics in Spring Boot 3.5 with Micrometer and Prometheus: Names, Exposure, Cardinality, and the Test That Returns 404
A Spring Boot 3.5.16 counter, gauge, and timer scraped by a real Prometheus 3.14, with the naming rules, the exposure property, a measured user-id cardinality blow-up and its MeterFilter cap, and the @AutoConfigureObservability trap in tests.

-
OAuth2 Client Credentials in Spring Security: Tested Wiring for Service-to-Service Calls
A three-app lab on Spring Boot 3.5.16 with a real Spring Authorization Server: how AuthorizedClientServiceOAuth2AuthorizedClientManager caches tokens, when it silently stops caching them, what a wrong secret looks like, and the RestClient and WebFlux wiring that passed the tests.

-
Custom Health Indicators in Spring Boot Actuator: Timeouts, Custom Statuses, and the Aggregation Rules
A tested Spring Boot 3.5.16 health indicator that cannot hang the endpoint, plus what actually happens when you return a custom WARN status and when you override http-mapping.
