Liferay DXP 7.4: Open-Source Pricing, Architecture & Deployment Guide

Our independent Liferay review covers the open-source digital experience platform with modular OSGi architecture, headless content APIs, and enterprise portal capabilities — the only DXP offering true source-code access with commercial support.

Enterprise & Community Editions SaaS (Liferay Cloud), On-Premises, Kubernetes OSGi Modular Architecture

Executive Summary

Liferay DXP 7.4 (GA released February 2024) represents the maturation of Liferay's transition from a traditional JSR-286 portlet portal to a modern, modular digital experience platform. Unlike Adobe Experience Manager or Sitecore, Liferay's architecture is built on OSGi (Open Service Gateway Initiative) — a dynamic module system for Java that enables true runtime modularity, hot deployment, and version isolation without container restarts.

The platform ships in three editions: Community Edition (CE) — free, open-source (LGPL 2.1), no SLA; Digital Experience Platform (DXP) — commercial license with Liferay Cloud (SaaS), 24/7 support, hotfixes, and enterprise modules (Analytics Cloud, Commerce, Audience Targeting); and DXP Cloud — fully managed PaaS with automated CI/CD, scaling, and compliance certifications (SOC2, ISO27001, HIPAA-ready).

Critical differentiator: Liferay DXP is the only major DXP where you own the source code. This eliminates vendor lock-in at the platform layer — you can self-host indefinitely, fork the codebase, or migrate to any infrastructure provider. The trade-off: your team owns the operational burden (patching, scaling, security hardening) unless you purchase Liferay Cloud. See our Liferay vs Acquia comparison for a side-by-side look at how Liferay stacks up against the other major open-source DXP.

Modular Architecture: OSGi, Modules & Extension Points

OSGi Runtime & Module Layer

Liferay DXP 7.4 runs on Apache Felix 7 (OSGi R7 compliant) atop a servlet container (Tomcat 10.1 for Servlet 6.0 / Jakarta EE 10). Every capability — CMS, Forms, Commerce, Search, User Management — ships as an OSGi bundle (JAR with MANIFEST.MF metadata declaring exported/imported packages, version ranges, and service declarations). This architecture delivers:

  • Runtime hot deployment: Install, update, or uninstall modules without server restart. Bundles transition through INSTALLED → RESOLVED → STARTING → ACTIVE states managed by the Felix framework.
  • Version isolation: Multiple versions of the same library (e.g., Jackson 2.13 and 2.15) coexist via package version constraints in Import-Package headers. No "dependency hell" across modules.
  • Service registry: Components publish OSGi services (via Declarative Services annotations @Component, @Reference) consumed by other bundles. This replaces Spring's application context for cross-module communication.
  • Fragment bundles: Extend core modules (e.g., override JSPs, Language.properties, CSS) without touching source — critical for upgrade-safe customization.

Headless Architecture: GraphQL, REST & Content Delivery

Liferay's headless delivery is built on three API layers, each serving different consumption patterns:

1. Headless REST API (v1.0 — stable since 7.3)

Resource-oriented endpoints following JSON:API spec. Key resources: /v1.0/sites/{siteId}/content-structures, /v1.0/sites/{siteId}/content, /v1.0/sites/{siteId}/pages. Supports pagination, filtering (RSQL syntax), field selection (?fields=id,title,content), and optimistic locking via ETags. Authentication: OAuth2 (Client Credentials, Authorization Code), JWT Bearer, or Basic Auth for server-to-server.

2. Headless GraphQL API (v1.0 — GA in 7.4)

Single endpoint /o/graphql with introspection enabled. Schema auto-generated from content structures (Dynamic Data Mapping). Supports fragments, variables, directives (@skip, @include), and persisted queries. Critical limitation: no real-time subscriptions — for live updates, poll or use Server-Sent Events via custom endpoint. Query complexity limited to depth 10, 1000 nodes max to prevent DoS.

3. Content Delivery Network (CDN) Integration

Liferay Cloud includes Fastly CDN with automatic cache invalidation via surrogate keys. On-premises deployments require manual Varnish/Fastly/Cloudflare configuration. Cache tags: site:{siteId}, content:{contentId}, structure:{structureId}. Stale-while-revalidate default: 60s. For high-traffic public sites, implement edge-side includes (ESI) for personalized fragments.

Search Architecture: Elasticsearch 8.x Integration

Liferay 7.4 bundles Elasticsearch 8.11 (embedded) or connects to remote cluster (recommended for production). Index structure: one index per virtual instance (liferay-20099 for companyId=20099). Document types deprecated — single _doc type with entryClassName field for filtering.

  • Indexer framework: Background indexing via IndexerPostProcessor chain. Custom indexers implement BaseIndexer for non-Liferay entities.
  • Query DSL: Liferay's SearchContext wraps Elasticsearch bool queries. Supports nested queries for DDRepeatable fields, geo-distance for asset locations, and learning-to-rank via FunctionScoreQuery.
  • Synonyms & Analyzers: Configure per-language analyzers in portal-search-elasticsearch8 module. Korean (Nori), Japanese (Kuromoji), Chinese (SmartCN) require separate plugin installation.

Database & Persistence Layer

Service Builder generates Hibernate mappings from service.xml. Liferay 7.4 supports: MySQL 8.0 (InnoDB, utf8mb4), PostgreSQL 15+, Oracle 19c/21c, SQL Server 2019/2022, MariaDB 10.6+. Critical: no MariaDB Galera Cluster support for Liferay's distributed caching — use single-writer with read replicas only. Connection pooling via HikariCP 5.x (default 20 connections per node).

Deployment Models: Operational Reality Check

Option 1: Liferay Cloud (SaaS/PaaS) — Recommended for 80% of Enterprises

FactorDetails
InfrastructureAWS (us-east-1, eu-west-1, ap-southeast-1) or Azure. Dedicated VPC per environment.
RuntimeKubernetes (EKS/AKS) managed by Liferay. Tomcat 10.1 on JDK 21 LTS (Temurin).
CI/CDGitOps via Liferay Cloud CLI. Build → Test → Deploy to Dev → Promote to UAT/Prod. 15-min deploy cycles.
ScalingHPA based on CPU/Memory + custom metrics (session count, request latency). Max 50 pods per env.
DatabaseManaged RDS/Azure Database (PostgreSQL 15). Automated backups, PITR, cross-region replica.
SearchManaged Elasticsearch Service (AWS OpenSearch / Azure Elasticsearch). Dedicated master nodes.
ComplianceSOC2 Type II, ISO27001, HIPAA BAA available, GDPR DPA. FedRAMP Moderate in progress.
Cost ModelBase: $45,000/yr (1 non-prod + 1 prod env). +$15,000/env. +$25,000/yr per Analytics Cloud module.
Lock-in RiskLow at application layer (standard Kubernetes). Medium at platform services (Liferay Cloud API).

Option 2: Self-Managed Kubernetes (On-Prem / Private Cloud)

Deploy via Liferay Helm Charts (v3.0+). Requires: Kubernetes 1.28+, cert-manager, NGINX Ingress, ExternalDNS, Prometheus/Grafana stack, Elasticsearch Operator (ECK), PostgreSQL Operator (CloudNativePG). Team needs: 2+ DevOps engineers, 1 Liferay platform specialist. Typical cluster: 3 master nodes (m6i.xlarge), 6 worker nodes (m6i.2xlarge, 32GB/8CPU), 2TB gp3 EBS per node. Annual infra cost: ~$180K-$250K (AWS) excluding licenses.

Option 3: Traditional VM / Bare Metal (Legacy On-Prem)

Still supported but not recommended for new implementations. Tomcat clustering via RedisSessionManager (Liferay module) for session replication. Database: Oracle RAC or PostgreSQL with Patroni. Search: Elasticsearch cluster (3 master + 4 data nodes). Load balancer: F5/HAProxy with sticky sessions. Patching cycle: quarterly Liferay fix packs + monthly OS patches. Requires 24/7 NOC for production.

Docker Compose (Development Only)

liferay/dxp:7.4.13-ga14 image (~2.1GB). Includes Tomcat, Elasticsearch, PostgreSQL in single container. Do not use in production — no HA, no backup, no upgrade path.

Migration Pathways: 6.2 → 7.4, 7.x → 7.4, Portal → DXP

Liferay 6.2 (EOL 2020) → 7.4: The "Big Bang" Migration

This is a complete rewrite, not an upgrade. 6.2 used Portlet 2.0 (JSR-286), Spring MVC, JSP, Service Builder v1. 7.4 uses OSGi, Declarative Services, React/Metal.js frontend, Service Builder v2, Gradle workspace. No automated migration tool exists for custom code.

Recommended approach: Greenfield 7.4 implementation with content migration only. Use LAR (Liferay Archive) export/import for web content, documents, users, organizations. Custom portlets → rewrite as OSGi modules (MVC Portlet, JAX-RS, or React widgets). Theme → migrate to Theme Builder (npm-based) or rewrite as FreeMarker/Velocity templates. Budget: 12-18 months for mid-size portal (50+ custom portlets).

Liferay 7.0/7.1/7.2/7.3 → 7.4: In-Place Upgrade

Supported upgrade path per Liferay's official documentation. Key steps:

  1. Upgrade database schema via upgrade:execute Gradle task (runs all upgrade processes sequentially — can take 4-12 hours for 500GB DB).
  2. Migrate modules: Update bnd.bnd version ranges, replace deprecated APIs (e.g., PortalClassLoaderUtilModuleClassLoader).
  3. Theme migration: 7.0-7.2 themes (Gulp) → 7.3+ (npm + liferay-theme-tasks). Run npx liferay-theme:upgrade.
  4. Search reindex: Full reindex required post-upgrade (Elasticsearch 7→8 mapping changes). Schedule 24-48 hours downtime or use blue-green.

Breaking changes in 7.4: JDK 11→21, Tomcat 9→10 (javax→jakarta namespace), Elasticsearch 7→8, Removal of portal-service.jar (use OSGi services), AssetRendererFactory refactored.

Portal-to-Headless Decoupling (Strangler Fig Pattern)

For organizations moving from server-side rendering to headless:

  1. Keep Liferay as content repository + auth + permissions.
  2. Build new frontend (Next.js, React, Vue) consuming Headless GraphQL/REST.
  3. Use Liferay Fragments for gradual migration — embed React apps inside Liferay pages via fragment-entry.
  4. Implement SSO via OAuth2/OIDC (Liferay as IdP or SP) for seamless auth across old/new.
  5. Decommission server-side rendering page by page.

Liferay Pricing

Liferay pricing spans three editions, making it one of the most flexible DXP cost structures on the market. The open-source Community Edition is free, while commercial Liferay DXP subscriptions range from $75,000 to $500,000+ per year depending on deployment model and modules.

  • Liferay Community Edition (CE): $0 — free, open-source (LGPL 2.1), community support only
  • Liferay DXP Subscription: $75,000 – $300,000/year — self-managed, includes 24/7 support, hotfixes, and enterprise modules (Analytics Cloud, Commerce, Audience Targeting)
  • Liferay DXP Cloud (SaaS/PaaS): $90,000 – $500,000+/year — fully managed on AWS/Azure Kubernetes, includes infrastructure, CI/CD, scaling, and compliance certifications (SOC2, ISO27001, HIPAA-ready)
  • Liferay Analytics Cloud add-on: +$25,000/year

Below is the full license-tier matrix and a 3-year TCO breakdown to help you benchmark Liferay pricing against Adobe, Sitecore, and Acquia.

License Tiers

EditionCommunity (CE)DXP SubscriptionDXP Cloud
Source AccessFull (LGPL 2.1)Full + proprietary modulesFull + proprietary modules
SupportCommunity only24/7 L1-L3, 1hr critical SLA24/7 L1-L3, 15min critical SLA
Hotfixes/PatchesNoYes (customer portal)Auto-applied
Enterprise ModulesNoAnalytics Cloud, Commerce, Audience Targeting, Forms & WorkflowAll included
DeploymentSelf-managed onlySelf-managed or Liferay CloudLiferay Cloud only
Annual Cost (Est.)$0$75,000 - $300,000$90,000 - $500,000+

TCO Breakdown (3-Year, 500K Monthly Visitors, 3 Envs)

Cost ComponentSelf-Managed K8sLiferay Cloud
License (3yr)$450,000$450,000
Infrastructure (AWS)$540,000Included
DevOps Team (2 FTE)$900,000$0 (managed)
Liferay Platform Engineer (1 FTE)$450,000$450,000
Implementation (Year 1)$800,000$600,000
Total 3-Year TCO$3.14M$1.5M

Assumes: $150K/FTE/yr loaded cost. Self-managed includes EKS, RDS, OpenSearch, CloudFront, 3 envs. Liferay Cloud includes infra, managed services, 3 envs. Implementation lower on Cloud due to pre-built pipelines.

Need Expert Liferay Architecture Guidance?

Our DXP architects have led 50+ Liferay implementations across SaaS, on-premises, and hybrid deployments. We specialize in 6.2/7.x migrations, headless decoupling, and portal-to-DXP modernization.

Fixed-scope engagements • No vendor lock-in • Reference clients available

Request Liferay Architecture Review

Tell us about your portal, migration, or headless project. We'll match you with a certified Liferay DXP architect.

Fields marked with asterisk are required.

By submitting, you agree to be connected with a certified enterprise DXP implementation partner. Privacy Policy

Extensibility Patterns: Upgrade-Safe Customization

1. OSGi Service Override (Highest Priority)

Implement same interface, higher service.ranking (default 0, max Integer.MAX_VALUE). Original service becomes unsatisfied. Example: Override UserLocalService to add custom validation on create.

2. Fragment Bundles (JSP/CSS/Language Overrides)

Create fragment bundle with Fragment-Host: com.liferay.portal.web.internal.portlet. Place overridden JSPs in META-INF/resources/ matching original path. Zero Java code, survives upgrades unless JSP API changes.

3. Model Listener / Service Wrapper

@Component(immediate=true, service=ModelListener.class) for entity lifecycle hooks. ServiceWrapper for wrapping service methods (deprecated in 7.4, prefer OSGi service override).

4. Custom REST/GraphQL Endpoints

JAX-RS (@ApplicationPath, @Path, @GET) or GraphQL (@Component(property="graphql.schema.provider=true")). Deploy as separate module — no core modification.

5. Frontend: React Widgets + Fragments

Liferay 7.4 uses React 18 + Vite for widget development. npm create liferay-widget scaffolds TypeScript React widget. Deploy as OSGi bundle via npm run deploy. Fragments (HTML/CSS/JS snippets) managed in-page via Fragments Admin — no deployment needed.

Enterprise Modules (DXP Subscription Required)

Liferay Analytics Cloud

Event-driven analytics pipeline: Liferay → Kafka (managed) → Snowflake → Looker/Tableau. Tracks page views, asset downloads, form submissions, search queries, user journeys. Not real-time — 15-min latency. PII masking via configuration. Cost: $25,000/yr add-on.

Liferay Commerce (B2B/B2C)

Headless commerce engine built on Elastic Path (acquired 2021). Supports: complex pricing (contract, tiered, volume), CPQ, subscriptions, multi-site catalogs, punchout (cXML/OCI). GraphQL Storefront API. Not a full SAP Hybris/Salesforce Commerce Cloud replacement — best for "content-led commerce" where Liferay owns the experience layer.

Audience Targeting & Personalization

Rule engine (Drools-based) + behavioral scoring. Segments: explicit (profile attributes), implicit (behavioral), predictive (ML models via Analytics Cloud). Content targeting via TargetingRule on fragments/widgets. No native A/B testing — integrate Optimizely/VWO or build via feature flags.

Forms & Workflow (Kaleo)

Visual form builder (React-based) with 40+ field types. Workflow: Kaleo designer (BPMN-lite) with scriptable nodes (Groovy/JavaScript). Supports parallel approvals, SLAs, escalation. Forms submit to Liferay objects (custom entities) or external endpoints.

Competitive Positioning: When to Choose Liferay

CriterionLiferay DXPAdobe Experience ManagerSitecoreAcquia (Drupal)
Source Code AccessFull (LGPL)NoneNoneFull (GPL)
ArchitectureOSGi ModularMonolithic + HeadlessComposable SaaSModule (PHP)
Portal/IntranetBest-in-classWeak (requires Communities)ModerateGood (Open Social)
Headless MaturityGraphQL GA 7.4Mature (GraphQL/REST)Mature (GraphQL/REST)Mature (JSON:API)
TCO (3yr, Enterprise)$1.5M-$3.1M$3M-$8M+$2M-$6M+$1M-$3M
Team Skills RequiredJava, OSGi, GradleJava, HTL, Oak, AEM Dispatcher.NET, React, Sitecore CLIPHP, Symfony, Drupal API
Vendor Lock-inLow (source access)High (proprietary)Medium (composable)Low (open source)

Choose Liferay DXP When:

  • Building employee portals, partner portals, customer self-service portals — Liferay's permission model (roles, permissions, scopes, user groups, organizations) is unmatched.
  • You need source code ownership for regulatory, security, or strategic reasons (no vendor can "turn off" your platform).
  • You have Java/OSGi engineering talent and want to avoid proprietary lock-in.
  • You need on-premises or air-gapped deployment (defense, healthcare, financial services).
  • You're migrating from Liferay 6.2/7.x and want to preserve content/permission investments.

Avoid Liferay When:

  • Primary use case is marketing-led websites with heavy personalization, A/B testing, journey orchestration — Sitecore/Optimizely/Adobe Target are superior.
  • Team lacks Java expertise and cannot hire/retain OSGi developers.
  • Need out-of-the-box marketing automation (email, lead scoring, nurture) — Liferay's is basic; integrate Marketo/HubSpot/Mautic.
  • Require visual page building for marketers — Liferay Fragments are developer-oriented; no true WYSIWYG like AEM Sites or Sitecore Experience Editor.

Frequently Asked Questions

Is Liferay DXP free?

The Community Edition (CE) is free and open-source under LGPL 2.1. However, it comes with community-only support, no SLA, and no enterprise modules. For production use, most organizations purchase a Liferay DXP subscription ($75K-$300K/yr) or Liferay Cloud ($90K-$500K+/yr) which includes 24/7 support, hotfixes, and enterprise modules.

How much does Liferay DXP cost?

Liferay DXP subscriptions range from $75,000 to $300,000/year for self-managed deployments. Liferay Cloud (fully managed SaaS) ranges from $90,000 to $500,000+/year. The Community Edition is free. Enterprise add-ons like Analytics Cloud cost $25,000/year additional. See our full Liferay pricing breakdown above.

Is Liferay open source?

Yes. Liferay Community Edition is open-source under the LGPL 2.1 license. You can download, modify, and deploy it without licensing fees. The commercial DXP edition includes additional proprietary enterprise modules (Commerce, Analytics Cloud, Audience Targeting) on top of the open-source core.

What is Liferay DXP used for?

Liferay DXP is primarily used for building employee intranets, partner portals, customer self-service portals, and regulated-industry applications (healthcare, financial services, defense). Its source-code access, on-premises deployment capability, and OSGi modularity make it ideal for organizations requiring vendor lock-in avoidance and air-gapped deployments.

Liferay vs Drupal: which is better?

Both are open-source, but serve different use cases. Liferay excels at enterprise portals, intranets, and employee-facing applications with its built-in permission model, workflow engine, and OSGi modularity. Drupal excels at content-rich public websites with its massive module ecosystem and theming flexibility. See our Liferay vs Acquia (Drupal) comparison.

Implementation Readiness Checklist

AreaRequirementValidation
Team2+ Java/OSGi developers, 1 DevOps (K8s), 1 Frontend (React/Vite)Code review of sample OSGi module
InfraK8s 1.28+ cluster, PostgreSQL 15, Elasticsearch 8, Redis 7Load test: 1000 concurrent users, <200ms p95
ContentContent model defined (Structures, Templates, Categories)Import 1000 test articles via Headless API
SearchSynonyms, analyzers, boost rules documentedRelevance tuning sprint (2 weeks)
AuthSAML/OIDC provider configured, role mapping rulesSSO test matrix (IdP/SP initiated)
ObservabilityOpenTelemetry → Prometheus/Grafana, Loki for logsAlert on: JVM heap >85%, ES queue rejection, DB pool exhaustion
Backup/DRRPO <1hr, RTO <4hr (DB), <30min (search reindex)Quarterly DR drill
Upgrade PlanQuarterly fix pack schedule, annual major upgrade budgetStaging env mirrors prod for upgrade rehearsal

Accelerate Your Liferay Implementation

Our architects have delivered Liferay DXP 7.4 projects for Fortune 500 enterprises in financial services, healthcare, and manufacturing. We provide:

  • Architecture Review: 2-week engagement — validate topology, module boundaries, search strategy, upgrade path ($25K fixed)
  • Migration Accelerator: 6.2→7.4 content migration tooling + custom portlet rewrite patterns ($75K-$200K)
  • Platform Engineering: Embedded Liferay specialists for 6-12 month engagements ($180K-$350K/yr)
  • Performance Tuning: JVM/GC tuning, Elasticsearch optimization, DB query analysis ($15K fixed)
Start Architecture Discussion →

Liferay Ecosystem Partners

We recommend these verified implementation partners for Liferay DXP projects. Disclosure: We may receive referral fees from partners marked with †.

Liferay Professional Services †

Official Liferay consulting. Best for: architecture validation, complex upgrades, Liferay Cloud onboarding.

Engage Liferay PS →

Veriday †

North America's largest dedicated Liferay partner. Portals, intranets, digital workplaces. 150+ certifications.

View Veriday →

Xtivia †

Enterprise Liferay implementations, migrations, managed services. Strong in financial services & healthcare.

View Xtivia →

Mirantis (for K8s) †

Kubernetes platform & managed services for self-hosted Liferay on OpenShift/Rancher. Critical for air-gapped deployments.

View Mirantis →