Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Proposal to use pre-rendered content in tessellate-fragment #79

@semonte

Description

@semonte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions