Architecting Spring Boot 4 with Official Spring gRPC Support
For years, the Spring community relied on excellent third-party starters (like net.devh) to bridge the gap between Spring Boot and gRPC. With the evolution of Spring Boot 4 and the…
Centralized API Documentation with Spring Gateway and Springdoc
In microservices architectures, where multiple services expose their own APIs, having centralized documentation is crucial for developers and consumers. Spring Gateway, acting as the API gateway, can be leveraged to…
Pattern Matching for Switch
Pattern matching for switch statements is a new feature introduced in Java 16 that allows for more concise and expressive switch statements. This feature enables developers to use pattern matching…
Making Injected Parameters Optional in Spring Boot
As a software architect building solutions with Spring Boot, you’ll often encounter scenarios where a component or service needs to consume another dependency that may not always be available. This…
Integrating Java Spring with Keycloak: A Comprehensive Guide
Java Spring, a popular framework for building enterprise-level applications, can seamlessly integrate with Keycloak, a robust open-source Identity and Access Management (IAM) solution. This combination offers a powerful way to…
Load Balancing Your Microservices: Configuring Spring Cloud Gateway with Spring Discovery Server
In a microservices architecture, ensuring high availability and distributing traffic evenly across multiple instances of a service is paramount. Spring Cloud Gateway, when integrated with a Spring Discovery Server (like…
Pattern Matching for instanceof
Java 16 introduced a new feature called “Pattern Matching for instanceof” which simplifies the process of casting objects in Java. This feature improves the readability and safety of code that…