summaryrefslogtreecommitdiff
path: root/doc/development/polling.md
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-03-27 14:47:10 -0700
committerStan Hu <stanhu@gmail.com>2017-03-31 21:51:30 -0700
commit0d314840040a7dc458a8faac2c6aa3d1d4345581 (patch)
tree968cd3456cd7b8c15c08ad554bfb2e1940fe0c85 /doc/development/polling.md
parent731d574d9359eca8cd37ef46e525bbc9603837a3 (diff)
downloadgitlab-ce-0d314840040a7dc458a8faac2c6aa3d1d4345581.tar.gz
Add long polling diagramssh-add-polling-images
[ci skip]
Diffstat (limited to 'doc/development/polling.md')
-rw-r--r--doc/development/polling.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/development/polling.md b/doc/development/polling.md
index a7f2962acf0..e5a717f712b 100644
--- a/doc/development/polling.md
+++ b/doc/development/polling.md
@@ -22,6 +22,9 @@ Instead you should use polling mechanism with ETag caching in Redis.
## How it works
+![Cache miss](img/cache-miss.svg)
+![Cache hit](img/cache-hit.svg)
+
1. Whenever a resource changes we generate a random value and store it in
Redis.
1. When a client makes a request we set the `ETag` response header to the value