Queue-based Elastic Deployment Quickstart
What You'll Accomplish
Understanding the Queue Model
How It Works
Your Client (curl or Python)
↓
Sends: POST /skywalker/tasks/create
↓
Yotta Queue System
↓
Sends: HTTP POST with taskData
↓
Your Worker Container (Docker)
↓
Receives: FastAPI endpoint (/run)
↓
Your handler(job) function
↓
Returns: result
↓
Yotta Queue System
↓
Stores: taskResult for retrievalStep 1: Build Your Worker
1.1 Create Your Business Logic
1.2 Create the HTTP Server
Step 2: Package Everything in Docker
2.1 Define Dependencies
2.2 Create Your Dockerfile
2.3 Build and Test Locally
Step 3: Deploy to YottaLabs
Create Your Elastic Deployment
Setting
Value
Save Your Endpoint ID
Step 5: Full Python Integration Test
Complete Test Script
Run Your Test
Expected Output
Next Steps
Last updated
Was this helpful?