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

Async refactor #13

Open
tipani86 opened this issue Feb 24, 2023 · 0 comments
Open

Async refactor #13

tipani86 opened this issue Feb 24, 2023 · 0 comments

Comments

@tipani86
Copy link
Owner

tipani86 commented Feb 24, 2023

List the major blocking calls in current implementation and alternatives/workarounds based on async

  • Generic http requests: use aiohttp because it's fast and lightweight
  • Azure table operations: directly implement asyncio, sample code
  • Azure Speech SDK: It appears we're already using some kind of non-blocking API called speak_ssml_async
  • OpenAI SDK: there seems to be a PR that enables async calls, or we can just convert everything to aiohttp requests, I guess, since we're planning to use it anyway...
  • time.sleep(): ah, a classic. asyncio.sleep() will do.
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

No branches or pull requests

1 participant