frmscoe / General-Issues

This repo exists to track current work and any issues within the FRMS CoE
2 stars 0 forks source link

Bun optimized REST framework potential TMS replacement #303

Closed Lenbkr closed 8 months ago

Lenbkr commented 8 months ago

Our current REST framework (fastify) is not purely built and optimized for the bun runtime.

We've determined some other frameworks to compare the following with the goal being to exceed node/fastify for ingestion with a schema for input validation (Pain/Pacs processing)

Benchmarks:

Lenbkr commented 8 months ago

Results (run on linux) Node + Fastify: 100% Bun + Fastify: 91% Bun + Elysia: 94% Bun + Hono: 103%

With Bun's high memory usage issues and the performance being to close to node it is not advised to switch as of the v1.0.6 iteration of bun for our use case.