Articles

  1. Creating a GraphQL API with Spring Boot and GraphQL JavaGraphQL gives web and mobile clients one typed endpoint for fetching exactly the data they need. It suits products that combine catalogues, accounts and…
  2. Handling Database Transactions with Spring's @Transactional AnnotationAn online checkout often changes several records: it creates an order, reduces stock and records a payment reference. If one operation fails, the database must…
  3. Java Records for Cleaner Data Transfer ObjectsData transfer objects (DTOs) often begin as simple carrier classes and accumulate routine syntax. A client identifier, customer name, timestamp and status may…
  4. Choosing between WebClient and RestTemplate for REST APIsBuilding a REST client with Spring WebClient vs RestTemplate comes down to how the application handles I/O. Both clients can call JSON APIs, map responses,…
  5. Understanding the Java memory model and garbage collection tuningMany Java performance incidents begin with a misleading symptom: CPU rises, requests queue, or an application suddenly slows after deployment. The Java memory…
  6. How to use Java atomic classes for thread-safe counter operationsA shared counter looks harmless until two threads read the same value and write back different results. In a Spring service handling simultaneous requests,…
  7. Versioning a Spring Boot REST API with content negotiationContent negotiation lets a client choose a representation of the same resource through the HTTP Accept header. For a Spring Boot REST API, this can carry the…
  8. Building a soft reference cache for memory-sensitive Java systemsJava applications cache recently used objects to reduce database traffic and latency. A soft reference cache lets the garbage collector clear entries under…
  9. Java modules for stronger package encapsulationJava’s module system, introduced in Java 9, adds a boundary around groups of packages. It controls which packages are exposed to other modules, which…
  10. Spring Boot and Apache Camel for enterprise integrationAustralian organisations rarely operate as one bounded system. A payment service in Sydney may talk to a warehouse platform in Brisbane, an identity provider…