Skip to content

add a caching component to kroki #2007

@oupala

Description

@oupala

If you install your own kroki instance following the documentation of kroki, you should end up with an instance of kroki that has no caching capabilities. This means that if you have a webpage somewhere that includes a diagram that is dynamically generated by kroki. If this web page is viewed hundreds of times by numerous users, the diagram is generated hundreds of time for all users. And each diagram generation is identical to the previous and to the next one as the source syntax is identical and as the resulting diagram is also identical.

The prerequisite to caching are already discussed in other issue, such as #1062 and #1083 but I think that the documentation should talk more about caching mechanism. For example, it is easy to use Nginx-Ingress as a Static Cache for Assets Inside Kubernetes as it only require a simple configuration file and can easily be deployed in a docker or a kubernetes environment.

Do you agree that it worth it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions