Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Alexa Salon Lab Lesson 1 - DynamoDB-

46e8de7d6e95be6327e8c49bf3b0c028?s=47 chao2suke
September 05, 2018

Alexa Salon Lab Lesson 1 - DynamoDB-

46e8de7d6e95be6327e8c49bf3b0c028?s=128

chao2suke

September 05, 2018
Tweet

Transcript

  1. 1 DynamoDB

  2. 2 DynamoDB ✦ NoSQLܗࣜͷσʔλϕʔεαʔϏε ✦ αʔόʔεϖοΫ΍༰ྔ͸ؾʹ͠ͳͯ͘΋ྑ͍ ʢϚωʔδυαʔϏε) ✦ ӬଓԽαʔϏεͱͯ͠Alexa-SDKʹσϑΥϧτ Ͱૢ࡞API͕͍͍ͭͯΔ

    ✦ ॳ৺ऀ͕Ҿ͔͔ͬΔͷ͸ʮΩʔʯͱʮϢχοτʯ
  3. 3 DynamoDB var alexa = Alexa.handler(event, context); alexa.dynamoDBTableName = 'AlexaUserData_V1';

  4. 4 DynamoDB Alexa.SkillBuilders.standard() .addRequestHandlers(LaunchRequestHandler) .withTableName("AlexaUserData_V2") .withAutoCreateTable(true) .lambda();

  5. 5 DynamoDB handlerInput.attributesManager.setPersistentAttributes(dynamos) ; await handlerInput.attributesManager.savePersistentAttributes();

  6. 6 DynamoDB Ωʔ / ΠϯσοΫεͷ͍͍ͭͯΔItem͕ݕࡧͰ͖Δ

  7. 7 DynamoDB ϓϥΠϚϦΩʔ Hash Key Range Key Hash Key OR

  8. 8 DynamoDB ηΧϯμϦΠϯσοΫε Hash Key Range Key Hash Key Local

    Secondary Index Range Key Global Secondary Index
  9. 9 DynamoDB ΩϟύγςΟʔϢχοτ

  10. 10 DynamoDB ΩϟύγςΟʔϢχοτ WCU (Write Capacity Unit) RCU (Read Capacity

    Unit)
  11. 11 DynamoDB ΩϟύγςΟʔϢχοτ WCU (Write Capacity Unit) RCU (Read Capacity

    Unit) 1 4KB 1 2 1 1KB 1
  12. 12 DynamoDB DynamoDBͷಡΈࠐΈ GetItem BatchGetItem Query Scan

  13. 13 DynamoDB

  14. 14 DynamoDB ಡΈࠐΈ༰ྔ +

  15. 15 DynamoDB