Initial steps necessary to implement event sourcing using serverless framework and AWS lambdas. See blog post for details .
- Deploy using serverless
sls deploy
- Send commands using HTTP endpoint
curl -XPOST https://XXXXX.execute-api.us-east-1.amazonaws.com/dev/command -d '{"type":"microserviceName", "command":"commandName", "id":17, "timestamp":11178, "user":"userId"}'
- Check EVENTS_TABLE DynamoDB table is populated with new events.