Skip to content

Spring Boot based example cloud project. Dockerized microservice architecture.

License

Notifications You must be signed in to change notification settings

muratcanabay/spring-cloud-app

Repository files navigation

Prerequisites

  • Java 11

  • Docker

Installation

Run in the directory /spring-cloud-app/doc/docker the docker-compose.yml file is located.

docker-compose -f docker-compose.yml up -d

Create a keyspace named "account".

create keyspace account with replication = {'class': 'SimpleStrategy', 'replication_factor': 1};

Create a schema name "ticket".

create database ticket;

Run

Run microservices in the following order below:

  1. config-server
  2. eureka-server
  3. other services

Note: Be sure docker containers are running and complete installation step.

Addresses

Eureka Server - http://localhost:8500 Eureka Server

Account Service - http://localhost:8501 Account Service

Ticket Service http://localhost:8502 Ticket Service

Notification Service - http://localhost:8503

Api Gateway - http://localhost:8504

Admin Server - http://localhost:8505

Config Server - http://localhost:8888

Zipkin Server - http://localhost:9411 Zipkin Server

Hystrix Dashboard - http://localhost:8080/hystrix Hystrix Dashboard

Listen Hystrix Stream - Monitor Gateway http://localhost:8504/actuator/hystrix.stream Hystrix Stream

ElasticSearch - http://localhost:9200

I used elasticsearch tool box to monitor data. ElasticSearch

RabbitMQ - http://localhost:15672

username: rabbitmq
password: rabbitmq

RabbitMQ

MySQL - http://localhost:3306

I used IntelliJ Database Plugin to monitor data.

MySQL

Cassandra - http://localhost:9042

I used IntelliJ Database Plugin to monitor data.

Cassandra

License GitHub