Utilizing Multiple Schemas in Spring Boot: A Practical Guide for Productive and Test Code

As we worked towards phasing out one of our database systems, we faced the task of migrating data into our established MySQL Database. However, the data didn’t align with our current business data/model stored in the database. This led us to a decision: create an entirely new MySQL instance or establish a new schema within …

Harnessing the Power of Request Scoped Beans: @RequestScope in a non web-based Request

Spring, the versatile framework, empowers developers with an array of remarkable features for managing the lifecycle of beans. Typically, Spring handles the bean lifecycle when we utilize annotations like @Service or @Component. As the Spring Container starts up, these beans are created, and upon its shutdown, they are gracefully destroyed. However, beyond these familiar methods, …

Setting up google managed certificate for wildcard domains on a Global HTTPS Load Balancer

In Switch from Regional Load Balancer to a Global HTTPS Load Balancer we used a self signed certificate on the load balancer. This serves as a default / backup certificate. We now need to use a google-managed certificate with wildcards which will be checked before the self signed one. Google right now does not support …

How to switch from an NGINX Ingress Regional Load Balancer to a Global HTTPS Load Balancer on GCP

If you are using Gitlab and you set up your cloud environment on GCP with the cluster-management project from Gitlab, you will earlier or later notice, that there are a few things missing which you may need. Here we will focus on the missing implementation to setup a Global HTTPs Load Balancer instead of a …

Distributed cache in a Spring Boot Application with Hazelcast

Ever tried using a distributed cache in your Spring Boot Application? It will be useful, ones you want to scale up your application. This post will focus on the implementation and on some mistake I made while using Hazelcast. Why to use a distributed cache? If you want to run your application multiple times simultaneously, …