Posts

Showing posts with the label Liferay REST integration

Liferay Microservices Communication Guide (Enterprise Architecture)

Image
 Modern portals are no longer monolithic. Today, Liferay acts as a digital experience layer while business logic lives in independent microservices. This means the most important design decision becomes: 👉 How Liferay communicates with microservices In this guide you’ll learn all production communication patterns. 📌 Why Microservices with Liferay? Old architecture: Portal → Database → Business Logic inside portal Modern architecture: Portal → APIs → Microservices → Databases Benefits: Independent deployment Better scalability Easier upgrades Domain separation đź–Ľ️ High Level Architecture 4 đź§  Communication Patterns Overview There are 4 enterprise patterns: REST APIs (most common) Event-driven messaging GraphQL gateway Async job workers Each has different purpose. 🔹 1️⃣ REST API Communication (Synchronous) Best for real-time UI responses. Example: User updates profile → Call customer service Liferay Java Client URL url = new URL ( "http://customer-service/api/profile" )...

Calling Spring Boot APIs from Liferay – Step-by-Step Integration Guide

Image
In enterprise applications, it is very common to integrate Liferay Portal with Spring Boot microservices . A typical use case is when a Liferay portlet or service needs to call an external REST API built using Spring Boot. In this guide, you will learn: how to call Spring Boot APIs from Liferay common integration approaches step-by-step code examples best practices for production 🔍 Why Integrate Liferay with Spring Boot? Liferay is a powerful portal and content platform , while Spring Boot is ideal for building scalable microservices . Common scenarios: Liferay UI calling Spring Boot backend Liferay workflows invoking business services Headless APIs consumed by Liferay External system integration This architecture keeps: Liferay lightweight business logic isolated services independently scalable 🧭 Architecture Overview 📊 Diagram 1: Liferay Calling Spring Boot API 🚀 Approach 1: Calling Spring Boot API from Liferay Java Code Th...