Async APIs
Last updated
Last updated
The AsyncAPI kind is designed for asynchronous workloads, in which the user submits a request to start the processing and retrieves the result later, either by polling or through a webhook.
The design is summarized in the image below.
The Async Gateway is responsible for submitting the workloads to the queue and for the retrieval of the respective workload status and results. Cortex fully manages the Async Gateway and the queue, while the user is in charge of implementing the API predictor. Autoscaling is provided based on the average number of messages in the queue.
AsyncAPI matches the use-cases of the users that want to submit longer machine learning workloads, such as video, audio or document processing, and do not need the result immediately.
AsyncAPI is still in a beta state.