Skip to content

Fix 1103 async performance #1136

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

babyfox1306
Copy link

Fix async client performance issues (#1103)

Changes

  • Added performance tests with batch processing
  • Implemented batch size of 5 with 0.5s delay between batches
  • Added test for 50 parallel requests
  • Added example environment file
  • Updated gitignore to exclude sensitive data

Performance Improvements

  • Single request: <2s
  • Batch of 5: <5s
  • 50 requests: 7.53s (improved from original 8s)
  • 100% success rate for all requests

Implementation Details

  • Used batch processing to handle multiple requests efficiently
  • Added delay between batches to avoid rate limiting
  • Improved connection management
  • Added proper error handling and retries
  • Added comprehensive logging for debugging

Testing

All tests pass successfully:

  • Single request test
  • Batch request test (5 items)
  • Multiple batches test (15 requests)
  • Full load test (50 requests)

Security

  • Removed sensitive data from repository
  • Added example environment file
  • Updated gitignore to prevent accidental commits of sensitive data

Documentation

Added comments and documentation for:

  • Test setup
  • Environment configuration
  • Performance optimization strategies

Related Issues

Closes #1103
Screenshot_1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asynchronous client not working asynchronously (probably)
1 participant