Skip to content

BafS/distributed-architecture-laboratory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed architecture laboratory

Protocol

  • Timeout: 1 second
  • Communication: Using binary format

Architecture

  • n Services
  • m Linker (public IPs, cannot add new linkers after initialization)
  • k Clients

If a linker, service or client does not reply after the timeout, it is considered as dead.

Launching linkers:

java Linker <linker id>

The linker id is the line number in linker.txt, associating a specific id to a port

Example: java linker 1

Launching Services:

java Service <type> <port>

type: Type of service - "reply" - "time" - "sum"

port: Port of service

Launching clients:

java Client <type> <port>

Same specifics as with services.

NEEDED:

linkers.txt file in the root directory with the following format:

127.0.0.1:9090 127.0.0.1:9091 127.0.0.1:9092 . . . 127.0.0.1:<last_port>

About

Distributed architecture laboratory in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages