Giter Club home page Giter Club logo

event-driven-microservices's Introduction

Event-Driven Microservices Demo

Docker Execution

  1. Start-up Docker via Compose

    docker-compose up

  2. Open Hawtio send messages to event.ingestion (admin/admin)

    http://localhost:8090/hawtio/welcome

Connect Remote:

  • Name: broker
  • Scheme: http
  • Host: event-broker
  • Port: 8161
  • Path: api/jolokia

Open Queue-->event.injestion

Open Send Tab

OR

  1. Open ActiveMQ Queues (admin/admin)

    http://localhost:8161/admin

Click Send Tab

  • Destination: event-ingestion
  1. Send messages

Leon Kowalksi

{
  "resourceType": "Encounter",
  "id": "EMR56789",
  "text": {
    "status": "generated",
    "div": "Nose bleading and headaches"
  },
  "status": "in-progress",
  "class": "outpatient",
  "patient": {
    "reference": "Patient/P45678",
    "display": "Leon Kowalski"
  }
}

Roy Batty

{
  "resourceType": "Encounter",
  "id": "EMR56788",
  "text": {
    "status": "generated",
    "div": "Patient admitted with chest pains"
  },
  "status": "in-progress",
  "class": "inpatient",
  "patient": {
    "reference": "Patient/P12345",
    "display": "Roy Batty"
  }
}

Eldon Tyrell

{
  "resourceType": "Encounter",
  "id": "EMR56799",
  "text": {
    "status": "generated",
    "div": "Patient admitted with massive headache"
  },
  "status": "in-progress",
  "class": "outpatient",
  "patient": {
    "reference": "Patient/99999",
    "display": "Eldon Tyrell"
  }
}

Spring-Boot Execution

Requires ActiveMQ listening on tcp://localhost:61616

  1. Build all the sub-projects - mvn clean install
  • event-common
  • event-test-harness
  • event-ingestion
  • event-auditing
  • event-care-management
  • event-cep
  1. Start all Microservices - mvn spring-boot:run -Drun.arguments="-Xmx256m,-Xms128m"
  • event-ingestion
  • event-auditing
  • event-care-management
  • event-cep
  1. Run Test Harness

cd event-test-harness/target

  • java -Dactivemq.hostname=localhost -jar event-client-1.0.2.jar Leon

  • java -Dactivemq.hostname=localhost -jar event-client-1.0.2.jar Roy

  • java -Dactivemq.hostname=localhost -jar event-client-1.0.2.jar Eldon

or start JMeter and run test suite

..event-ingestion/src/test/jmeter/Camel Mock Publisher

  1. View Results in ActiveMQ Console - http://localhost:8161/admin

default uid/pw = admin/admin

  1. View Audit File Results

cd event-auditing/target/events

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.