Problem How to start two or more Liferay servers simultaneously with different ports? Sometimes, we need to start multiple Liferay servers on the same system to locally debug problems with clustering or remote staging features. Solution We can modify the Liferay Tomcat server configuration and change the Elasticsearch properties for two separate Liferay instances (e.g., […]
Problem Why does the Socket.IO server stop running when the terminal is closed? Solution Configure and run the Socket.IO server as a systemd service to ensure it remains active after terminal closure. Prerequisites Here’s how to do it step-by-step Step 1: Create a systemd service file Run this command to create a socketio.service file to […]
What is the CQRS Pattern? CQRS (Command Query Responsibility Segregation) is an architectural pattern that emphasizes the separation of commands (methods that change state) from queries (methods that read state). It is based on the Command Query Separation (CQS) principle, which was first introduced by Bertrand Meyer. CQRS recommends that we classify the operations performed […]
What are Microservices? Microservices are a modern software development approach in which the application code is delivered in small, manageable pieces that operate independently of one another. It’s a method to build a distributed system that emphasizes fine-grained services, is loosely coupled, and focuses on a single business responsibility. Introduction to Microservices Although there is […]
What Is Saga Architecture Pattern? The Saga design pattern is a useful tool for ensuring data consistency when dealing with distributed transactions across microservices. This pattern involves creating a series of transactions that update microservices sequentially and trigger events to initiate the next transaction for the next microservice. SAGA is a design pattern that consists […]
Are you looking to integrate a messaging queue with the Spring Boot application? There are a lot of messaging queue applications and among them here I have listed which are used frequently. This article provides a step-by-step guide for integrating Apache Kafka into a Spring Boot application. Prerequisites To start building a Spring Boot and […]
Would you like to understand the basic concept of Apache Kafka? See our previous blog on the basic concept of Apache Kafka. Download Apache Kafka You can download Kafka version 3.5.0 from a link https://kafka.apache.org/downloads. Zookeeper You can download Zookeeper version 3.8.1 from a link https://kafka.apache.org/downloads. Important: For Zookeeper, need to download the .bin-tar file. […]
What is Kafka? Kafka is a distributed messaging streaming platform that is used to publish and subscribe to stream the records that can handle a high volume of data and enables you to pass messages from one end-point to another. For example, We have one entity data(DB) and it is centralized for the entire system. […]
Lombok enhances the Java programming experience by incorporating convenient features into your editor. These include automated variable logging and class builders that require only one annotation. Download Lombok Liberary You can download the Lombok library(.jar) for Maven from this link with the latest version you want. We are referring here to version 1.18.28. Install the […]