Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify ways to improve performance of OpenAPI Validator #147

Open
vbabuEM opened this issue May 20, 2024 · 0 comments
Open

Identify ways to improve performance of OpenAPI Validator #147

vbabuEM opened this issue May 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vbabuEM
Copy link
Contributor

vbabuEM commented May 20, 2024

Currently in a Beckn transaction we check the messages against open-API four times. Each time, it takes a second (if not more) - See the table below for ballpark figures (seconds)
1 vCPU, 2.0 GB - 2.85
2 vCPU, 4.0 GB - 2.2
2 vCPU, 8.0 GB - 1.85
4 vCPU, 16 GB - 1.6 (1.12 - non-docker)

The objective of this issue is to improve the performance of the OpenAPI Validator. Some points to guide the implementation are below.

  • Identify and setup instrumentation so that we have a reliable way to identify the amount of time the openapi validator takes (Use this to publish before and after time to illustrate the improvement)
  • Some avenues to improve performance are:
    a. Using the latest version of the library
    b. Checking the documentation to see if we are doing validation the right way
    c. Check issues on SO/Github to see if there are any pointers
    d. Anything else....
@vbabuEM vbabuEM added the enhancement New feature or request label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant