Skip to main content
Connic

SQS Order Processor

By Connic

Validate and fulfill orders from SQS queues with fraud detection, inventory checks, and concurrency keys. Results publish to an outbound queue.

CommerceIntermediateAWS SQS
connic init my-project --templates=sqs-order-processor

Overview

Processes e-commerce orders from an SQS queue through a validation-then-fulfillment pipeline. The validator checks completeness, calculates totals independently, verifies inventory, and flags fraud signals. Concurrency control queues orders by customer_id to prevent duplicates. Middleware rejects malformed payloads with StopProcessing before the LLM runs. Approved orders get fulfillment records from a deterministic tool agent. Results are published to an SQS outbound queue.

Use cases

Order validation

Validate incoming orders for missing fields, calculation errors, and fraud signals before fulfillment.

Inventory management

Check stock availability during validation and reject orders for out-of-stock items.

E-commerce backend

Process high-volume order queues with per-customer concurrency control and strict timeout guarantees.

Architecture

SQS (orders)
order-pipeline
order-validator
order-fulfiller
SQS (fulfillment)

Main template files

Install these files with connic init my-project --templates=sqs-order-processor. The CLI places agent definitions in a folder named after the template under agents/.

sqs-order-processor/
  agents/
    order-validator.yaml
    order-fulfiller.yaml
    order-pipeline.yaml
  tools/
    order_tools.py
  middleware/
    order-validator.py
  schemas/
    order-validation.json
  requirements.txt
  README.md

Get started

Install the template, create a Connic project, and deploy through a connected Git repository or the CLI.

Prerequisites

  • Python 3.10+
  • A Connic account (create a project first)
  • Project credit for a connic/* model, or credentials for a BYOK provider
Create project
  1. Install and scaffold

    Install the SDK and create a project from this template.

    terminal
    pip install connic-composer-sdk
    connic init my-project --templates=sqs-order-processor

    Then cd my-project

  2. Deploy

    Choose a deployment method. A connected Git repository deploys on push; use the CLI for projects without a connected Git repository.

    Git integration
    1. In Connic: Project Settings → Git & Environments, connect the GitHub repository

    2. On the same page, map a branch (e.g. main) to the Production environment

    3. Push the scaffolded project to that repository

    terminal
    git add .
    git commit -m "Add SQS Order Processor template"
    git push origin main
    CLI deploy
    1. In Connic: Project Settings → API Keys & MCP Auth, create an API key and copy project ID

    2. Run connic login in the project folder

    3. Use connic dev to try with hot-reload, connic test to run suites, or connic deploy for production

    terminal
    connic login
    connic dev     # Ephemeral dev env with hot-reload
    connic test    # Run declarative test suites
    connic deploy  # Deploy to production
  3. Connect and configure

    Add an SQS inbound connector for the orders queue and an SQS outbound connector for the fulfillment queue. Provide AWS credentials for both. Use a connic/* model, or add BYOK credentials under Project Settings → LLM Provider.

Template source

Browse the full template, contribute improvements, or fork it for another use case.

connic-org/connic-awesome-agents/tree/main/sqs-order-processor

Information

Publisher
By Connic
Difficulty
Intermediate
Works with
AWS SQS
Source
GitHub