Skip to content

Poor performance under concurrent requests (Express.js) #6

Description

@francescobianco

⚡️ Poor performance under concurrent requests

Labels: performance, investigation
Framework context: Express.js with Promise.all() batch requests

Description:
When performing 50+ parallel requests (e.g., bulk verification of tax codes through Promise.all() inside an Express route), the response time increases exponentially.

Suspected cause:
The SDK internally creates a new Axios instance for every call instead of reusing connections. This likely prevents HTTP keep-alive and leads to connection flooding.

Proposal:
Implement a shared HTTP agent with keep-alive enabled, or expose a configuration parameter like:

Openapi.configure({ maxConcurrency: 10, keepAlive: true });

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