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

Adding Asyncio Support #35

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

Conversation

philipk19238
Copy link

  • added make_api_request_async method to Backend
  • added aquery that integrates the async request executor
  • added test_async_query

@boarush
Copy link
Contributor

boarush commented Jul 8, 2024

Hey guys, just wanted to comment that not allowing reuse of clients when creating namespaces has a great impact on performance (in cases when you have a large number of namespaces), particularly related to having to make the TLS/SSL handshake everytime you make a request to a namespace. I would highly recommend allowing the end user of the sdk to pass down requests / aiohttp clients optionally.

Or possibly doing it in a way described here: #22 (comment)

@sirupsen
Copy link
Contributor

sirupsen commented Dec 9, 2024

@philipk19238 are you running this in prod?

- Changed API URL construction to include versioning (/v1/) for better clarity and organization.
- Modified error handling to raise exceptions for additional HTTP status codes (408 and 429) alongside server errors (500+).
- Improved condition for checking 'Server-Timing' header to ensure it is not empty before processing.
@myusuf3
Copy link

myusuf3 commented Feb 24, 2025

This would be a welcome addition

@philipk19238
Copy link
Author

philipk19238 commented Feb 24, 2025

@philipk19238 are you running this in prod?

Sorry just saw this - yes have been using. We have a more recent build I can PR if this is an approach the team is aligned on.

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.

None yet

4 participants