Code Monkey home page Code Monkey logo

java-load-balancing's Introduction

java-load-balancing

Client-Server application to see the NASA's APOD. Runs in a 3 instance Cluster, Load Balanced by Ribbon.

Running the server:

cd say-hello
mvn spring-boot:run "-Dspring-boot.run.arguments=--server.port=8080"
mvn spring-boot:run "-Dspring-boot.run.arguments=--server.port=8081"
mvn spring-boot:run "-Dspring-boot.run.arguments=--server.port=8082"

With this, 3 instances of the server will be running locally.

Running the server with Docker

docker pull mawippel/load-balance-server-side
docker run -p 8080:8090 mawippel/load-balance-server-side
docker run -p 8081:8090 mawippel/load-balance-server-side
docker run -p 8082:8090 mawippel/load-balance-server-side

Running the client:

cd user
mvn spring-boot:run"

With this, your client will be avaible to receive requests.

Running the application:

When accessing http://localhost:8888/getAPOD, you'll be automatically redirected to the APOD's picture page.

Building a new version

To build the dockerfile:

docker build -t server-side .
docker tag server-side:version_here mawippel/load-balance-server-side
docker login
docker push mawippel/load-balance-server-side

java-load-balancing's People

Contributors

mawippel avatar

Watchers

 avatar

java-load-balancing's Issues

TODO

  • Cluster Spring boot com 3 maquinas
  • Load balancing nas 3 instancias, usando Round Robin
  • Utilizando Ribbon (Netflix OSS)
  • Definir algum cenario para a aplicaçao
  • Comunicacao entre os servidores
  • Upar as instancias no EC2 (Portas diferentes)
  • Utilizar Docker para efetuar o deploy no EC2

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.