Skip to content

Proposal: Using 3rd party, blazingly fast router #272

Open
@MichalLytek

Description

@MichalLytek

For now we rely on the routing of the underlying driver (express or koa). However express and koa routers are really slow, as you can see in benchmarks:
https://github.com/delvedor/router-benchmark

find-my-way | lookup dynamic route x 2,647,488 ops/sec ±0.93%  (89 runs sampled)
koa-router  | lookup dynamic route x   296,380 ops/sec ±1.06%  (85 runs sampled)
express     | lookup dynamic route x   116,762 ops/sec ±53.99% (41 runs sampled)

As we handle the route concatention and param injection by themselves, we could perform the routing at the (nomen omen) routing-controllers level using the find-my-way router library:
https://github.com/delvedor/find-my-way

We are getting close to the final API and functionality, so we should consider now also optimization and performance of the framework 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: awaiting answerAwaiting answer from the author of issue or PR.type: discussionIssues discussing any topic.type: featureIssues related to new features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions