Havret / akka-saga-pattern-talk-code

Akka cluster, sharding, persistence, at-least-once, dynamodb and the saga pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Akka Saga Pattern

Presentation Links

Talk

Deck

Getting Started

DynamoDB:

docker run -d --name dynamodb -p 8000:8000 peopleperhour/dynamodb

AWS_ACCESS_KEY_ID=me AWS_SECRET_ACCESS_KEY=secret aws dynamodb create-table --region us-east-1 --cli-input-json file://journal.json --endpoint-url http://localhost:8000

AWS_ACCESS_KEY_ID=me AWS_SECRET_ACCESS_KEY=secret aws dynamodb list-tables --region us-east-1 --endpoint-url http://localhost:8000

Usage:

curl --verbose "http://127.0.0.1:8080/register" -X POST -H 'Content-type: application/json' -d '{"email": "bob@example.com", "password": "p@ssw0rd"}'

curl --verbose "http://127.0.0.1:8080/users/<UUID>/change-email" -X POST -H 'Content-type: application/json' -d '{"oldEmail": "alice@example.com", "newEmail": "charlie@example.com"}'

About

Akka cluster, sharding, persistence, at-least-once, dynamodb and the saga pattern


Languages

Language:Scala 100.0%