Articles

  1. Building a Health Check System with Spring Boot and MicrometerReliable applications need to tell operators whether they can accept traffic, not merely whether a Java process exists. That distinction matters for Australian…
  2. Migrating a JDBC application to Spring Data JPAMoving an application from JDBC to Spring Data JPA is a controlled data-access refactor, not a reason to discard every SQL statement. Repository abstractions…
  3. Java switch expressions and pattern matching for modern codeJava's newer branching features let developers describe decisions as values rather than sequences of mutations. A switch returns a result, while type, record…
  4. Throttling Spring Boot APIs with token bucketsImplementing rate limiting in a Spring Boot REST API caps how often a caller can send requests during a defined period. It protects application threads,…
  5. Using Hibernate's Second-Level Cache with EHCache or InfinispanHibernate’s second-level cache stores entity and collection state outside a persistence context, allowing separate sessions to reuse data. It works best for…
  6. A practical guide to Spring Boot Actuator endpointsSpring Boot Actuator turns a running Spring Boot service into an inspectable system. Its management endpoints provide health, metrics, configuration metadata,…
  7. CompletableFuture for practical asynchronous JavaJava applications often start with a familiar sequence: query stock, call a payment gateway, then return a response. When each operation waits for the previous…
  8. Writing Unit Tests With Mockito And JUnit For Spring ComponentsSpring applications often depend on databases, HTTP clients, message brokers and payment providers. Unit tests isolate a class from those systems, so a…
  9. Optimising Hibernate Performance by Resolving N+1 QueriesHibernate can make database access feel effortless: load an entity, traverse a relationship, and let the ORM handle the SQL. That convenience becomes expensive…
  10. How to implement two-factor authentication in Spring SecurityA password alone is a weak boundary for a modern application. Two-factor authentication (2FA) adds a second proof, usually a time-based one-time password…