Spring Boot Caching with Redis
Caching is a common technique used to improve application performance by reducing the need for repeated database calls. Here’s how caching helps: Reduced Database Load: By caching frequently accessed data, you can reduce the number of database queries, which can alleviate the load on the database server. This can lead to better overall performance, especially […]
Kafka-Springboot-microservices
Kafka is an open-source distributed event streaming platform used for building real-time data pipelines and streaming applications. Provides features like fault tolerance, horizontal scalability, and low-latency message delivery, making it suitable for use cases such as real-time analytics, log aggregation, and data integration across systems. Kafka’s architecture consists of producers that publish data to topics, […]
Distributed Transaction for multiple Databases with SpringBoot , JPA for monolithic Application.
Overview This article demonstrates how to configure transactions across multiple databases using @Transactional in SpringBoot with JPA. For this example we are taking 2 databases one is MySQL , and the other one is PostgresSQL. Configurations Before moving to configuration we have to make sure that the entity class and the repository classes must be […]