Java Magazine, Jan/Feb 2018
Co ee order system Bean storage system Barista system orderCo ee OrderPlaced acceptOrder OrderAccepted startOrder OrderStarted finishOrder OrderFinished deliverOrder OrderDelivered ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2018 76 beyond CRUD Apache Kafka as the event hub Once events are published to Kafka the services handle the events accordingly and update their representation The business use cases for ordering a cup of cofee are shown in Figure 4 When a client creates an order the command service publishes an event OrderPlaced and returns the request successfully even though the system cant tell yet whether the order will be finished successfully The client can request the status of the order from the query service Figure 4 Use cases for ordering a cup of coffee validateBeans OrderBeansValidated fetchBeans makeCo ee Co eeBrewStarted Co eeBrewFinished Co eeDelivered BeansFetched
You must have JavaScript enabled to view digital editions.