Skip to content

Create an async version of the client #412

Open
@chaudronmagic

Description

@chaudronmagic

Description

We need to add asynchronous support to the Nylas client to improve performance in high-concurrency applications. The current synchronous implementation blocks the event loop during HTTP requests, which limits scalability in async applications.

Benefits

  • Improved performance for concurrent operations
  • Compatibility with async web frameworks (FastAPI, Starlette, etc.)
  • Better resource utilization when processing multiple emails
  • Reduced latency for user-facing applications that process email data

Implementation Suggestion

Extend the current HttpClient with an async version that uses aiohttp while maintaining the same interface.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions