Slide 1

Slide 1 text

THE THEORY OF DATA MODELING TO BECOME THE FRIEND OF DYNAMODB MASASHI TERUI @ JAWS DAYS 2018 JAWS-UG OSAKA RE:CAP&SERVERLESS

Slide 2

Slide 2 text

WHY IS THE BUSINESS APPLICATION DIFFICULT TO BECOME SERVERLESS? • Stateful, Persistent • Difficult to parallelize, concurrent and asynchronous

Slide 3

Slide 3 text

WHY IS THE BUSINESS APPLICATION DIFFICULT TO BECOME SERVERLESS? • Stateful, Persistent • Difficult to parallelize, concurrent and asynchronous NO!!

Slide 4

Slide 4 text

DATA MODELING

Slide 5

Slide 5 text

NOSQL MATCHES BETTER THAN RDB • Does RDB’s connection model not match serverless? • Yes, but it is not a main issue • The data model is a main issue • Does your application data match NoSQL(DynamoDB)? • In order to judge it, you need to know general database theory • The people who knows RDB also knows NoSQL

Slide 6

Slide 6 text

DATA PLACEMENT Distributed by Partition Key
 and Indexed(B+tree) by Sort Key, LSI GSI is a projection of sorted(indexed) data

Slide 7

Slide 7 text

B+TREE INDEX B-treeͳͷ͔B+treeͳͷ͔͸ެද͞Ε͍ͯͳ͍͚Ͳ Range Keyͱ͔ݺͿ͘Β͍͔ͩΒ…Ͷʁ

Slide 8

Slide 8 text

TARGETING QUERY B+treeͷߏ଄Λ஌͍ͬͯΕ͹ ૊Έ߹ΘͤΩʔͷΠϯσοΫε͕ແͯ͘΋ ͜͏΍Ε͹ྑ͍͜ͱ͕෼͔Δ

Slide 9

Slide 9 text

ACID VS BASE? • It is not antinomy • Simply relationships can be consistent with denormalization • Discard the strong consistency 
 for the search queries • It is similar to the RDB replicas • It is difficult to replace the RDB master

Slide 10

Slide 10 text

SUMMARY

Slide 11

Slide 11 text

“DATA MODEL IS THE MAIN ISSUE” THANKS!! “NEED TO KNOW GENERAL DATABASE THEORY” “LET'S EXPAND SERVERLESS WORLD”