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

5
DIS Project – Blackjack DIS Project – Blackjack Membership and job distribution Membership and job distribution R92725001 R92725001 陳陳陳 陳陳陳 client, game process client, game process R92725020 R92725020 陳陳 陳陳 server, game UI server, game UI R92725048 R92725048 陳陳陳 陳陳陳 DB communicate DB communicate

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

Page 1: DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game process –R92725020 凌宇 server, game UI –R92725048 謝昇穎 DB communicate.

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

Page 2: DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game process –R92725020 凌宇 server, game UI –R92725048 謝昇穎 DB 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

Page 3: DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game process –R92725020 凌宇 server, game UI –R92725048 謝昇穎 DB communicate.

2004年1月15日

頁面 1

System architecture

coordinatorPrimary server

Backup server

Primary DB

Backup DB

consensus

Page 4: DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game process –R92725020 凌宇 server, game UI –R92725048 謝昇穎 DB communicate.

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

Page 5: DIS Project – Blackjack Membership and job distribution –R92725001 陳冠宇 client, game process –R92725020 凌宇 server, game UI –R92725048 謝昇穎 DB communicate.

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