Skip to content

FlaskApp significantly slow compared to AsyncApp or Flask with gevent #2077

@pradhan-v

Description

@pradhan-v

When running a Connexion application with FlaskApp, the server becomes very slow or even blocked under moderate user load. However, the same application performs significantly better when ported to AsyncApp, when run as a pure Flask application with gevent.

This suggests there may be an issue in FlaskApp. This performance gap makes it difficult to rely on FlaskApp in production.

I’ve created a minimal reproducible example here:
👉 https://github.com/pradhan-v/connexion-slow-flaskapp

Environment:
Connexion version: 3.2.0
Python version: 3.12

Related?: #2045

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions