๐—œ๐˜€ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ฒ๐—ฟ ๐—–๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜๐—ฒ๐—น๐˜† ๐—ฅ๐—ฒ๐—ฝ๐—น๐—ฎ๐—ฐ๐—ฒ๐—ฎ๐—ฏ๐—น๐—ฒ ๐—ฏ๐˜† ๐—Ÿ๐—ถ๐—ณ๐—ฒ๐—ฟ๐—ฎ๐˜† ๐—ข๐—ฏ๐—ท๐—ฒ๐—ฐ๐˜๐˜€?

Bhargav R Vaghasiya
Bhargav R Vaghasiya
Leitura de 2 minutos

For years, ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ฒ๐—ฟ was considered the backbone of backend development in Liferay.

Need a custom entity?
Use Service Builder.

Need APIs?
Use Service Builder.

Need persistence, finder methods, services, indexing, permissions, workflows, or business logic?
Again, Service Builder.

It became the default engineering pattern for almost every serious Liferay implementation.

But the ecosystem has changed dramatically.

Today, when I look at modern Liferay architecture, I think a very important question needs to be asked:

โ–Ž Is Service Builder still the primary way to build backend systems in Liferay?

Honestly, for many use cases, the answer is no.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐—ง๐—›๐—˜ ๐—ฅ๐—œ๐—ฆ๐—˜ ๐—ข๐—™ ๐—Ÿ๐—œ๐—™๐—˜๐—ฅ๐—”๐—ฌ ๐—ข๐—•๐—๐—˜๐—–๐—ง๐—ฆ

Liferay Objects changed the development experience completely.

Instead of writing large OSGi modules for every business requirement, teams can now create business-driven applications directly from the platform itself.

Objects already provide:

 - Data modeling
 - Relationships
 - Permissions
 - Workflows
 - APIs
 - Validation
 - UI generation
 - Headless access
 - Low-code administration

This removes a huge amount of engineering overhead.

A business requirement that previously needed:

 - Service Builder entities
 - Local services
 - Remote services
 - REST builders
 - JSPs or React UI
 - Permission handling
 - Workflow integration

โ€ฆcan now sometimes be solved in hours using Objects.

That is a massive architectural shift.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐—ช๐—›๐—ฌ ๐—ฆ๐—˜๐—ฅ๐—ฉ๐—œ๐—–๐—˜ ๐—•๐—จ๐—œ๐—Ÿ๐——๐—˜๐—ฅ ๐—œ๐—ฆ ๐—ก๐—ข ๐—Ÿ๐—ข๐—ก๐—š๐—˜๐—ฅ ๐—ง๐—›๐—˜ ๐——๐—˜๐—™๐—”๐—จ๐—Ÿ๐—ง ๐—”๐—ก๐—ฆ๐—ช๐—˜๐—ฅ

One of the biggest mistakes I still see is treating Service Builder as the starting point for every backend requirement.

That mindset made sense years ago.

But modern enterprise systems are evolving differently.

Todayโ€™s architectures are increasingly based on:

 - Microservices
 - Headless APIs
 - External platforms
 - Event-driven systems
 - Cloud-native deployments
 - Frontend/backend separation

In this type of ecosystem, Liferay often acts more like:

 - A digital experience layer
 - A business orchestration layer
 - A frontend aggregation platform

not necessarily the place where all backend logic must live.

And this is exactly where:

 - ๐—Ÿ๐—ถ๐—ณ๐—ฒ๐—ฟ๐—ฎ๐˜† ๐—ข๐—ฏ๐—ท๐—ฒ๐—ฐ๐˜๐˜€
 - ๐—–๐—น๐—ถ๐—ฒ๐—ป๐˜ ๐—˜๐˜…๐˜๐—ฒ๐—ป๐˜€๐—ถ๐—ผ๐—ป๐˜€
 - ๐—˜๐˜…๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐—น ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ๐˜€
 - ๐—›๐—ฒ๐—ฎ๐—ฑ๐—น๐—ฒ๐˜€๐˜€ ๐—ถ๐—ป๐˜๐—ฒ๐—ด๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€

start becoming much more powerful than traditional monolithic OSGi development.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐—ง๐—›๐—˜ ๐—ฃ๐—ฅ๐—ข๐—•๐—Ÿ๐—˜๐—  ๐—ช๐—œ๐—ง๐—› ๐—ข๐—ฉ๐—˜๐—ฅ๐—จ๐—ฆ๐—œ๐—ก๐—š ๐—ฆ๐—˜๐—ฅ๐—ฉ๐—œ๐—–๐—˜ ๐—•๐—จ๐—œ๐—Ÿ๐——๐—˜๐—ฅ

Service Builder is extremely powerful.

But power is not always the correct architectural choice.

Large Service Builder-heavy projects often create:

 - Tight coupling with portal runtime
 - Complex deployments
 - OSGi dependency challenges
 - Upgrade difficulties
 - Slower development cycles
 - Harder scalability patterns
 - Platform lock-in

And honestly, many modern backend concerns are handled far better today using dedicated external services.

For example:

 - High-volume processing
 - AI integrations
 - Payment orchestration
 - Analytics engines
 - External ERP synchronization
 - Distributed workflows
 - Event streaming

These workloads naturally fit microservice architectures more than portal-contained business logic.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐—ฆ๐—ข ๐—œ๐—ฆ ๐—ฆ๐—˜๐—ฅ๐—ฉ๐—œ๐—–๐—˜ ๐—•๐—จ๐—œ๐—Ÿ๐——๐—˜๐—ฅ ๐——๐—˜๐—”๐——?

Not at all.

Service Builder still has very strong use cases.

It remains valuable when:

 - Deep portal integration is required
 - Internal Liferay persistence is necessary
 - Tight coupling with platform services is beneficial
 - Advanced indexing/custom search control is needed
 - Existing enterprise implementations heavily depend on it

But I no longer see it as the โ€œdefault architecture.โ€

Thatโ€™s the key difference.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐—ช๐—›๐—”๐—ง ๐— ๐—ข๐——๐—˜๐—ฅ๐—ก ๐—Ÿ๐—œ๐—™๐—˜๐—ฅ๐—”๐—ฌ ๐—”๐—ฅ๐—–๐—›๐—œ๐—ง๐—˜๐—–๐—ง๐—จ๐—ฅ๐—˜ ๐—Ÿ๐—ข๐—ข๐—ž๐—ฆ ๐—Ÿ๐—œ๐—ž๐—˜

In my opinion, modern Liferay development is moving toward this combination:

 - ๐—Ÿ๐—ถ๐—ณ๐—ฒ๐—ฟ๐—ฎ๐˜† ๐—ข๐—ฏ๐—ท๐—ฒ๐—ฐ๐˜๐˜€ for business-driven configuration
 - ๐—–๐—น๐—ถ๐—ฒ๐—ป๐˜ ๐—˜๐˜…๐˜๐—ฒ๐—ป๐˜€๐—ถ๐—ผ๐—ป๐˜€ for frontend/backend flexibility
 - ๐—›๐—ฒ๐—ฎ๐—ฑ๐—น๐—ฒ๐˜€๐˜€ ๐—”๐—ฃ๐—œ๐˜€ for interoperability
 - ๐—˜๐˜…๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐—น ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ๐˜€ for scalable business logic
 - ๐—Ÿ๐—ถ๐—ณ๐—ฒ๐—ฟ๐—ฎ๐˜† ๐—ฎ๐˜€ ๐—ฎ๐—ป ๐—ผ๐—ฟ๐—ฐ๐—ต๐—ฒ๐˜€๐˜๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฎ๐—ป๐—ฑ ๐—ฒ๐˜…๐—ฝ๐—ฒ๐—ฟ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—ฝ๐—น๐—ฎ๐˜๐—ณ๐—ผ๐—ฟ๐—บ

This creates:

 - Cleaner separation
 - Faster delivery
 - Independent deployments
 - Better scalability
 - Easier modernization
 - Technology freedom

And honestly, this approach aligns much more closely with modern enterprise engineering principles.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐—™๐—œ๐—ก๐—”๐—Ÿ ๐—ง๐—›๐—ข๐—จ๐—š๐—›๐—ง๐—ฆ

I donโ€™t think the future is:

โ–Ž โ€œObjects replacing Service Builder.โ€

I think the future is:

โ–Ž โ€œArchitectures becoming less portal-centric.โ€

And in that world, Service Builder becomes one tool among many โ€” not the center of the entire backend strategy.

Thatโ€™s the real shift happening in the Liferay ecosystem right now.
 

Comentรกrios da Pรกgina

Related Assets...

Nenhum Resultado Encontrado

More Blog Entries...