Build Actions

Build a feature's action-database — async orchestration over services and transactions. If the feature has async flows or side effects outside of the main store.

Adobe Updated 1.6k repo stars

File contents

Skip if this feature doesn't contain or require actions.

Create services/main-service/action-database/: action-database.ts (extends ServiceDatabase, adds actions from ./actions/index.js) plus an actions/ folder — one async orchestrator per file. An action takes db: ServiceDatabase, awaits services/ ports, then commits exactly one transaction.

The top main-service layer; comes after service-database.

The how is in the auto-loading features/services/main-service/actions.md rule.

adobe/data commit 791e40fcf5

Frequently asked questions

npx get-skill add adobe/build-actions