https://github.com/bafs/distributed-architecture-laboratory
Distributed architecture laboratory in Java
https://github.com/bafs/distributed-architecture-laboratory
Last synced: over 1 year ago
JSON representation
Distributed architecture laboratory in Java
- Host: GitHub
- URL: https://github.com/bafs/distributed-architecture-laboratory
- Owner: BafS
- Created: 2016-11-15T16:36:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-29T12:51:39.000Z (over 9 years ago)
- Last Synced: 2025-01-14T02:35:08.782Z (over 1 year ago)
- Language: Java
- Size: 92.8 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 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 `
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: Type of service
- "reply"
- "time"
- "sum"
port: Port of service
# Launching clients:
`java Client `
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:``