An example of architecture based on microservices for building a simple HelloWorld application.
Java JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
helloworldlogmicroservice
helloworldrestmicroservice
helloworldwebmicroservice
images
README.md
docker-compose.yml

README.md

An example of architecture based on microservices for building a simple HelloWorld application. Below, a screenshot of the main user interface.

Scenario is obvious: you input a HelloWorld message and you submit it. All the HelloWorld messages are listed into a table.

Screenshot

The architecture of this application is composed of five microservices.

  • The Web microservice to supply user interface (helloworldwebmicroservice project). Technologies: HTML,JavaScript and Node.JS
  • The Rest microservice (helloworldrestmicroservice project) to supply a REST API. Technologies: Java, RabbitMQ client, JRedis, KumuluzEE, CDI and JAX-RS.
  • The Redis microservice to store data. Technology: Redis server.
  • The RabbitMQ microservice to store event bus. Technology: RabbitMQ server.
  • The Log microservice (helloworldlogmicroservice project) to create logs. Technology: Java, RabbitMQ client.

Prerequisites

  • Docker (latest version)
  • Docker Compose (latest version)

How to Run

Clone this project.

At the root of the project execute the following shell command.

$ docker-compose up -d

After the local deployment, you can check if the docker containers are working.

$ docker-compose ps

How to execute

Open your favorite web browser and go to this URL: http://localhost

To check if the Log microservice is working, display its console output

$ docker logs log_1