Skip to content

Potentially convert to tinyhttp #97

@groenroos

Description

@groenroos

tinyhttp seems to be a largely Express-compatible alternative Node.js server framework. Consider whether we should ditch Express for tinyhttp.

Pros

  • Twice as fast as Express
  • Fully compatible with Express middleware, so theoretically migration shouldn't cause huge problems
  • TypeScript

Cons

  • Not as battle-tested as Express
  • Community is a lot smaller

Open questions

  • We need to ensure that all the other Express bits we use in fact work with tinyhttp (session with any arbitrary connect store, file upload, etc)
  • As Sapling adds some overhead, need to benchmark both implementations to make sure the performance/speed benefit is still applicable - the cons are probably worth it if it's truly around 2x as fast, but perhaps not worth it as much if the speed improvement is incremental/negligible

Metadata

Metadata

Assignees

Labels

questionSupport queriesrefactoringDrastic code quality improvements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions