Kubiya implements a cutting-edge serverless architecture where every workflow and step runs as an independent Docker container. This design enables unprecedented flexibility, scalability, and software compatibility.
Each workflow execution is completely independent:
Copy
# This workflow runs in a fresh environment every timeworkflow = Workflow( name="data-pipeline", runner="kubiya-hosted")# Step 1 runs in container Aworkflow.add_step( name="fetch-data", image="python:3.11", code="# This container is destroyed after execution")# Step 2 runs in container B (completely separate)workflow.add_step( name="process-data", image="python:3.11", code="# Fresh container, no state from Step 1")
With ADK orchestration, you can generate these complex workflows using natural language:
Copy
from kubiya_workflow_sdk import KubiyaWorkflow# Generate entire workflow from descriptionworkflow = KubiyaWorkflow.from_prompt( """ Create a data pipeline that: 1. Extracts data from PostgreSQL and MongoDB 2. Transforms using Python pandas 3. Runs ML predictions with TensorFlow 4. Stores results in S3 and sends Slack notification """, runner="kubiya-hosted")# ADK generates the complete containerized workflowresult = workflow.execute()