Code Monkey home page Code Monkey logo

fa19-281-pandavas's Introduction

BookMovie

BookMovie is a web interface for booking movies. It uses various microservices to handle different requests.

Team Pandavas

Team Project for CMPE-281 Professor Paul Nguyen

Team Members

  1. Priyam Vaidya
  2. Jay Pathak
  3. Mihir Patel
  4. Jainish Parikh
  5. Prachal Patel

Architecture

Design Summary

User Layer

The user layer handles the client side of the system. This system is deployed on Google Cloud Platform. It uses React framework for frontend and makes api calls.

API Gateway layer

Kong API Gateway handles the requests coming from the user interface and it works in DBless mode. It is responsible for routing and calling respective microservices. It is deployed on Google Cloud Platform.

API layer

The api layer has 5 seperate microservices which are implemented as follows

1. TheaterAPI - Mihir Patel

Used for Theater registration and deregistration from booking system.

2. MovieAPI - Prachal Patel

Used for adding new/active movies and removing existing/inactive movies from the system.

3. UserAPI - Jainish Parikh

Used for registartion and deregistration of users in booking system.

4. MailAPI - Jay Pathak

Used for sending acknoledgement of booking confirmations via Email and Text.

5. ShowAPI - Priyam Viadya

Used for managing number of seats and users in a particular show while booking.

Each microservice has its individual classic laodbalancer connected to an autoscaling group.

Database Layer

Each microservice uses a sharded mongoDB cluster. Each cluster contains following members:

  • 1 Query Router
  • 2 Config Servers
  • 2 Shards each having a Replica Set which consists of 3 mongoDB instances

AKF Scaling Cube:

X-axis Scaling

To achieve x-axis scaling we have dockerized GO API and deployed it to EC2 instance which runs behind a Load Balancer on AWS.

Y-axis Scaling

To achieve y-axis scaling we have used Service Oriented Architecture by dividing business logic into different microservices namely :

  • UserAPI
  • TheaterAPI
  • MovieAPI
  • ShowAPI
  • MailAPI

Z-axis Scaling

To achieve z-axis scaling we have used MongoDB sharded cluster which has been deployed on AWS. MongoDB sharded cluster contains 1 Mongo Query Router, 2 config servers, 2 sharded replica sets.

References

fa19-281-pandavas's People

Contributors

jpathak6732 avatar jainishsjsu avatar priyam304 avatar mihirpatelsjsu avatar prachal-patel avatar paulnguyen 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.