Skip to content

lottejd/DISYSMP3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISYSMP3

How to run

  • start 1 or more Servers up to 10 from /Server go run .
  • start 1 front end from /FrontEnd go run .
  • start 1 or more clients from /Client go run .
    • client CLI commands
    • "bid" which prompts for an integer
    • "result" prints the highest bid and bidder

Be aware

  • The majority of replicas alive need to agree on the same bid for the "result" method to work as intended. If not result will reply "no accepted bid"
  • The auction ends 3 minutes after the front end starts
  • restarting the front end restarts the auction timer, but doesn't clear the logs
  • previous logs will be included when front end starts, so delete these before starting a new auction

Proto commands

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative Auction/Auction.proto

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative Replica/Replica.proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages