Code Monkey home page Code Monkey logo

microservices-spring's Introduction

Microservices with Spring

Project for presentation of microservices. It contains modules:

  • Configuration service - holds properties for all applications
  • Registry service - registers services for further executing
  • Order service - stores orders in Elasticsearch
  • Customer service - stores customers in Postgresql database
  • Dispatcher service - sends business events to queue
  • Routing service - one access point for external client, routes requests to services

To clone, build and start application you need:

  • Git client
  • Java 8
  • Maven 3
  • Docker (for Windows 'Docker toolbox' is preferable)

Build and start

Clone project

git clone https://github.com/Rustam-Kadyrov/microservices-spring.git    

Build all modules and docker images for them

cd microservices-spring
mvn clean package docker:build

Start infrastructure containers

Make sure that VM has enough memory (At least 2048 Mb is recommended). Path Docker virtual machine with command:

docker-machine ssh default "sudo sysctl -w vm.max_map_count=262144"

Run containers:

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

Start business containers

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

URLs

Business services

Through routing service:

Dispatcher service swagger

Customer service swagger

Order service swagger

Eureka

Link to UI

Elastic search

Status link

login: elastic
password: changeme

Rabbit MQ

Link to UI

login: guest
password: guest

microservices-spring's People

Contributors

epam-kadyrov avatar

Watchers

James Cloos 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.