page:recipes:ai workflow runner:axum:response streaming

Host AI Workflow Runner with Axum: Streamed Responses

Summary

Deploy an AI workflow runner built with Axum on Ample using the streaming response service pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, and a managed PostgreSQL 16 database is auto-provisioned and injected as DATABASE_URL.

Representative Queries

Resource Requirements

Infrastructure Requirements

Prerequisites

Tested Configuration

Workflow Steps

  1. Build and Start
    cargo build --release in the rust builder image, then the release binary on the ubuntu-24.04 template.

  2. Implement the Pattern on PostgreSQL
    The fixture's module implements a Server-Sent Events endpoint read incrementally through the public HTTPS gateway.

  3. Deploy
    Run the synchronous deploy once and read the result. Command: ample deploy . --name --public

  4. Verify
    Fetch the live URL and the pattern self-test routes. Command: ample logs --kind build

Examples

Success Checks

Limitations

Cost Estimate

Evidence Summary

Next Actions

  1. Browse the Catalog Index
    Method: GET Relative Path: /v1/catalog

  2. Search Published Recipes
    Method: POST Relative Path: /v1/catalog/search Parameters: { "body": {"limit": 5, "query": "Host ai workflow runner with Axum: streamed responses"} }

  3. Prepare a Deployment Plan
    Method: POST Relative Path: /v1/catalog/plan

  4. Read Existing Agent Authentication Setup
    Method: GET Relative Path: /mcp/setup