of 31 /31
TripleS Shared Session S ystem

TripleS deview

Embed Size (px)

Citation preview

Page 1: TripleS deview

TripleSShared Session System

Page 2: TripleS deview

TripleS

Share

Session(Cookie)

Simple concept

Page 3: TripleS deview

Cookie

먼저 우리가 Browser 를 이용하면서 만들어지는

http

Page 4: TripleS deview
Page 5: TripleS deview

Browser Cookie Size?

Chrom (버전 21.0.1180.89) Test Results10:44:5.413: Guessing Max Cookie Count Per Domain: 18010:44:5.414: Guessing Max Cookie Size Per Cookie: 4096 bytes10:44:5.414: Guessing Max Cookie Size Per Domain: NA

Fire Fox (15.0.1) Test Results10:47:33.415: Guessing Max Cookie Count Per Domain: 15010:47:33.415: Guessing Max Cookie Size Per Cookie: 4097 characters10:47:33.416: Guessing Max Cookie Size Per Domain: NA

IE (8) Test Results10:48:38.243: Guessing Max Cookie Count Per Domain: 5010:48:38.244: Guessing Max Cookie Size Per Cookie: 5117 bytes10:48:38.245: Guessing Max Cookie Size Per Domain: Between 10234 and 15350 bytes

Page 6: TripleS deview

BrowserBrowserBrowserBrowser Max CookiesMax CookiesMax CookiesMax Cookies Max Size Per CookieMax Size Per CookieMax Size Per CookieMax Size Per Cookie Max Size Per Max Size Per Max Size Per Max Size Per DomainDomainDomainDomainChromeChromeChromeChrome

Chrome 470 4096 bytes4096 bytes4096 bytes4096 bytes NA

Chrome 5Chrome 6Chrome 7Chrome 8180

Chrome 9Chrome 10Chrome 11Chrome 12Chrome 13Chrome 14Chrome 15FireFoxFireFoxFireFoxFireFox FireFox 2

50 4097 characters4097 characters4097 characters4097 charactersFireFox 3FireFox 4FireFox 5FireFox 6FireFox 7IEIEIEIE IE 650

4096 characters4096 characters4096 characters4096 characters 4096 charactersIE 7 4095 characters4095 characters4095 characters4095 charactersIE 8 5117 characters5117 characters5117 characters5117 characters 10234 charactersIE 9 5117 characters5117 characters5117 characters5117 charactersOperaOperaOperaOpera Opera 830 4096 bytes4096 bytes4096 bytes4096 bytes 4096 bytesOpera 9Opera 10Opera 11 60Safari Safari Safari Safari Safari 3 4096 bytes4096 bytes4096 bytes4096 bytesSafari 4Safari 5 600 4096 bytes

Page 7: TripleS deview

Naver Cookie

naver.comCookie size 1k

mail.naver.com2k

cafe.naver.com2k

shopping.naver.com2k

kin.naver.com1k

blog.naver.com3k

cookie 크기는 예임

3 K

3 K

3 K

2 K

4 K

Page 8: TripleS deview

TripleS & Cookie

Page 9: TripleS deview

Cookie TripleSpath service code

name key

value value

expires ttl

Cookie formatSet-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; TripleS Data formatUID(Session key)- Service Code - Key - Value - TTL

Page 10: TripleS deview

Client Cookie

Server Cookie

Page 11: TripleS deview

Client Cookie

Server Cookie

Page 12: TripleS deview

Big Cookie

Network

Page 13: TripleS deview

Mobile WEB

Mobile APP

Page 14: TripleS deview

Heavy data

Network Traffic

Page 15: TripleS deview

Network Traffic Heavy Data

0.002000.004000.006000.008000.0010000.0012000.00KT 3GSKT 3GWiFiSKT LTE Galaxy

단위 : ms KT 3G SKT 3G WiFi SKT LTE평균 Response Time(ms) 5300.52 5529.89 3178.72 3127.11

Page 16: TripleS deview

Heavy DataNetwork Traffic

데이터 전송시interval time(s)

Page 17: TripleS deview

Solution?

Page 18: TripleS deview

focus

Client Cookie

down sizing

Server Cookie

Limited range

Page 19: TripleS deview

Concept of TripleS

Server Cookie

Limited range

INTERNET

Page 20: TripleS deview

A(30B)A(30B),

C(2K)

A(30B),B(1K),C(2K)

A(30B) A,B,C,D(2K)A,B,C,D(2K)

Client Cookie

down sizing

A(30B),

C(2K)

A(30B),B(1K),C(2K)

A,B,C,D(2K)A,B,C,D(2K)

INTERNET

Concept of TripleS

A(30B),

C(2K)

A(30B),B(1K),C(2K)

A,B,C,D(2K)A,B,C,D(2K)

Page 21: TripleS deview

Naver Cookie

naver.comCookie size 1k

mail.naver.com2k

cafe.naver.com2k

shopping.naver.com2k

kin.naver.com1k

blog.naver.com3k

cookie 크기는 예임

3 K

3 K

3 K

2 K

4 K

30B

30B

30B

30B

30B

Client Cookie Server Cookie

Page 22: TripleS deview

서비스 서버 구성

TripleS Architecture

INTERNET

TripleS

TripleS Library

TripleSLibraryTripleS Library

TripleS Storage

TripleS ZK

Page 23: TripleS deview

TripleS Client Library TripleS Storage TripleS

ZooKeeper

Page 24: TripleS deview

TripleSTripleS

nBasenBase

CubridCubrid

Page 25: TripleS deview

nBase

05000100001500020000

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29TOTAL TPS

Node Scalability (20M rec)

3nodes6nodes9nodes

0200040006000800010000120001400016000

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29TOTAL TPS

Real Scalability

20M/3node40M/6node60M/9node

Container ServerContainer Server

Container ServerContainer Server management server

Distribution Layer

Storage(RDB)

Data 분산저장 (3copy)Scale out & 가용성

Page 26: TripleS deview

focus

Client Cookie down sizing

Server CookieLimited range

Share Data

Page 27: TripleS deview

B 서비스 서버 구성

TripleS Architecture

INTERNET

TripleSTripleS Library TripleS Library

TripleS Library

TripleS StorageTripleS ZK

A 서비스 서버 구성TripleS Library

TripleS LibraryTripleS Library

Page 28: TripleS deview

TripleS Performance

Page 29: TripleS deview

TripleS

Mobile 웹/앱 내검색어

PC 통합검색 (최근/내 검색어)

검색어 하이라이팅

Page 30: TripleS deview
Page 31: TripleS deview