Add AWS World implementation with DynamoDB and SQS#1371
Add AWS World implementation with DynamoDB and SQS#1371ataylorme wants to merge 2 commits intovercel:mainfrom
Conversation
Introduces a new World backend for the Workflow DevKit using AWS managed services: - DynamoDB for all entity storage (runs, events, steps, hooks, waits, stream chunks) with on-demand billing and GSIs for efficient queries - SQS standard queues for durable workflow/step message queuing with per-message delay support (up to 15 min) - Polling-based stream reader for real-time chunk delivery - CLI tool (workflow-aws-setup) for automated DynamoDB table creation - CBOR encoding for binary-safe data serialization - Full event-sourcing storage model matching the World interface spec https://claude.ai/code/session_01V2KJGt7ihWsSGb5Jzcsu5Q
🦋 Changeset detectedLatest commit: 6fb169f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@claude is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. Learn more about Socket for GitHub.
|
- Fix GSI ExclusiveStartKey using empty createdAt placeholder; now fetches actual item to get correct sort key for pagination - Fix ConditionalCheckFailedException leaking as raw AWS error when wait is in unexpected state; only rethrow for non-conditional errors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Hi @ataylorme We love seeing World contributions. The approach we're taking with community Worlds is that we'd like them to be published as third-party Worlds, which we then add/advertise on our list of Worlds. In order to get on this list, all you need is:
Once that's done, we'll verify whether the package works, is deployable/redeployable, and passes at least basic workflow e2e tests. If that looks good, we'll merge the PR! If your package gets significant community attention, we may consider moving to first-party support inside the |
Summary
This PR introduces a complete AWS-based World implementation for the Workflow DevKit, providing a production-ready backend using AWS managed services. The implementation includes DynamoDB for persistent storage, SQS for message queuing, and DynamoDB-backed streaming.
Key Changes
DynamoDB Storage Layer (
storage.ts): Comprehensive storage implementation for all workflow entities (runs, events, steps, hooks, waits) with:SQS Queue Implementation (
queue.ts): Message queue backed by AWS SQS with:DynamoDB Streamer (
streamer.ts): Real-time streaming using DynamoDB with:Infrastructure & Configuration:
dynamo.ts: DynamoDB table creation and schema definitions with on-demand billingconfig.ts: Flexible configuration via environment variables or programmatic APIcli.ts: Setup CLI tool for initializing DynamoDB tablesDocumentation: Complete README with architecture overview, configuration guide, and setup instructions
Notable Implementation Details
https://claude.ai/code/session_01V2KJGt7ihWsSGb5Jzcsu5Q