Foren

Reducing Service calls in Liferay 5.1.2 CE

Swanand Barve, geändert vor 13 Jahren.

Reducing Service calls in Liferay 5.1.2 CE

New Member Beiträge: 2 Beitrittsdatum: 08.04.10 Neueste Beiträge
Hi All
I am part of a team that's developing a portal application using Liferay 5.1.2 CE. I am observing that in order to render average 4-5 portlets, on an average, around 1000 Liferay services are made. Following services are most called
RoleLocalService
GroupLocalService
ResourceLocalService
ThemeLocalService
LayoutTemplateLocalService
UserLocalService

Is there a way to reduce these service calls ? Especially ones related with Permissions(Role /group/user local service for example)


thanks in advance
swanand
thumbnail
Juan Fernández, geändert vor 13 Jahren.

RE: Reducing Service calls in Liferay 5.1.2 CE

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Swanand:

those services are used in every Liferay portlet because it's the way we handle each portlet behaviour.

The point is: why do you want to remove those services? If you remove those services you will loose functionality. Are you developing custom portlets or using Liferay's?

Regards
Juan Fernández
Liferay Core Engineer
Swanand Barve, geändert vor 13 Jahren.

RE: Reducing Service calls in Liferay 5.1.2 CE

New Member Beiträge: 2 Beitrittsdatum: 08.04.10 Neueste Beiträge
Thanks for the response Juan,
We're using custom portlets with IceFaces 182 Enterprise Edition. We're using some out of the box Liferay portlets like Login.
I am observing that for each page, literally 1000+ calls are made on these services, which in turn is making database calls, thereby having a negative impact on response time and overall performance.
1. Is it possible to tune /setup liferay in such a way, that these calls happen once per page( not per portlet)?

2.Furthermore, we've got pages that are public(no login required) Vs private(login required)
Would it be possible to suppress some of these calls for public pages and cache the permissions for a logged in users(the retrieval will happen only once, that point onwards permissions in cache would be checked against permission settings for portlets)

3. Lastly, I see that a new permission algorithm(5) has been added in 5.1. Will that help improve performance ? Is that part of 5.1.2 Community edition as well ?

Thanks in advance
Swanand
thumbnail
Manish Kumar Gupta, geändert vor 13 Jahren.

RE: Reducing Service calls in Liferay 5.1.2 CE

Liferay Master Beiträge: 535 Beitrittsdatum: 16.05.08 Neueste Beiträge
Hi Swanand,

Algorithm 5 is default algorithm in Liferay 5.1.2.

Manish.