GithubHelp home page GithubHelp logo

schanne-dhbw / bookmyhotelms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruchisaini4j/bookmyhotelms

0.0 1.0 0.0 175 KB

Demo Application to understand Spring Microservices

License: MIT License

Java 66.82% CSS 33.04% HTML 0.14%

bookmyhotelms's Introduction

BookMyHotelMS

Demo Application to understand Spring Microservices

Monolithic

Check Monolithic application code

Run the spring boot Application

Test using http://localhost:6060

Fill RegistrationId and password to login (use cr1 for registration id and pass for password)

You will see the home page with links to check the registration details, existing bookings and search hotels

Check existing details by clicking on corresponding links

Search hotels using city as noida,state as up and country as india

Book the hotel

Eureka Server

Run the Eureka Server

Use http://localhost:8001 to open Eureka UI

MicroServices

Monolithic Application is broken into MicroServices and a web application

Run all Microservices which are spring boot applications

Run the webapplication also

Check in Eureka UI that all microservices and webapplication are registered

Test using http://localhost:6060 as before

Ribbon

Changes are done in WebApplication code to use ribbon

No Change in microservices code as no microservice is interacting with other microservice

Run all Microservices

Make sure to run two instances of Registration MicroService

Run the webapplication also Check in Eureka UI that all microservices and webapplication are registered

Test using http://localhost:6060 as before

Login multiple times and you will see that request is load balanced among different registration microservice instances

Feign

Changes are done in WebApplication code to use feign

No Change in microservices code as no microservice is interacting with other microservice

Run all Microservices

Run the webapplication also

Check in Eureka UI that all microservices and webapplication are registered

Test using http://localhost:6060

bookmyhotelms's People

Contributors

ruchisaini4j 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.