Giter Club home page Giter Club logo

eventsource-python's Introduction

Python Event Source Test

This is an attempt to create an example of Event Sourcing within a Python / Django application.

This is pretty lighteight / minor. Currently it just has some event persistence, basic validation and event generation hidden behind service layers, and some examples of constraints on handling events / persisting them (e.g. do not allow events to be saved with gaps in between revision numbers).

What's missing / TODO

  • Projection example to facilitate easy querying (e.g. current state of all restaurants)
  • Snapshots
  • Relations
  • It's basically just tests at this point, there's no real API to communicate
  • No UI

Challenges

One should never blame the tools, but some aspects of Python and Django make this a bit more onerous than some more type-safe languages. For example, lack of method overloading in Python makes registering event handling on an object to require a few more steps with individual methods. The Django ORM appears to lack an ability to cleanly construct Views of data and then cast them into an object, as well as the ability to cast a general query into a non-Model object.

eventsource-python's People

Contributors

spember avatar

Watchers

 avatar James Cloos avatar  avatar

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.