Async Client¶
Working with Neonize's asynchronous client.
Overview¶
The async client (NewAClient) provides full async/await support for high-performance applications.
Quick Links¶
- Getting Started - Start with async client
- Event Handling - Async event handlers
- Best Practices - Async patterns and tips
Basic Usage¶
When to Use Async¶
Use async client when you need:
- High concurrency - Handle many connections simultaneously
- Non-blocking I/O - Don't block on network operations
- Integration - Work with async frameworks (FastAPI, aiohttp)
- Performance - Maximum throughput
Async vs Sync¶
| Feature | Async Client | Sync Client |
|---|---|---|
| Performance | ⚡ Higher | 🐌 Lower |
| Concurrency | ✅ Excellent | ⚠️ Limited |
| Complexity | 🔴 Higher | 🟢 Lower |
| Best For | Production | Prototyping |
Next Steps¶
Continue to:
- Async Quick Start - Build your first async bot
- Async Events - Handle events asynchronously
- Best Practices - Write efficient async code