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 […]
Stream video using Spring Boot chunk by chunk over Http.
You are looking for stream video over Http and hard to find how to stream over Http using java. This is pretty much playing with the header and all about status code. Here @RequestHeader is responsible for playing video over Http. Range The range header is requested by the client that the range of response […]
Create a Spring boot WebSocket application for a specific user using spring boot + angular
Today I am going to develop a WebSocket application using angular and spring boot. For this, I will describe what is WebSocket and sockjs . And most importantly how we will connect the spring boot application to angular using sockjs and send message to a specific user. What is Websocket? According to wikipedia, WebSocket is a […]
Building Custom Elements or Web Components with Angular.
For building an angular custom element , you have some basic idea about angular. What is angular custom Elements? Angular elements are Angular components packaged as custom elements (also called Web Components), a web standard for defining new HTML elements in a framework-agnostic way. A custom element extends HTML by allowing you to define a tag whose content is created and controlled by JavaScript […]