Create a local runtime stochastic-local (as compared to stochastic-aws-serverless) that allows for fast in-memory testing of business logic, and experimentation for maintainers, without the complexity of infra and temporary uncertainty of eventual consistency.
Ideal use cases:
Explicitly test the behavior of "out of order", and duplicate (at least once delivery) events
Happy path for complete business acceptance tests
An alternative to completely mocking/stubbing the bounded context for the domain layer, graphql resolvers, or UI
Continuous integration
The unit and business acceptance tests should execute against stochastic-local in before commit, and in CI, providing faster feedback on business rules without requiring service deployment and endpoint discovery. Instead of mocking polyglot data sources the developer could opt to run a local instance of any collaborating databases (e.g. redis, dynamodb-local, sqlite, etc...).
Create a local runtime
stochastic-local
(as compared tostochastic-aws-serverless
) that allows for fast in-memory testing of business logic, and experimentation for maintainers, without the complexity of infra and temporary uncertainty of eventual consistency.Ideal use cases:
The unit and business acceptance tests should execute against
stochastic-local
in before commit, and in CI, providing faster feedback on business rules without requiring service deployment and endpoint discovery. Instead of mocking polyglot data sources the developer could opt to run a local instance of any collaborating databases (e.g. redis, dynamodb-local, sqlite, etc...).