Coder Social home page Coder Social logo

stockmarket-application's Introduction

Asterix and Double Trouble

Goals

The Gauls have really taken to stock trading and trading has become their village pass time. To ensure high performance and tolerance to failures, they have decided to adopt modern design practices.

  1. The stock bazaar application consists of three microservices: a front-end service, a catalog service, and an order service.

  2. The front-end service exposes the following REST APIs as they were defined in lab2:

    • GET /stocks/<stock_name>
    • POST /orders

    In addition, the front-end service will provide a new REST API that allows clients to query existing orders:

    • GET /orders/<order_number>

      This API returns a JSON reply with a top-level data object with the four fields: number, name, type, and quantity. If the order number doesn't exist, a JSON reply with a top-level error object should be returned. The error object should contain two fields: code and message

  3. The interfaces used between the microservices. Each microservice handle requests concurrently.

  4. Added some variety to the stock offering by initializing your catalog with at least 10 different stocks. Each stock should have an initial volume of 100.

  5. The client first queries the front-end service with a random stock, then it will make a follow-up trade request with probability p (make p an adjustable variable). I decide whether the stock query request and the trade request use the same connection. The client will repeat the aforementioned steps for a number of iterations, and record the order number and order information if a trade request was successful. Before exiting, the client will retrieve the order information of each order that was made using the order query request, and check whether the server reply matches the locally stored order information.

stockmarket-application's People

Contributors

pranavjain23 avatar

Watchers

 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.