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, …

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, …