Skip to content

Commit 10f31e3

Browse files
committed
Docs
1 parent dec3348 commit 10f31e3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,18 @@ Depending on your load, you may want to use a worker farm to handle rendering. N
200200
[cluster module](https://nodejs.org/api/cluster.html) provides an easy way to fork a process and serve
201201
multiple instances from a single network address.
202202

203-
An alternative to worker farms is to put a reverse proxy in front of the render server. Be aware that
204-
render server requests are sent as POST requests and most reverse proxies have issues with caching POST
205-
requests.
203+
An alternative to worker farms is to put a cache in front of the render server. Be aware that
204+
render server requests are sent as POST requests and most reverse proxies have issues with
205+
caching POST requests.
206206

207207
When the render server wrapper connects to the JS process, it adds a `?hash=...` parameter to the url. The
208208
hash parameter is a SHA-1 hash of the serialized data that is sent in the request's body and is intended
209209
for consumption by caching layers.
210210

211+
Another alternative is to wire the calls to the render server into your caching system. If you override the
212+
`renderer` kwarg, you could wrap the call to the server to first check if the data is available locally and
213+
fallback to populating the cache with the rendered markup.
214+
211215

212216
### Overriding the renderer
213217

0 commit comments

Comments
 (0)