Skip to content

RouteDefinitions assertion has performance issues #1683

Open
@mvp31

Description

@mvp31

Describe the bug
The routing assertion is a List collection that is traversed by each request, and performance is slow in cases where there are many (more than 10,000) routing addresses.
My test environment had 2,000 routedefinitions, and each request traversed the route List collection in 50ms.
It is recommended to provide ConcorrentHashMap to store the RouteDefinition, and use ConcorrentHashMap to match the RouteDefinition.

Sample
RouteDefinitionRouteLoactor.getRoutes(){......}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions