Giter Site home page Giter Site logo

multipaxos-tickets-buying-app's Introduction

Essentially used for non - centralization of the tickets between the kiosks. There is a leader, chosen by default as C3 at first. This code represents the implementation of the Multipaxos using python and socket programming coded for Ticket buying kiosks.

Inorder to run the code:

Open 3 terminals and navigate it to the path where your python files are stored, then run the command: python3 tickets.py C1, C2 or C3.All the ip address for these clients are stored in the config.json file. And the config_fr_euca.json file has the ip addresses corresponding to the private instances which we created for our Eucalyptus environment. ( config_fr_euca.json and tickets_fr_euca.py is used instead of config.json and tickets.py, if you are running the code for Eucalptus environment). Once the system starts running, type the command: Buy 20: inorder to buy the 20 tickets from the kiosk. show : This command will be used to show the log of the each kiosk, which should correspond to that of the leader log, because as we know, leader is always true. Warning message will be printed saying "not enoigh tickets" if we try to buy or exceed the limit of buying 1000 tickets from the central server. Or if the tickets in the server goes empty.

multipaxos-tickets-buying-app's People

Contributors

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