Code Monkey home page Code Monkey logo

advanced-cqrs-ddd-workshop's Introduction

advanced-cqrs-ddd-workshop

This sample was created during Greg Young's Advanced CQRS & DDD Workshop in London Nov 7-10 of 2017.

What is this?

The course started out given a really simple scenario. We're basically running a restaurant. So we have 4 basic actors in our system. The Waiter which takes orders from customers, the Cook which takes an order and prepares the food. Then an Assistant Manager which determines the price for individual line items and finally a Cashier which will handle actual payment for an order.

Given these four basic actors, we started implementing with composition of these actors as a pipeline through IHandleOrder interface which exposes one Handle(Order) method. This way we can send messages through a pipeline from the Waiter, to the Cook, to the Assistant Manager and finally to the Cashier. Later in the workshop we've re-implemented some of this logic in the form of a topic based Pub/Sub bus.

Conceptually you can think of each of these 4 actors as being implemented as a micro service, where messages passed between them are sent via an actual broker.

Concepts in this sample

  • Composition of logic
  • Process Manager(s)
  • Chaos (Seemingly random dropping messages vs. delivering messages twice)
  • Idempotent message handling
  • Sending messages to future self
  • Weak schema between services (don't lose message elements when serializing/deserializing)
  • Using CorrelationId and CausationId on messages

advanced-cqrs-ddd-workshop's People

Contributors

stephanvs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.