aaronzirbes / rp-event-store

Ratpack Event Store POC
4 stars 0 forks source link

Ratpack Event Store POC

Work in Progress

Writing an event store proof of concept.

Goals

Event Sourcing model:

TODOs

Nice to have TODOs

Demo Model

Events:

Aggregate: Bicycle

Getting Setup

There be dragons

:warning: I assume you have aliased your docker host as docker. I do this by putting the IP for docker in your /etc/hosts

Running Cassandra in a docker container

docker pull cassandra:2.2
docker run --name evsrc-cassandra -p 9042:9042 -d cassandra:2.2

Running Elasticsearch in a docker container

docker pull elasticsearch:1.7
docker run --name evsrc-elasticsearch -p 9200:9200 -p 9300:9300 -p 54328:54328 -d elasticsearch:1.7

Demo

See the test.sh script for some demo command that push or pull data from the service, or search elastic search for downstream aggregates.