{"id":2066,"date":"2015-11-27T00:00:34","date_gmt":"2015-11-26T15:00:34","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=2066"},"modified":"2015-11-27T13:20:16","modified_gmt":"2015-11-27T04:20:16","slug":"aws_amazon_dynamodb_key_index","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/aws\/aws_amazon_dynamodb_key_index.html","title":{"rendered":"DynamoDB\u306e\u30ad\u30fc\u30fb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u95a2\u3059\u308b\u307e\u3068\u3081 \u301c\u30cf\u30c3\u30b7\u30e5\u30ad\u30fc(\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc)\u3001\u30ec\u30f3\u30b8\u30ad\u30fc(\u30bd\u30fc\u30c8\u30ad\u30fc)\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u3001\u30ed\u30fc\u30ab\u30eb\u30bb\u30ab\u30f3\u30c0\u30ea\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30bb\u30ab\u30f3\u30c0\u30ea\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8aac\u660e\u3001\u9055\u3044\u3001\u4f7f\u3044\u65b9\u3001\u4f7f\u7528\u65b9\u6cd5\u3001\u4f8b\u984c\u3001\u30b5\u30f3\u30d7\u30eb\u301c"},"content":{"rendered":"
AWS Lambda\u3001Amazon API Gateway\u306b\u7d9a\u304dAWS IOT\u304c\u767a\u8868\u3055\u308c\u6642\u4ee3\u306f\u30e2\u30d0\u30a4\u30eb\u3068\u30af\u30e9\u30a6\u30c9\u304c\u878d\u5408\u3057\u305fIOT\u3078\u3068\u30c8\u30ec\u30f3\u30c9\u304c\u5411\u304b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u660e\u78ba\u306b\u306a\u3063\u3066\u6765\u307e\u3057\u305f\u3002
\n\u3053\u306e\u3088\u3046\u306a\u72b6\u6cc1\u4e0b\u3067\u4eca\u307e\u3067\u3088\u308a\u3082\u307e\u3057\u3066\u91cd\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u304c\u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u304b\u3089\u9001\u3089\u308c\u3066\u304f\u308b\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u9ad8\u901f\u306b\u4fdd\u5b58\u3057\u5206\u6790\u3059\u308bKVS(\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30b9\u30c8\u30a2)\u578bNoSQL\u3067\u3059\u3002<\/p>\n
AWS\u306b\u304a\u3044\u3066\u306f\u3059\u3067\u306b\u30c1\u30e3\u30c3\u30c8\u30b7\u30b9\u30c6\u30e0\u3084\u30bd\u30fc\u30b7\u30e3\u30eb\u30b2\u30fc\u30e0\u306a\u3069\u3067\u5e45\u5e83\u304f\u6d3b\u7528\u3055\u308c\u3066\u3044\u308bDynamoDB\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
DynamoDB\u306f\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u517c\u306d\u5099\u3048\u3066\u3044\u308b\u305f\u3081\u6628\u4eca\u306eIT\u30c8\u30ec\u30f3\u30c9\u306b\u5bfe\u5fdc\u3057\u3084\u3059\u3044\u3067\u3059\u304c\u3001\u691c\u7d22\u306b\u4f7f\u7528\u3059\u308b\u30ad\u30fc\u306b\u3064\u3044\u3066\u306f\u72ec\u7279\u306e\u8003\u3048\u65b9\u30fb\u8a2d\u8a08\u304c\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u4f7f\u7528\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u306f\u4e00\u7656\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u4eca\u56de\u306fAWS\u306eKVS\u578bNoSQL\u3068\u3057\u3066\u5e83\u304f\u6d3b\u7528\u3055\u308c\u3066\u3044\u308bDynamoDB\u306e\u30ad\u30fc\u30fb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u3064\u3044\u3066\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\u6700\u8fd1\u30c8\u30ec\u30f3\u30c9\u306eIOT\u3067\u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u304b\u3089\u30c7\u30fc\u30bf\u3092AWS\u306b\u9001\u4fe1\u3057\u305f\u5834\u5408\u306b\u60f3\u5b9a\u3055\u308c\u308b\u4f8b\u3067DynamoDB\u306e\u30ad\u30fc\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n
\u4f8b\u306e\u524d\u63d0\uff1a\u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c1\u79d2\u3054\u3068\u306b\u7aef\u672b\u306e\u4f4d\u7f6e\u60c5\u5831\u3068\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057DynamoDB\u306b\u4fdd\u5b58\u3059\u308b<\/p>\n
DeviceID\uff1a \u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308bID
\nTimeStamp\uff1a \u30c7\u30fc\u30bf\u9001\u4fe1\u3092\u884c\u3063\u305f\u969b\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7(DeviceID\u306b\u5bfe\u3057\u3066\u4e00\u610f\u6027\u304c\u3042\u308b\u524d\u63d0)
\nGPSInfo\uff1a \u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u306e\u4f4d\u7f6e\u60c5\u5831
\nTemperature\uff1a \u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u306e\u30bb\u30f3\u30bf\u30fc\u3067\u53d6\u5f97\u3057\u305f\u6e29\u5ea6
\nItemID\uff1a Item\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308bID(\u5168\u3066\u306e\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u4e00\u610f\u6027\u304c\u3042\u308b\u524d\u63d0)<\/p>\n
DeviceID<\/span><\/td>\n | TimeStamp<\/span><\/td>\n | GPSInfo<\/span><\/td>\n | Temperature<\/span><\/td>\n | ItemID<\/span><\/td>\n<\/tr>\n123456789012345<\/span><\/td>\n | 1448550000<\/span><\/td>\n | ‘{“lat”: “35.681036”,”lng”: “139.767713”}’<\/span><\/td>\n | 10.00<\/span><\/td>\n | 1<\/span><\/td>\n<\/tr>\n | 123456789012345<\/span><\/td>\n | 1448550001<\/span><\/td>\n | ‘{“lat”: “35.681037”,”lng”: “139.767714”}’<\/span><\/td>\n | 10.01<\/span><\/td>\n<\/td>\n | 2<\/span><\/td>\n<\/tr>\n | 123456789012345<\/span><\/td>\n | 1448550002<\/span><\/td>\n | ‘{“lat”: “35.681035”,”lng”: “139.767712”}’<\/span><\/td>\n | 10.02<\/span><\/td>\n<\/td>\n | 3<\/span><\/td>\n<\/tr>\n | 123456789012350<\/span><\/td>\n | 1448550000<\/span><\/td>\n | ‘{“lat”: “141.354793”,”lng”: “43.061421”}’<\/span><\/td>\n | 0.00<\/span><\/td>\n<\/td>\n | 4<\/span><\/td>\n<\/tr>\n | 123456789012350<\/span><\/td>\n | 1448550001<\/span><\/td>\n | ‘{“lat”: “141.354794”,”lng”: “43.061422”}’<\/span><\/td>\n | 0.01<\/span><\/td>\n<\/td>\n | 5<\/span><\/td>\n<\/tr>\n | 123456789012350<\/span><\/td>\n | 1448550002<\/span><\/td>\n | ‘{“lat”: “141.354792”,”lng”: “43.061420”}’<\/span><\/td>\n | 0.02<\/span><\/td>\n<\/td>\n | 6<\/span><\/td>\n<\/tr>\n | 123456789012355<\/span><\/td>\n | 1448550000<\/span><\/td>\n | ‘{“lat”: “127.679318”,”lng”: “26.214472”}’<\/span><\/td>\n | 15.00<\/span><\/td>\n<\/td>\n | 7<\/span><\/td>\n<\/tr>\n | 123456789012355<\/span><\/td>\n | 1448550001<\/span><\/td>\n | ‘{“lat”: “127.679319”,”lng”: “26.214473”}’<\/span><\/td>\n | 15.01<\/span><\/td>\n<\/td>\n | 8<\/span><\/td>\n<\/tr>\n | 123456789012355<\/span><\/td>\n | 1448550002<\/span><\/td>\n | ‘{“lat”: “127.679317”,”lng”: “26.214471”}’<\/span><\/td>\n | 15.02<\/span><\/td>\n<\/td>\n | 9<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n | \u6700\u8fd1\u306eDynamoDB\u306e\u30ad\u30fc\u540d\u79f0\u306e\u547c\u3073\u65b9\u306e\u5909\u5316\u306b\u3064\u3044\u3066<\/h3>\nDynamoDB\u3067\u306f\u4ee5\u524d\u306f\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u3092\u69cb\u6210\u3059\u308b\u30ad\u30fc\u3092\u30cf\u30c3\u30b7\u30e5\u30ad\u30fc\u3001\u30ec\u30f3\u30b8\u30ad\u30fc\u3068\u547c\u3093\u3067\u3044\u307e\u3057\u305f\u3002 \u30cf\u30c3\u30b7\u30e5\u30ad\u30fc\u2192\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc<\/strong> \u203bAWS CLI\u3084API\u306a\u3069\u3067\u306e\u30d1\u30e9\u30e1\u30bf\u3001\u8fd4\u5374\u5024\u306e\u4ed5\u69d8\u306f\u5f93\u6765\u901a\u308a\u30cf\u30c3\u30b7\u30e5\u30ad\u30fc(\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc)\u306fHASH, \u30ec\u30f3\u30b8\u30ad\u30fc(\u30bd\u30fc\u30c8\u30ad\u30fc)\u306fRANGE\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002 DynamoDB\u306e\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u306b\u306f\u4ee5\u4e0b\u306e2\u7a2e\u985e\u306e\u30bf\u30a4\u30d7\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n \u30cf\u30c3\u30b7\u30e5\u30ad\u30fc(\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc)\uff1a \u30cf\u30c3\u30b7\u30e5\u30ad\u30fc(\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc)\u306e\u307f\u3067\u4e00\u610f\u306b\u30c7\u30fc\u30bf\u3092\u7279\u5b9a DynamoDB\u306e\u30ed\u30fc\u30ab\u30eb\u30bb\u30ab\u30f3\u30c0\u30ea\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u4ee5\u4e0b\u306e\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n DynamoDB\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30bb\u30ab\u30f3\u30c0\u30ea\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u4ee5\u4e0b\u306e\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n AWS Lambda\u3001Amazon API Gateway\u306b\u7d9a\u304dAWS IOT\u304c\u767a\u8868\u3055\u308c\u6642\u4ee3\u306f\u30e2\u30d0\u30a4\u30eb\u3068\u30af\u30e9\u30a6\u30c9\u304c\u878d\u5408\u3057\u305fIOT\u3078\u3068\u30c8\u30ec\u30f3\u30c9\u304c\u5411\u304b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u660e\u78ba\u306b\u306a\u3063\u3066\u6765\u307e\u3057\u305f\u3002 \u3053\u306e\u3088\u3046\u306a\u72b6\u6cc1\u4e0b\u3067\u4eca\u307e\u3067\u3088\u308a\u3082\u307e\u3057\u3066 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3,21],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/2066"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=2066"}],"version-history":[{"count":15,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/2066\/revisions"}],"predecessor-version":[{"id":2081,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/2066\/revisions\/2081"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=2066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=2066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=2066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |