DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game...

Post on 17-Jan-2016

251 views 0 download

Transcript of DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game...

DIS Project – BlackjackDIS Project – Blackjack

Membership and job distributionMembership and job distribution

– R92725001 R92725001 陳冠宇陳冠宇 client, game processclient, game process

– R92725020R92725020 凌宇凌宇 server, game UIserver, game UI

– R92725048 R92725048 謝昇穎謝昇穎 DB communicateDB communicate

IntroductionIntroduction

assign servers (primary and backup)assign servers (primary and backup) login systemlogin system group membership (create or join)group membership (create or join) start poker gamestart poker game

– leader election to decide a coordinatorleader election to decide a coordinator– a round gamea round game– one by oneone by one

logout systemlogout system exitexit

2004年1月15日

頁面 1

System architecture

coordinatorPrimary server

Backup server

Primary DB

Backup DB

consensus

Fault tolerantFault tolerant

About architectureAbout architecture– DBDB

use primary and backupuse primary and backup

– ServerServer primary and backup for one node or groupprimary and backup for one node or group

– scalablescalable

the server can be assignedthe server can be assigned

About game processAbout game process– allows pure player crash or disconnect, game continueallows pure player crash or disconnect, game continue– if coordinator crash, the game overif coordinator crash, the game over

Key issueKey issue

Group consistencyGroup consistency– card viewcard view– player stateplayer state

Error detectionError detection– disconnect detectdisconnect detect– how oftenhow often

Our solutionOur solution– Java RMI : event drivenJava RMI : event driven– MultithreadMultithread