This change adds two new low-level (L1) constructs:
Dependency - a simple expression of a dependency on a string value at runtime that must be configured at infrastructure synth time.
EventHandler - a simple construct to trigger a handler in response to some events in the bounded context.
This EventHandler construct can act as an escape hatch or (later) as a building block for higher level constructs such as ReadModel. For now (in this change), our basic ReadModel construct is functionally identical to an EventHandler, but we will look at building more layers of abstraction for read models in a follow up PR.
House keeping:
refactored tsconfig.json to use project references for faster builds and for immediate propagation of changes to types while developing.
refactored the monolithic infrastructure.ts into separate files. More to do later.
This change adds two new low-level (L1) constructs:
Dependency
- a simple expression of a dependency on a string value at runtime that must be configured at infrastructure synth time.EventHandler
- a simple construct to trigger a handler in response to some events in the bounded context.This
EventHandler
construct can act as an escape hatch or (later) as a building block for higher level constructs such asReadModel
. For now (in this change), our basicReadModel
construct is functionally identical to anEventHandler
, but we will look at building more layers of abstraction for read models in a follow up PR.House keeping:
tsconfig.json
to use project references for faster builds and for immediate propagation of changes to types while developing.infrastructure.ts
into separate files. More to do later.