Show TOC

Background documentationFederated Portal Caching Locate this document in the navigation structure

 

Note Note

The functionality described in this topic does not apply to an SAP NetWeaver Composition Environment system.

End of the note.

SAP NetWeaver Portal provides a dedicated caching service, FederatedPortalCache, for the federated portal scenario. Its primary purpose is to reduce network traffic to the producer by storing semantic objects on the consumer side for reuse.

The caching service is based on application interfaces of JCache (belonging to AS Java) and the Portal Runtime (PRT) cache.

The federated portal uses a dedicated region in the cache. Objects are cached separately for each user. The cache stores semantic objects, such as iViews, pages, layouts, and roles, which are transferred from producer to consumer. It includes personalized and administrator-based portal semantic objects, the raw data of portal semantic objects, their aliases, and more.

You specify the object cache validity period. If a requested object is cached and is within its validity period, the consumer reuses the object instead of performing a call through the network to the producer. Objects without a defined validity period inherit the validity period of the closest parent group that has a defined validity period.

Example of cached information in a federated portal:

  • With remote role assignment usage, a role and its navigation structure are cached at runtime when a user on the consumer requests the role from the producer.

  • With remote delta link usage, a producer caches the remote delta link content that a content administrator has modified on the consumer to reduce the number of runtime round trips between the producer and consumer portals.

  • With remote delta link usage, a consumer caches the shared areas within the producer's Portal Catalog structure, thereby improving the browsing experience of the remote Portal Catalog.

Caching in a Clustered Environment

The federated portal caching service provides a persistency option on top of the memory cache, thereby providing support for a clustered environment. The persistent cache acts as a repository for the memory cache of the nodes of the cluster. In a clustered environment, each server has its own cache, including memory cache, and all servers (nodes) share persistency in a single database. When a server retrieves updated objects from the cache, they are immediately updated in the central database and are available to all servers in the cluster without the need to go through the network again.

Persistency can also be used to make cached objects available after restarting the portal server and to provide the capacity for storing a large number of semantic objects, which standard memory would not typically be able to handle in a production environment. For example, when the portal retrieves a role at runtime through remote role assignment, consider the number of objects each role contains and multiply that by the number of concurrent users served by each role.

Risks Involved Using Federated Portal Caching

Using caching in a federated portal environment involves certain risks; for example:

  • The service parameters must be manually configured by portal administrators. Therefore, as with many other portal services, incorrect values may result in poor performance of the portal and outdated content viewed by end users at runtime. These parameters must also be fine-tuned over time to meet the requirements and demands of new hardware and other changing factors, such as those related to infrastructure, users, content, and applications.

  • The use of a database for caching is a process that affects performance. It may slow down the retrieval time of a semantic object if for every object there is the need to retrieve it from the database. In addition, performance problems may result if, due to under-use of the cache, many transfers over the network are required.

    The use of a database for caching can harm performance by slowing down the retrieval time of a cached semantic object. In addition, performance problems may result, if due to under-use of the cache, many transfers over the network are required.

Despite these risks, caching has overall performance benefits over non-cached data that needs to be retrieved over the network.