Skip to main content

Overview

The Noxus Client SDK provides comprehensive support for asynchronous operations, allowing you to build high-performance applications that can handle multiple concurrent requests efficiently. This is particularly useful for I/O-bound operations like API calls, file uploads, and long-running workflows.

Why Use Async?

Better Performance

Handle multiple operations concurrently without blocking

Resource Efficiency

Use system resources more efficiently with non-blocking I/O

Scalability

Build applications that can handle more concurrent users

Responsiveness

Keep your application responsive during long operations

Async Method Pattern

All async methods in the SDK follow a consistent naming pattern - they’re prefixed with a:

Basic Async Usage

Simple Async Function

Async Context Manager

For better resource management:

Concurrent Operations

Running Multiple Operations Concurrently

Use asyncio.gather() to run multiple operations simultaneously:

Processing Collections Concurrently

Process multiple items concurrently with controlled concurrency:

Async Workflows

Creating and Running Workflows Asynchronously

Async Conversations

Handling Multiple Conversations

Async Knowledge Bases

Document Processing with Async

Error Handling in Async Code

Handling Individual Errors

Handling Errors in Concurrent Operations

Performance Tips

Control concurrency to avoid overwhelming the API:
Group related operations to reduce API calls:
Process results as they become available:

Integration with Web Frameworks

FastAPI Integration

Django Async Views

Testing Async Code

Using pytest-asyncio

Next Steps

Error Handling

Learn advanced error handling patterns for async code

Performance Optimization

Discover best practices for high-performance applications

Workflow Examples

See async patterns in workflow management

API Reference

Explore all available async methods