Giter Club home page Giter Club logo

cqrs-python-demo's Introduction

WIP

cqrs-python-demo

For research purposes only. But feel free to learn from our experiments :)

Generally this is an attempt to do the following:

  • working CQRS system
  • event sourced
  • view model
  • commands
  • single REST api (for convenience)

Built with ๐Ÿ by fellows of ferstdigital.com

The Stack

Since we're considering event-sourcing and CQRS for our own techstack, I wanted to try it out first hand, using some pre-made event-source offering. The focus was to get a practical feel of a CQRS implementation, and the possible issues with event-sourcing.

Other event-sourcing considerations

Install

copy docker.env to .env

Easiest way to get this up and running is to use docker-compose.

2. For docker-compose: docker-compose up -d --build

2. Locally

copy docker.env to .env

setup python virtualenv env . env/bin/activate pip install -r requirements.txt

start the view model sync

python apps/readaccount/app.py

start the REST api

gunicorn apps.restaccount.app

Development

docker-compose up -d postgres docker-compose up -d eventstore

see docker-compose.yml for exposed ports, passwords, et al.

What is CQRS?

CQRS stands for Command Query Responsibility Segregation

https://martinfowler.com/bliki/CQRS.html

Learn more about CQRS

If you're new to microservices or command query responsibility segregation checkout some of these resources which I found particularily useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.