Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 1.04 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.04 KB

Distributed systems - Course work

This is course work for course 521266S Distributed Systems spring 2012.

Use jsduck to generate documentation.

  1. Install node
  2. Install npm
  3. npm install git://github.com/lanttu/DS-coursework.git

Structure

<--->    Event
<- - ->  WebScoket

Host

Game <---> Player <---> BrowserEndpoint <- - -> Browser

Client

Game <---> RemotePlayer <- - -> PlayerClient <---> BrowserEndpoint <- - -> Browser

Extra scores

  1. Client UIs do not use polling to implement notifys (reverse AJAX, HTML5, etc.)
    • Using socket.io
  2. Communication between peers is encrypted
    • Using https
  3. Fault tolerance: restarting the browser or web server is handled gracefully, e.g. state is recovered or other peers notify users accordingly (+1)
    • Restartarting browser or client node is handled gracefully
  4. No hard-coded peer list for discovery or messaging
    • Server address can be manually set
  5. Provide a fully functional installer (e.g. RPM, VM, batch file...)