Skip to content

Reduce memory usage in mirror rest #13041

@jnels124

Description

@jnels124

Problem

The rest app requires more memory than necessary. This is largely due to dependencies and linked files.

Solution

We should explore the steps taken in this guide to reduce the memory.

Specifically we need to:

  • Lazily load libraries
  • Replace lightly used libraries with native code
  • Bundle our application using esbuild so it tree-shakes the app
  • Do multi-stage dockerfile and remove typescript related files

Alternatives

No response

Metadata

Metadata

Assignees

Labels

enhancementType: New featurerestArea: REST API

Projects

Status

👷 In progress

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions