File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
201201multiple 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
207207When the render server wrapper connects to the JS process, it adds a ` ?hash=... ` parameter to the url. The
208208hash parameter is a SHA-1 hash of the serialized data that is sent in the request's body and is intended
209209for 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
You can’t perform that action at this time.
0 commit comments