Integration testing with Testcontainers and @ServiceConnection
Wire PostgreSQL and Redis Testcontainers in Spring Boot 3.1 using @ServiceConnection, singleton containers, container reuse, and local TestApplication.
Wire PostgreSQL and Redis Testcontainers in Spring Boot 3.1 using @ServiceConnection, singleton containers, container reuse, and local TestApplication.
How @WebMvcTest, @DataJpaTest, and @JsonTest scope beans, how Spring TestContext builds cache keys, and why @MockBean and @DirtiesContext break reuse.
How Kotlin value class boxing and name mangling work, modeling business failures with sealed interfaces vs. Result, and handling Spring and Jackson boundaries.
Configure kotlin-spring and kotlin-jpa for Kotlin JPA entities, avoid data class pitfalls, and set clear rules for val/var and nullable IDs.
How HikariCP pool sizing works, how to spot pool exhaustion with Micrometer metrics, and why REQUIRES_NEW causes pool deadlocks in Spring Boot.
How to read PostgreSQL 15 EXPLAIN (ANALYZE, BUFFERS) output, understand scan and join nodes, and fix planner row-count misestimates with table stats.
Comparing InnoDB record, gap, and next-key locks with PostgreSQL row locks, plus diagnosing and preventing deadlocks with InnoDB status and pg_locks.
Reproducing Non-Repeatable Read and Lost Update across two sessions, and why MVCC makes REPEATABLE READ behave differently in PostgreSQL and InnoDB.
How B-Tree page layout, the leftmost prefix rule, equality vs. range column order, and covering indexes work in PostgreSQL 15 and MySQL 8.0.
JMH and -prof gc benchmarks of Kotlin Sequence vs. Iterable pipelines on JDK 17, plus javap bytecode analysis of inline and reified functions.