Work in Progress
Writing an event store proof of concept.
Event Sourcing model:
Events:
Aggregate: Bicycle
:warning: I assume you have aliased your docker host as docker
.
I do this by putting the IP for docker in your /etc/hosts
boot2docker config
will give you your IP if you don't know it. (see LowerIP in the output)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
See the test.sh
script for some demo command that push or pull data from
the service, or search elastic search for downstream aggregates.