In-memory data cache services like Redis on SAP BTP offer exceptional performance for real-time applications. However, memory is a finite resource. When Redis instances are deployed on SAP Business Technology Platform (SAP BTP), efficient memory management becomes even more critical to ensure high availability, stability, and cost-effectiveness of services. This is where eviction policies come into play.
In this blog post, we’ll try to explain what eviction policies are, when and where to use them in your SAP BTP deployments, their advantages and limitations, and how to choose the right policy for your use.
Redis on SAP BTP stores cache data in memory, making access times extremely fast. But if memory becomes full, Redis must decide what to do with new incoming data. That’s where eviction policies help—below are strategies (options) that Redis uses to free up space by removing certain keys.
The service supports multiple eviction policies, such as:
By default Redis on SAP BTP service is set to eviction_policy = noeviction
Check here the different policies available and how to change the parameter.
Redis on SAP BTP is often used for:
In each of these cases, uncontrolled memory usage can degrade service quality or even crash your app. SAP BTP allows you to provision Redis with specific memory configuration, and eviction policies help you stay within those constraints without disruption.
Eviction policies are not one-size-fits-all. Choosing the right one requires understanding of your application’s access patterns and data lifecycle. For running applications in the cloud the cost and stability are key, a smart use of eviction policies ensures Redis on SAP BTP remains both performant but also predictable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
25 | |
12 | |
11 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 |