SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Introduce Caching to Your Application

Introduce caching to your application using the SAP Cloud SDK.

Overview

🎓 intermediate 15 min. SAP Cloud SdkIntermediateSAP Business Technology PlatformCloudJava

You will learn

  • โœ”What caching is and why you should care about it
  • โœ”How a cache works
  • โœ”How to cache your OData Call
  • โœ”How to configure the cache
Unknown U Unknown February 5, 2024
Created by May 3, 2019
Contributors

Prerequisites

Steps

Step 1 Caches
โ€”

Sometimes service calls from your application to external servers turn out to be quite expensive in terms of performance and latency. Further evaluation of the queried data can make things even worse once critical response times are reached for the clients and customers.

To improve responsiveness to the users, the data requested internally by your application can often be stored for subsequent calls. This can be achieved in such a way, that for every request the information previously stored by the application can be reused. This general behavior is called a cache. A cache stores copies of information passing through it. Besides serving improved responsiveness, the technical goal is to reduce the overall required bandwidth and processing requirements, thus eventually lessening the server load and perceived lag. This way the amount of information, that needs to be transmitted across networks, can be reduced.

Caches are very important in a wide variety of use cases. It is one of the reasons for the advancements of modern internet experience, like on-demand multimedia streaming and persistent cloud storage. Unlike web caches, which save whole request and response documents, an internal application cache serves the purpose of persisting interim data for multiple intended uses. Whenever information is expensive to compute or retrieve, and its value on a certain input is needed more than once, a cache should be considered.

Step 2 How do they work?
+
Step 3 Caching with SAP Cloud SDK
+
Step 4 Cache your OData call
+
Step 5 Test the cache
+
Step 6 More on testing
+
Step 7 Test yourself
+
Step 8 Test yourself
+
Step 9 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Caches 2. How do they work? 3. Caching with SAP Cloud SDK 4. Cache your OData call 5. Test the cache 6. More on testing 7. Test yourself 8. Test yourself 9. Test yourself

Learn more →