Skip to content
/ ha Public

Proof of concept of scalable and fail proof archtecture

Notifications You must be signed in to change notification settings

bmlynarczyk/ha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HA

Description

HA it is a proof of concept for scalable and fail proof archtecture development. Firts and main goal it's to build scalable and fail proof archtecture. Second goal is to help understand basics of Spring Cloud framework working with Netflix OSS.

Architecture

HA is farm of services working in one or more networks. Each service is build with Maven and works thanks of Spring framework. For purpose of network simulation POC uses docker contenerization platform and docker-compose tool.

HA includes following services:

  • Gateway - input endpoint taking HTTP request for processing in system
  • Dispatcher - pass HTTP request to processing in system
  • Service Register - allow for service discovery - the brain of scalability

Requirements

  • openjdk version "1.8.0_121"
  • Docker version 1.12.3
  • docker-compose version 1.8.1

Recomendations

  • Linux

Manual

  • Build docker image in each service directory:
./mvnw clean package docker:build
  • Run services farm in docker compose directory
docker-compose up
  • Send load balanced request
curl --data "value=value" http://localhost:8080/send
or
curl --data "value=value" http://localhost:8081/send