Skip to content

Add a feature to check the concurrency of an API #124

Open

Description

@GouravSardana

We have a feature where you can make a post request from the terminal using dynamic --POST. We need to add a new thing to test the API concurrency.

Suppose, you are testing the performance of an API i.e How many loads it can take at one time. Make an args for this and it will take 1 more parameter i.e value
Example -
Dynamic --POST --perftest [args name can be anything other than perftest but should be meaningful]
->API URL
->Payload [If required] [Optional]
-> How much thread you want to create - [User input] #Let say I gave 100

It'll make 100 requests at the same time to that API with the payload [if required] and return the output in the table format which displays how much time each request takes and download as a pdf or text file. If the request fails or takes time we can return the timeout

Activity

  1. added
    Level3New features, major bug fixing.
    hacktoberfest-acceptedGood Work, Your Pull Request is Accepted for the Hacktoberfest
    on Sep 30, 2021
  2. added
    HacktoberfestThis Issue Will be Consider Under Hacktoberfest 2021
    and removed
    hacktoberfest-acceptedGood Work, Your Pull Request is Accepted for the Hacktoberfest
    on Oct 6, 2021
  3. Nit89 commented on May 4, 2023

    @Nit89

    hey can i take up this task

  4. GouravSardana commented on May 4, 2023

    @GouravSardana
    MemberAuthor

    Sure @Nit89

  5. nishtha981 commented on May 20, 2023

    @nishtha981

    Can I be assigned this issue as a GSSOC '23 participant?

  6. GouravSardana commented on Oct 21, 2026

    @GouravSardana
    MemberAuthor

    Restart triage: P3 — defer API concurrency/performance expansion. dynamic/api_test.py is synchronous and the CLI has no proposed concurrency mode. Basic timeout/error handling and deterministic tests need attention first.

    Next step: if pursued, define explicit request/concurrency limits, cancellation and safe defaults. Use owned or local test endpoints and bounded workloads; do not turn the default API request path into an unbounded load test.

    Source review only; this was not run or reproduced during triage. Keeping the issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestThis Issue Will be Consider Under Hacktoberfest 2021Level3New features, major bug fixing.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions