DB cache 세팅하기
넷텐션
DB Cache를 왜 쓰는가
• DB 과부하 예방
• 서버 코딩 쉬워짐
DB 테이블 구조
Character

OwnerAccount
Name
UUID

필수 필드: RootUUID, UUID, OwnerUUID
DB cache system에서 내부 용도로 다룸

Item

RootUUID
UUID
OwnerUUID
Type
• UUID 필드
Character

OwnerAccount
Name
UUID

Item

RootUUID
UUID
OwnerUUID
Type
이제 자유롭게 정의하자!
아이템

친구
캐릭터
업적
소유 집

배치된 가구
DB cache 서버와 클라이언트
• DB cache 클라이언트
– 유저가 실질적으로 사용
– data 접근 API
– 각 게임 서버 노드
= DB cache client

• DB cache 서버
– 각 DB cache의 활동을
중재
DB cache 서버, 클라 시작
CDbCacheClient2
static CDbCacheClient2.New
CDbCacheClient2.Connect
DB cache 서버에의 연결

CDbCacheServer2
OnJoinDbCacheServerComplete
이벤트

static CDbCacheServer2.New
CDbCacheServer2.Start
생성과 시작

DB

Social game programming footage 6 setting up db cache system