Lawouach / event-driven-microservice

A simple demonstration of an event driven microservice written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event driven Microservices in Python

This repository holds a simple event-driven microservice showcase implementing the architecture style described by Russ Miles in Antifragile Software.

The microservices are part of an imaginary bookshelf system. We've got views that allow you to query for specific answers against your bookshelf (like what are the last read books), but also aggregates that handle commands (such as, add a new book).

Note, these examples are not a library nor a framework you should copy/paste as-is. They merely translate one approach for event-driven microservices and, hopefully, will inspire you.

Build Status

Please read the documentation regarding this project.

TODO

This repository is not complete yet, there are many tasks still to carry to get the full picture:

  • implement an aggregate for commands
  • better configuration scheme
  • propose a much nicer REST API
  • automatically discover services at startup
  • wait for kafka to be available before starting microservices
  • wrap the microservices into containers
  • orchestrate said containers to demonstrate scale and fault-tolerance

About

A simple demonstration of an event driven microservice written in Python

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 87.1%Language:Shell 12.9%