Coder Social home page Coder Social logo

order-management-system's Introduction

order-management-system-demo

Demo application for order-management-system using spring microservices architecture

Prerequisites:

  1. Make sure Java 1.7 is available to run executable jar files
  2. Run Active MQ Server locally from tools/apache-activemq-5.11.1/bin/macos/activemq start
  3. Make sure there are no port blockings to interact multiple microservices in the system (Connect to internet)

Procedure

To run the order management microservices system, open six CMD windows (Windows) or six Terminal windows (MacOS, Linux) and arrange so you can view them conveniently.

  1. In each window, change to the directory where you cloned the demo.
  2. In the first window, build the application using mvn clean package. This would have generated file in 'target/order-management-service.1.0.jar`.
  3. In the same window run: java -jar target/order-management-service.1.0.jar registration
  4. Switch to the second window and run: java -jar target/order-management-service.1.0.jar product-catalog-service
  5. In the third window run: java -jar target/order-management-service.1.0..jar pricing-service
  6. In the fourth window run: java -jar target/order-management-service.1.0..jar tax-service
  7. In the fifth window run: java -jar target/order-management-service.1.0..jar order-service
  8. In the sixth window run: java -jar target/order-management-service.1.0..jar billing-service
  9. In the seventh window run: java -jar target/order-management-service.1.0..jar mailing-service
  10. In your favorite browser or postman, open the links for each and access: You should see servers being registered in the log output of the first (registration) window. As you interact you should logging in the second and third windows.

PostMan scripts:

  1. Open PostMan
  2. Click on Import and select OrderManagementSystem.postman_collection from the cloned demo.

Load Balancing:

  1. In a new window, run up a second account-server using HTTP port 2223:
    • java -jar target/microservices-demo-1.2.0.RELEASE.jar accounts 2223
  2. Allow it to register itself
  3. Kill the first account-server and see the web-server switch to using the new account-server - no loss of service.

order-management-system's People

Contributors

mani-sreekakula avatar msreekak avatar

Watchers

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