留言板

Reducing Service calls in Liferay 5.1.2 CE

Swanand Barve,修改在13 年前。

Reducing Service calls in Liferay 5.1.2 CE

New Member 帖子: 2 加入日期: 10-4-8 最近的帖子
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,修改在13 年前。

RE: Reducing Service calls in Liferay 5.1.2 CE

Liferay Legend 帖子: 1261 加入日期: 08-10-2 最近的帖子
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,修改在13 年前。

RE: Reducing Service calls in Liferay 5.1.2 CE

New Member 帖子: 2 加入日期: 10-4-8 最近的帖子
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,修改在13 年前。

RE: Reducing Service calls in Liferay 5.1.2 CE

Liferay Master 帖子: 535 加入日期: 08-5-16 最近的帖子
Hi Swanand,

Algorithm 5 is default algorithm in Liferay 5.1.2.

Manish.