uvicorn server:app --host 0.0.0.0 --port 8000
Advanced
section of the deployment form under Sidecar
section)./deploy-model-with-fastapi/
). We also specify the command that we need to use to run our service (uvicorn server:app --host 0.0.0.0 --port 8000
).Next, we setup the AWS SQS Queue following the Creating and Utilizing an AWS SQS Queue documentation.We specify the port that we want our service to listen on (8000
).Finally, we configure the Sidecar. Sidecar is a component that will consume message from a queue and forwards them as POST requests to your HTTP service.Submit
, your deployment will be successful in a few seconds, and your Async Service will be displayed as active (green), indicating that it’s up and running.
python send_async_request.py