Skip to content
Discussion options

You must be logged in to vote

Yes, this is now possible. You can use the SQS adapter's handleJob() method directly in a Lambda handler without the polling loop. The Lambda + SQS event source mapping handles the polling for you, and the framework handles node execution, context management, fan-in coordination, and successor job enqueueing.

Here's what it looks like:

// lambda/workflow-worker.ts
import type { SQSEvent, SQSHandler } from 'aws-lambda'
import { DynamoDBClient } from '@aws-sdk/client-dynamodb'
import { SQSClient } from '@aws-sdk/client-sqs'
import { DynamoDbCoordinationStore, SqsAdapter } from '@flowcraft/sqs-adapter'

const sqsClient = new SQSClient({ region: process.env.AWS_REGION })
const dynamoDbClient = 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gorango
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants