Giter Club home page Giter Club logo

banking-syatem's Introduction

Run coordinator first 
eg: python coordinator.py 8888

Then run servers
eg: python server.py localhost:8888 8003 server3 server3.log
it will create a log named server3.log in the same directory

the port numbers should be different for all 3 servers
logs should be named different as well
eg
server1 : python server.py localhost:8888 8001 server1 server1.log
server2 : python server.py localhost:8888 8002 server2 server2.log
server3 : python server.py localhost:8888 8003 server3 server3.log

then run any number of clients and use menu to make queries
eg: python client.py localhost:8888 client


to check resync open log on any server and remove some lines 
eg:
1 101 40
2 101 10
3 101 10
4 101 20
5 101 30
6 103 40
7 103 40
8 103 40
9 103 40
10 101 30 

to 

1 101 40
2 101 10
3 101 10
4 101 20


it is important to keep a blank line at the end of the log or it wont work properly
eg
'''1 101 40
2 101 10
3 101 10
4 101 20
5 101 30
6 103 40
7 103 40
8 103 40
9 103 40
10 101 30

'''

save log after changing and on the same server terminal press Ctrl+C
Then reload the log it should be updated

banking-syatem's People

Contributors

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