Coder Social home page Coder Social logo

event-ddd-spring-kafka's Introduction

event-ddd-spring-kafka

Event Domain Driven Design with Spring

Getting Started

Clone and create a new project in Intellij. Make sure java 17 is installed.

Disable the JMX agent for Spring Boot.

Run the application and the `FakeActor' will start to generate orders.

Exercise

Implement the following events in the warehouse bounded context.

Shipment is ready to be shipped

Send a command to the Shipment that it has been made ready in the warehouse.

Update the status of the Orderto READY_TO_BE_SHIPPED and notify the customer (For the notification: just log a line with the customer name and the order reference)

Shipment has been shipped

Send a command to the Shipment that it has been made shipped.

Update the status of the Order to SHIPPED and again notify the customer.

Shipment is delivered

Send a command to the Shipment that it has been made delivered to the customer.

Update the status of the Order to DELIVERED and again notify the customer.

Note:

You can base yourself on the 'CustomerCommands' for the commands. For the event handling look at how the 'Order' broadcasts the event. And how the 'OrderDomainEventHandler' catches those events for the warehouse.

Implement the logic in FakeActor.java

event-ddd-spring-kafka's People

Contributors

tomvdbulck avatar

Watchers

 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.