{"id":4019,"date":"2025-10-28T17:27:37","date_gmt":"2025-10-28T09:27:37","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=4019"},"modified":"2025-10-28T17:27:37","modified_gmt":"2025-10-28T09:27:37","slug":"how-to-use-the-aws-redis-service","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/ja\/aws-redis-\u30b5\u30fc\u30d3\u30b9\u306e\u4f7f\u3044\u65b9\/","title":{"rendered":"AWS Redis\u30b5\u30fc\u30d3\u30b9\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p data-start=\"108\" data-end=\"210\">\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u30c7\u30fc\u30bf\u3092\u8fc5\u901f\u306b\u4fdd\u5b58\u3057\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3088\u308a\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306f\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u5bb9\u91cf\u3092\u62e1\u5f35\u3057\u3001\u4e88\u671f\u305b\u306c\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u6025\u5897\u3092\u7de9\u548c\u3057\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u30c7\u30fc\u30bf\u306e\u63d0\u4f9b\u3092\u7d99\u7d9a\u3067\u304d\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u53ef\u7528\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p data-start=\"212\" data-end=\"234\">\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4e00\u822c\u7684\u306a\u4f7f\u7528\u30b7\u30ca\u30ea\u30aa\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul data-start=\"235\" data-end=\"303\">\n<li data-start=\"235\" data-end=\"264\">\n<p data-start=\"237\" data-end=\"264\">\u9ad8\u5ea6\u306b\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a Web \u30b5\u30fc\u30d3\u30b9\u3067\u30e6\u30fc\u30b6\u30fc \u30bb\u30c3\u30b7\u30e7\u30f3 \u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u304a\u3088\u3073\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li data-start=\"265\" data-end=\"303\">\n<p data-start=\"267\" data-end=\"303\">\u30af\u30a8\u30ea\u3092\u9ad8\u901f\u5316\u3057\u3001\u30d7\u30e9\u30a4\u30de\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u904e\u8ca0\u8377\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u307e\u305f\u306f\u975e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u524d\u306b\u30ad\u30e3\u30c3\u30b7\u30e5 \u30ec\u30a4\u30e4\u30fc\u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"305\" data-end=\"371\">Redis \u306f\u3001\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u304a\u308a\u3001AWS \u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u304a\u3088\u3073\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u3066\u3044\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e NoSQL \u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<\/p>\n<p data-start=\"373\" data-end=\"450\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Redis \u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3001AWS \u3067\u306e ElastiCache Redis \u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4f4e\u30ec\u30a4\u30c6\u30f3\u30b7\u30fc\u3068\u9ad8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6d3b\u7528\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4 data-start=\"457\" data-end=\"472\">Redis \u3068\u306f\u4f55\u3067\u3059\u304b?<\/h4>\n<p data-start=\"474\" data-end=\"573\">Redis\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30e1\u30e2\u30ea\u30c7\u30fc\u30bf\u69cb\u9020\u30ad\u30e3\u30c3\u30b7\u30e5\u304a\u3088\u3073\u30b9\u30c8\u30ec\u30fc\u30b8\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001Redis\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u3088\u3063\u3066\u7d99\u7d9a\u7684\u306b\u958b\u767a\u30fb\u4fdd\u5b88\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u9ad8\u901f\u30a4\u30f3\u30e1\u30e2\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002Redis\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e21\u65b9\u306e\u6a5f\u80fd\u3092\u6301\u3064\u3068\u3044\u3046\u70b9\u3067\u30e6\u30cb\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p data-start=\"575\" data-end=\"661\">Redis\u306f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3057\u3001\u6c38\u7d9a\u6027\u304c\u5fc5\u8981\u306a\u5834\u5408\u3001\u307e\u305f\u306f\u518d\u8d77\u52d5\u5f8c\u306b\u30ea\u30ab\u30d0\u30ea\u304c\u5fc5\u8981\u306a\u5834\u5408\u306e\u307f\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u3088\u308a\u3001Redis\u306f\u8aad\u307f\u53d6\u308a\u304a\u3088\u3073\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u306b\u304a\u3044\u3066\u30df\u30ea\u79d2\u30ec\u30d9\u30eb\u306e\u30ec\u30a4\u30c6\u30f3\u30b7\u3092\u5b9f\u73fe\u3057\u3001\u591a\u69d8\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3001\u7d44\u307f\u8fbc\u307f\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p data-start=\"663\" data-end=\"747\">\u904b\u7528\u306e\u89b3\u70b9\u304b\u3089\u898b\u308b\u3068\u3001Redis \u306e\u30c7\u30d7\u30ed\u30a4\u3001\u76e3\u8996\u3001\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306f\u56f0\u96e3\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001AWS ElastiCache for Redis \u306a\u3069\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u308c\u3089\u306e\u30bf\u30b9\u30af\u304c\u5927\u5e45\u306b\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4 data-start=\"754\" data-end=\"792\">Amazon ElastiCache for Redis \u3068\u306f\u4f55\u3067\u3059\u304b?<\/h4>\n<p data-start=\"794\" data-end=\"910\">AWS ElastiCache \u306f\u3001Redis \u3068 Memcached \u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30de\u30cd\u30fc\u30b8\u30c9\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002Redis \u5411\u3051\u306b\u306f\u3001ElastiCache \u306f\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u63d0\u4f9b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u9ad8\u6027\u80fd\u306a\u5206\u6563\u578b\u30a4\u30f3\u30e1\u30e2\u30ea\u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u8fc5\u901f\u306b\u30c7\u30d7\u30ed\u30a4\u3001\u7ba1\u7406\u3001\u62e1\u5f35\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"912\" data-end=\"1015\">\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u30de\u30b7\u30f3\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30d1\u30c3\u30c1\u9069\u7528\u3001\u76e3\u8996\u3001\u969c\u5bb3\u5fa9\u65e7\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u3044\u3063\u305f\u904b\u7528\u4e0a\u306e\u8ca0\u62c5\u3092\u5927\u5e45\u306b\u8efd\u6e1b\u3057\u307e\u3059\u3002ElastiCache \u306f\u30cd\u30a4\u30c6\u30a3\u30d6\u306e Redis \u30c7\u30fc\u30bf\u69cb\u9020\u3001API\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u5b8c\u5168\u306b\u4e92\u63db\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u65e2\u5b58\u306e Redis \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b3\u30fc\u30c9\u5909\u66f4\u306a\u3057\u3067\u79fb\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"1017\" data-end=\"1104\">ElastiCache\u306f\u30af\u30e9\u30b9\u30bf\u30fc\u30e2\u30fc\u30c9\u3068\u975e\u30af\u30e9\u30b9\u30bf\u30fc\u30e2\u30fc\u30c9\u306e\u4e21\u65b9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u81ea\u52d5\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u3068\u30af\u30ed\u30b9AZ\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306b\u3088\u308a\u3001\u9ad8\u3044\u53ef\u7528\u6027\u3068\u4fe1\u983c\u6027\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\u30aa\u30f3\u30e9\u30a4\u30f3\u30af\u30e9\u30b9\u30bf\u30fc\u8abf\u6574\u6a5f\u80fd\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u306a\u3057\u3067\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u3067\u30ad\u30e3\u30d1\u30b7\u30c6\u30a3\u3092\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u307e\u305f\u306f\u30b9\u30b1\u30fc\u30eb\u30c0\u30a6\u30f3\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"1106\" data-end=\"1174\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u9762\u3067\u306f\u3001ElastiCache \u306b\u306f VPC \u30b5\u30dd\u30fc\u30c8\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001\u8ee2\u9001\u4e2d\u304a\u3088\u3073\u4fdd\u5b58\u4e2d\u306e\u30c7\u30fc\u30bf\u306e\u6697\u53f7\u5316\u3092\u63d0\u4f9b\u3057\u306a\u304c\u3089\u3001Redis \u306e AUTH \u8a8d\u8a3c\u30e1\u30ab\u30cb\u30ba\u30e0\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4 data-start=\"1181\" data-end=\"1221\">Amazon ElastiCache for Redis \u3092\u4f7f\u3044\u59cb\u3081\u308b\u65b9\u6cd5<\/h4>\n<p>&nbsp;<\/p>\n<h5 data-start=\"1223\" data-end=\"1243\">\u30b9\u30c6\u30c3\u30d71: AWS\u74b0\u5883\u3092\u69cb\u6210\u3059\u308b<\/h5>\n<p data-start=\"1245\" data-end=\"1289\">ElastiCache for Redis \u3092\u4f7f\u7528\u3059\u308b\u524d\u306b\u3001AWS \u74b0\u5883\u3092\u6e96\u5099\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol data-start=\"1291\" data-end=\"1569\">\n<li data-start=\"1291\" data-end=\"1405\">\n<p data-start=\"1294\" data-end=\"1405\"><strong data-start=\"1294\" data-end=\"1307\">EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/strong>\uff1a<br data-start=\"1308\" data-end=\"1311\" \/>\u3053\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u30b5\u30f3\u30d7\u30eb\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u8a2d\u5b9a\u3092\u7c21\u7d20\u5316\u3059\u308b\u305f\u3081\u306b\u3001EC2 \u30af\u30e9\u30b9\u30bf\u30fc\u3068 ElastiCache \u30af\u30e9\u30b9\u30bf\u30fc\u3092\u540c\u3058 VPC \u306b\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u307e\u3059\u3002<br data-start=\"1371\" data-end=\"1374\" \/>\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001AWS \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e EC2 \u4f5c\u6210\u30d7\u30ed\u30bb\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/li>\n<li data-start=\"1407\" data-end=\"1451\">\n<p data-start=\"1410\" data-end=\"1451\"><strong data-start=\"1410\" data-end=\"1435\">EC2\u30d1\u30d6\u30ea\u30c3\u30afIPv4 DNS\u30a2\u30c9\u30ec\u30b9\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/strong>\u3053\u308c\u306f\u3001\u5f8c\u3067\u30b5\u30f3\u30d7\u30eb \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/li>\n<li data-start=\"1453\" data-end=\"1569\">\n<p data-start=\"1456\" data-end=\"1470\"><strong data-start=\"1456\" data-end=\"1467\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u30eb\u30fc\u30eb\u306e\u69cb\u6210<\/strong>\uff1a<\/p>\n<ul data-start=\"1474\" data-end=\"1569\">\n<li data-start=\"1474\" data-end=\"1508\">\n<p data-start=\"1476\" data-end=\"1508\">\u540c\u3058\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30b0\u30eb\u30fc\u30d7\u304b\u3089 Redis \u306e\u30c7\u30d5\u30a9\u30eb\u30c8 \u30dd\u30fc\u30c8 (6379) \u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li data-start=\"1512\" data-end=\"1569\">\n<p data-start=\"1514\" data-end=\"1569\">\u30ed\u30fc\u30ab\u30eb \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u304b\u3089 Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u4efb\u610f\u306e IP (0.0.0.0\/0) \u304b\u3089 TCP \u30dd\u30fc\u30c8 5000 \u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h5 data-start=\"1576\" data-end=\"1614\">\u30b9\u30c6\u30c3\u30d72: AWS ElastiCache Redis\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u4f5c\u6210\u3059\u308b<\/h5>\n<ol data-start=\"1616\" data-end=\"2121\">\n<li data-start=\"1616\" data-end=\"1690\">\n<p data-start=\"1619\" data-end=\"1690\">\u958b\u3051\u308b <strong data-start=\"1622\" data-end=\"1641\">ElastiCache\u30b3\u30f3\u30bd\u30fc\u30eb<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u4eca\u3059\u3050\u59cb\u3081\u308b\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u540c\u3058\u30ea\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/li>\n<li data-start=\"1691\" data-end=\"1765\">\n<p data-start=\"1694\" data-end=\"1765\">\u65b0\u3057\u3044\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001 <strong data-start=\"1703\" data-end=\"1712\">\u30ec\u30c7\u30a3\u30b9<\/strong> \u30a8\u30f3\u30b8\u30f3\u3068\u3057\u3066\u3002\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001 <strong data-start=\"1731\" data-end=\"1747\">\u30af\u30e9\u30b9\u30bf\u30fc\u30e2\u30fc\u30c9<\/strong>(\u6700\u5927 500 \u500b\u306e\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059)\u3002<\/p>\n<\/li>\n<li data-start=\"1766\" data-end=\"1813\">\n<p data-start=\"1769\" data-end=\"1813\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30fc\u30be\u30fc\u30f3\u306e\u5834\u6240\u3092\u9078\u629e\u3057\u3001\u30af\u30e9\u30b9\u30bf\u30fc\u306b\u540d\u524d\u3092\u4ed8\u3051\u307e\u3059 (\u4f8b: <code data-start=\"1790\" data-end=\"1809\">\u30a8\u30e9\u30b9\u30c6\u30a3\u30c3\u30af\u30ad\u30e3\u30c3\u30b7\u30e5-Redis<\/code>\uff09\u3002<\/p>\n<\/li>\n<li data-start=\"1814\" data-end=\"1856\">\n<p data-start=\"1817\" data-end=\"1856\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30bf\u30a4\u30d7\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4f8b: <strong data-start=\"1827\" data-end=\"1845\">\u30ad\u30e3\u30c3\u30b7\u30e5.t2.\u30de\u30a4\u30af\u30ed<\/strong>(\u7121\u6599\u30ec\u30d9\u30eb\u3067\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059)\u3002<\/p>\n<\/li>\n<li data-start=\"1857\" data-end=\"1895\">\n<p data-start=\"1860\" data-end=\"1895\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u69cb\u6210\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u3082\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30a8\u30f3\u30b8\u30f3 \u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u8907\u6570\u306e\u30ec\u30d7\u30ea\u30ab\u3001\u8907\u6570\u306e\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30fc \u30be\u30fc\u30f3\u306a\u3069\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/li>\n<li data-start=\"1896\" data-end=\"1966\">\n<p data-start=\"1899\" data-end=\"1966\">\u5b58\u5728\u3059\u308b <strong data-start=\"1901\" data-end=\"1922\">\u8a73\u7d30\u8a2d\u5b9a<\/strong> VPC \u30d5\u30a9\u30eb\u30c0\u306b\u65b0\u3057\u3044\u30b5\u30d6\u30cd\u30c3\u30c8 \u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3001EC2 \u3068\u540c\u3058 VPC \u3092\u9078\u629e\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li data-start=\"1967\" data-end=\"2006\">\n<p data-start=\"1970\" data-end=\"2006\">\u5b58\u5728\u3059\u308b <strong data-start=\"1972\" data-end=\"1984\">\u5b89\u5168<\/strong> \u30d1\u30cd\u30eb\u3067\u3001EC2 \u3068\u540c\u3058\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30b0\u30eb\u30fc\u30d7\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li data-start=\"2007\" data-end=\"2030\">\n<p data-start=\"2010\" data-end=\"2030\">\u81ea\u52d5\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059 (\u3053\u306e\u4f8b\u3067\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093)\u3002<\/p>\n<\/li>\n<li data-start=\"2031\" data-end=\"2055\">\n<p data-start=\"2034\" data-end=\"2055\">\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059 <strong data-start=\"2042\" data-end=\"2052\">\u4f5c\u6210\u3059\u308b<\/strong>\u3002<\/p>\n<\/li>\n<li data-start=\"2056\" data-end=\"2121\">\n<p data-start=\"2060\" data-end=\"2121\">\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059 <strong data-start=\"2073\" data-end=\"2093\">\u4e3b\u8981\u8a55\u4fa1\u9805\u76ee<\/strong> Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c Redis \u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u3002<\/p>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h5 data-start=\"2128\" data-end=\"2161\">\u30b9\u30c6\u30c3\u30d73: Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3057\u3066Redis\u3092\u4f7f\u7528\u3059\u308b<\/h5>\n<p data-start=\"2163\" data-end=\"2240\">Redis\u306f\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u30b7\u30ca\u30ea\u30aa\u306b\u304a\u3044\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u30bb\u30c3\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3068\u7dad\u6301\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u6b21\u306e\u4f8b\u306f\u3001Flask\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30a2\u3068\u3057\u3066Redis\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol data-start=\"2242\" data-end=\"3016\">\n<li data-start=\"2242\" data-end=\"2589\">\n<p data-start=\"2245\" data-end=\"2276\"><strong data-start=\"2245\" data-end=\"2262\">EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3078\u306eSSH\u63a5\u7d9a<\/strong>\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">sudo yum \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb git -y<br \/>\nsudo yum python3 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb -y<br \/>\nsudo pip3 \u4eee\u60f3\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u30ae\u30c3\u30c8 <span class=\"hljs-built_in\">\u30af\u30ed\u30fc\u30f3<\/span> https:\/\/github.com\/aws-samples\/amazon-elasticache-samples\/<br \/>\n<span class=\"hljs-built_in\">CD<\/span> amazon-elasticache-samples\/\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30a2<br \/>\n\u4eee\u60f3\u74b0\u5883 venv<br \/>\n<span class=\"hljs-built_in\">\u30bd\u30fc\u30b9<\/span> .\/venv\/bin\/activate<br \/>\npip3 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb -r \u8981\u4ef6.txt<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"2591\" data-end=\"2749\">\n<p data-start=\"2594\" data-end=\"2607\"><strong data-start=\"2594\" data-end=\"2605\">\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/strong><\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\"><span class=\"hljs-built_in\">\u8f38\u51fa<\/span> REDIS_URL=<span class=\"hljs-string\">&quot;redis:\/\/&lt;\u30d7\u30e9\u30a4\u30de\u30ea\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8&gt;&quot;<\/span><br \/>\n<span class=\"hljs-built_in\">\u8f38\u51fa<\/span> FLASK_APP=\u4f8b4.py<br \/>\n<span class=\"hljs-built_in\">\u8f38\u51fa<\/span> SECRET_KEY=\u30e9\u30f3\u30c0\u30e0\u306a\u5024<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"2751\" data-end=\"3016\">\n<p data-start=\"2754\" data-end=\"2772\"><strong data-start=\"2754\" data-end=\"2770\">Flask \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/strong><\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">\u30d5\u30e9\u30b9\u30b3\u5b9f\u884c -h 0.0.0.0 -p 5000 --reload<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"2837\" data-end=\"2912\">\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u3044\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044 <code data-start=\"2845\" data-end=\"2875\">http:\/\/ :5000<\/code>\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e 3 \u3064\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<code data-start=\"2887\" data-end=\"2890\">\/<\/code>\u3001<code data-start=\"2891\" data-end=\"2899\">\/\u30ed\u30b0\u30a4\u30f3<\/code>\u3001<code data-start=\"2900\" data-end=\"2909\">\/\u30ed\u30b0\u30a2\u30a6\u30c8<\/code>\u3002<\/p>\n<p data-start=\"2917\" data-end=\"3016\">\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u3068\u8a2a\u554f\u6570\u306e\u5897\u52a0\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u300210\u79d2\u4ee5\u5185\u306b\u66f4\u65b0\u3057\u306a\u3044\u3068\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u306f\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\u3002<br data-start=\"2952\" data-end=\"2955\" \/>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30e6\u30fc\u30b6\u30fc\u304c\u30bb\u30c3\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u4e00\u610f\u306eRedis\u30ad\u30fc\u3092\u751f\u6210\u3057\u3001 <strong data-start=\"2992\" data-end=\"3005\">TTL\uff0810\u79d2\uff09<\/strong>\u3001\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u3068\u81ea\u52d5\u7684\u306b\u6d88\u53bb\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4 data-start=\"3023\" data-end=\"3030\">\u8981\u7d04\u3059\u308b<\/h4>\n<p data-start=\"3032\" data-end=\"3151\">\u30ad\u30e3\u30c3\u30b7\u30e5 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3001\u30af\u30e9\u30a6\u30c9 \u30cd\u30a4\u30c6\u30a3\u30d6 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5168\u4f53\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u3001\u30a2\u30af\u30bb\u30b9\u9045\u5ef6\u306b\u3088\u3063\u3066\u767a\u751f\u3059\u308b\u30b3\u30b9\u30c8\u3068\u975e\u52b9\u7387\u6027\u304c\u524a\u6e1b\u3055\u308c\u307e\u3059\u3002<br data-start=\"3070\" data-end=\"3073\" \/>\u4f7f\u7528 <strong data-start=\"3076\" data-end=\"3105\">Redis \u7528 AWS ElastiCache<\/strong>AWS \u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u306e\u5229\u70b9\u3092\u6d3b\u7528\u3057\u3066\u904b\u7528\u4e0a\u306e\u8ca0\u62c5\u3092\u8efd\u6e1b\u3057\u306a\u304c\u3089\u3001Redis \u306e\u30b9\u30d4\u30fc\u30c9\u3001\u30b7\u30f3\u30d7\u30eb\u3055\u3001\u67d4\u8edf\u6027\u3092\u4eab\u53d7\u3067\u304d\u307e\u3059\u3002<\/p>\n<p data-start=\"3153\" data-end=\"3332\">\u3055\u3089\u306b\u3001 <strong data-start=\"3159\" data-end=\"3189\">NetApp \u30af\u30e9\u30a6\u30c9\u30dc\u30ea\u30e5\u30fc\u30e0 ONTAP<\/strong>\u306f\u3001AWS\u3001Azure\u3001Google Cloud \u4e0a\u3067\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba \u30af\u30e9\u30b9\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u7ba1\u7406\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3001\u9ad8\u53ef\u7528\u6027\u3001\u30c7\u30fc\u30bf\u4fdd\u8b77\u3001Kubernetes \u7d71\u5408\u306a\u3069\u306e\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br data-start=\"3260\" data-end=\"3263\" \/>\u30af\u30e9\u30a6\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30d3\u30c3\u30b0 \u30c7\u30fc\u30bf\u5206\u6790\u30af\u30e9\u30b9\u30bf\u30fc\u306e\u5834\u5408\u3001\u6c38\u7d9a\u30c7\u30a3\u30b9\u30af \u30c7\u30fc\u30bf\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u3082\u4f7f\u7528\u3067\u304d\u308b\u305f\u3081\u3001\u8907\u96d1\u306a Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u7ba1\u7406\u304c\u3088\u308a\u52b9\u7387\u7684\u306b\u306a\u308a\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u30c7\u30fc\u30bf\u3092\u8fc5\u901f\u306b\u4fdd\u5b58\u3057\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3088\u308a\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306f\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u5bb9\u91cf\u3092\u62e1\u5f35\u3057\u3001\u4e88\u671f\u305b\u306c\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u6025\u5897\u3092\u7de9\u548c\u3057\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u30c7\u30fc\u30bf\u306e\u63d0\u4f9b\u3092\u7d99\u7d9a\u3067\u304d\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u53ef\u7528\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>","protected":false},"author":1,"featured_media":4020,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-4019","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/4019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/comments?post=4019"}],"version-history":[{"count":2,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/4019\/revisions"}],"predecessor-version":[{"id":4023,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/4019\/revisions\/4023"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/media\/4020"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/media?parent=4019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/categories?post=4019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/tags?post=4019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}