From d3cb9b5633f9a0231f14a06d5ab3b0643cb86587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20M=C3=B6nch?= Date: Thu, 17 Jun 2021 13:39:54 +0200 Subject: [PATCH] Adds a heading for stampede prevention so I'm able to reference this section easily --- components/cache.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/cache.rst b/components/cache.rst index a620206682f..0e5d865c2d9 100644 --- a/components/cache.rst +++ b/components/cache.rst @@ -90,6 +90,9 @@ generate and return the value:: Use cache tags to delete more than one key at the time. Read more at :doc:`/components/cache/cache_invalidation`. +Stampede prevention +~~~~~~~~~~~~~~~~~~~ + The Cache Contracts also comes with built in `Stampede prevention`_. This will remove CPU spikes at the moments when the cache is cold. If an example application spends 5 seconds to compute data that is cached for 1 hour and this data is accessed