Currently when the tessellate-fragment gets a request, it
- fetches sources (HTTP)
- fetches bundle (HTTP)
- fetches content (HTTP)
- renders the fragment by loading the bundle (js) and content (JSON) in server memory and uses node virtual machine to run the bundle script.
This requires resources from the server and the same steps are taken for every single request. When there are multiple requests per second, this does not scale.
A proposal to resolve this is to have a pre-rendered fragment storage. tessellate-fragment could (by configuration) look up for a pre-rendered fragment by the URL and language key. If there is a hit, the HTML can be sent immediately to the client skipping all the above mentioned steps. For popular URLs the performance gains are significant and clients can enjoy faster response times.