AsyncReducto client provides the same interface as the sync client, but allows concurrent document processing. Use it when you need to process multiple documents simultaneously.
Basic Usage
await.
Concurrent Processing
The real value of async is processing multiple documents simultaneously withasyncio.gather:
Parse Multiple Documents
Extract from Multiple Documents
Split Multiple Documents
Fill Multiple Forms
Run Pipeline on Multiple Documents
Rate Limiting
Control concurrency with semaphores to avoid overwhelming the API:Context Manager
Use the context manager to ensure proper cleanup:Error Handling
Error handling works the same as the sync client:return_exceptions=True to handle failures gracefully:
Advanced Features
Raw Response Access
Streaming Response
When to Use Async
Use Async When
Processing 10+ documents, building web services, or integrating with async frameworks (FastAPI, aiohttp).
Use Sync When
Processing single documents, simple scripts, or when async adds unnecessary complexity.
Next Steps
- See error handling for the complete exception reference
- Check job management for async job polling