Repository navigation
feat(compose-eventbridge-custom-bus): bring the example to the standard with a live test - #846
Merged
czubocha merged 2 commits intoNov 26, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings
compose-eventbridge-custom-busto the example standard:example.jsonwith a live test, atest/smoke.mjscheck, the README in the standard sections, and the producer's dependency pinned.Lesson (unchanged): a stateful service owns an EventBridge Custom Event Bus, and the
eventBridgeevent subscribes functions in another service to it, wired with Serverless Compose:fulfilgets one event at a time in publish order (ordering: fifo,batchSize: 1),auditgets arrays with a dead-letter queue.Changes
example.json: title and description kept fromexamples.json; serviceslambda,eventbridge,sqs,iam,logs; onescriptcheck.test/smoke.mjs: invokes the producer for five orders of a unique customer, then asserts thatfulfillogged sequences 1 to 5 in that order and thatauditreceived all five.iam:PassRole), Deploy and Try it with output from a real run, How it works (wiring, consumers, delivery role and producer), When to use a Custom Event Bus, Personal and preview stages, Cost and cleanup, Next steps. All links absolute.producer:@aws-sdk/client-eventbridgev2pinned to3.1172.0;npm audit: 0 vulnerabilities. Deploy usesnpm ci.Evidence
Serverless Framework 4.47.0, 2026-11-25.
node scripts/check-examples.mjs compose-eventbridge-custom-bus0 errors,npm run validate0 errors,npm test323 passed,npm run check-docsclean, on the currentv4.--packageis not used for Compose examples whose services read another's output.us-east-1): deploy of all three services, producer invoke withcount: 5,fulfillogged sequences 1 to 5 in order,auditreceived batches of 4 and 1; removed.scripts/test-example.mjs):fulfillogs a different handler name stopped at thecheckstep:fulfil logged 0 of 5 orders and audit received 5 of 5.AWS::EventsV2::EventBusfor any test stage inus-east-1oreu-west-1.fulfillines and batchedauditlines as the README shows, removed, confirmed the stacks and bus gone; no README step needed a guess.Generated by Claude Code