Skip to content

Should the route be placed in the web or in the api routes because the middlewares are not the same? #94

@macropay-solutions

Description

@macropay-solutions

While Benchmarking our Maravel and Maravelith php alternatives to Lumen and Laravel, we noticed that Maravelith and Laravel can double their RPS when optimized (cached config, routes etc.) from ~280-290 to over 550 rps just by removing the middlewares from the web routes.

This project is meant to measure the boot time but this scenario shows that middlewares are braking the execution not the application boot.

So, the question is, should this Hello World be measured in web (session, cookies etc.) environment or in api environment?
@myaaghubi @joanhey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions