[db tech showcase Tokyo 2018] Azure Cosmos DB Technical Deep Dive ~グローバル分散型マルチ モデル データベース サービスを使いこなそう~
https://satonaoki.wordpress.com/2018/09/21/dbts2018-azure-cosmos-db/
db tech showcase Tokyo 2018 (2018/09/19-21)
https://www.db-tech-showcase.com/dbts/tokyo
23. Jet.com 在庫処理システム「Panther」
Event streams
(CosmosDB)
Raw sellable
inventory
(Kafka)
Commands
(Kafka)
Process command
Events
(Kafka)
Change Feed
Snapshot event
stream
Map raw sellable
inventory
Process command
(reservations only)
Commands
(HTTP)
Customer
front-end
checkout
Event stream
snapshots
(CosmosDB)
Inventory & order
updates (Kafka)
Marts
(Walmart.com,
Jet.com)
Filter available
inventory per mart
External to
Panther system
Communication
channel
Panther μs
Data
store
Map msg to
command
https://satonaoki.wordpress.com/2018/05/18/
azure-cosmos-db-customer-profile-jet-com/
51. パーティション
…
パーティション 1 パーティション 2 パーティション n
実際のストレージ、スループットのニーズを基にした少ないパーティション数
(低い TCO でスケーラビリティを実現)
ハッシュ (ユーザー ID)
ハッシュ値の範囲にわたる疑似ランダムなデータ分散
Andrew
Mike
…
Bob
Dharma
Shireesh
Karthik
Rimma
Alice
Carol
…
77. JSON ドキュメントのインデックス作成
Athens
locations headquarter exports
0
country city
Germany Bonn
revenue
200
0 1
citycity
Berlin
Italy
dealers
0
name
Hans
locations headquarter exports
0
country city
Germany Berlin
1
country city
France Paris
0 1
city
Athens
city
Moscow
Belgium