{"id":620,"date":"2020-03-27T10:00:00","date_gmt":"2020-03-27T01:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/03\/27\/serverless_demerit"},"modified":"2020-03-27T10:00:00","modified_gmt":"2020-03-27T01:00:00","slug":"serverless_demerit","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/03\/27\/serverless_demerit\/","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u958b\u767a\u30925\u5e74\u7d9a\u3051\u3066\u304d\u305fMMM\u304c\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u3064\u3089\u3055\u3092\u7d39\u4ecb\u3057\u307e\u3059"},"content":{"rendered":"

\u5f0a\u793e\u3067\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u6848\u4ef6\u3092\u304a\u53d7\u3051\u3059\u308b\u969b\u306b\u306f\u3001\u304a\u5ba2\u69d8\u306e\u3054\u8981\u4ef6\u3092\u30d2\u30a2\u30ea\u30f3\u30b0\u3057\u3001\u6700\u9069\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u3054\u63d0\u6848\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n

\u305d\u306e\u4e2d\u3067\u3001\u7279\u306b\u904b\u7528\u30b3\u30b9\u30c8\u306e\u524a\u6e1b\u3084\u30b9\u30b1\u30fc\u30eb\u306e\u3057\u3084\u3059\u3055\u3092\u76ee\u7684\u306b\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u3054\u63d0\u6848\u3059\u308b\u3053\u3068\u3082\u591a\u304f\u3042\u308a\u3001\u3053\u308c\u307e\u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u30d9\u30fc\u30b9\u3057\u305f\u8c4a\u5bcc\u306a\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u7d4c\u9a13\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n

\u3057\u304b\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u4e2d\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u3064\u3089\u3055\u3068\u3044\u3046\u306e\u3082\u8272\u3005\u3068\u7d4c\u9a13\u3057\u3066\u304d\u305f\u90e8\u5206\u3082\u3042\u308a\u3001\u4eca\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u3064\u3089\u307f\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u5f0a\u793e\u306fAWS\u306e\u30a2\u30c9\u30d0\u30f3\u30b9\u30c9\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u30d1\u30fc\u30c8\u30ca\u30fc\u3067\u3042\u308a\u3001AWS\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u90e8\u5206\u304c\u591a\u3044\u3053\u3068\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/p>\n

\u30d3\u30b8\u30cd\u30b9\u89b3\u70b9\u3067\u306e\u3064\u3089\u3055\u3001\u958b\u767a\u30fb\u904b\u7528\u89b3\u70b9\u3067\u306e\u3064\u3089\u3055\u3001\u306e2\u672c\u7acb\u3066\u3067\u66f8\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n

1. \u30d3\u30b8\u30cd\u30b9\u89b3\u70b9\u3067\u306e\u3064\u3089\u3055<\/h1>\n

\u904b\u7528\u30b3\u30b9\u30c8\u306e\u898b\u7a4d\u3082\u308a\u306b\u304f\u3055<\/h2>\n

\u3053\u308c\u307e\u3067\u306e\u7d4c\u9a13\u4e0a\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u30b5\u30fc\u30d0\u30fc\u524d\u63d0\u3068\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u3088\u308a\u3082\u904b\u7528\u8cbb (AWS\u5229\u7528\u6599\u91d1) \u304c\u5b89\u304f\u306a\u308b\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u3002\u305f\u3060\u3001\u305d\u3082\u305d\u3082\u30b3\u30b9\u30c8\u306e\u898b\u7a4d\u3082\u308a\u304c\u3057\u306b\u304f\u3044\u6599\u91d1\u4f53\u7cfb\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3082\u4e8b\u5b9f\u3067\u3059\u3002\u4f8b\u3048\u3070\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u4e3b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3042\u308bLambda\u3067\u3044\u3046\u3068\u3001AWS Lambda \u6599\u91d1<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304a\u3088\u3073\u5b9f\u884c\u6642\u9593\u3067\u306e\u8ab2\u91d1 (\u5b8c\u5168\u306a\u5f93\u91cf\u8ab2\u91d1) \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u666e\u901a\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u5834\u5408\u306e\u898b\u7a4d\u3082\u308a\u306b\u304a\u3044\u3066\u306f\u3001\u3069\u308c\u304f\u3089\u3044\u306e\u30b9\u30da\u30c3\u30af\u306e\u3082\u306e\u3092\u4f55\u53f0\u7528\u610f\u3059\u308b\u304b\u3092\u8003\u3048\u308c\u3070\u81ea\u305a\u3068\u6599\u91d1\u3082\u898b\u3048\u3066\u304d\u307e\u3059\u304c\u3001\u5b8c\u5168\u5f93\u91cf\u8ab2\u91d1\u306a\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u304a\u3044\u3066\u306f\u904b\u7528\u8cbb\u306e\u898b\u7a4d\u3082\u308a\u306b\u304a\u3044\u3066\u7d4c\u9a13\u30fb\u30b3\u30c4\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u306a\u304a\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u65b9\u304c\u5b89\u304f\u306a\u308b\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3068\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u7279\u6027\u306b\u3088\u3063\u3066\u306f\u30b5\u30fc\u30d0\u30fc\u524d\u63d0\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u307b\u3046\u304c\u5b89\u304f\u306a\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3054\u7559\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n

\u8ab2\u91d1\u4e8b\u6545\u306e\u767a\u751f\u3057\u3084\u3059\u3055<\/h2>\n

\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u57fa\u672c\u7684\u306b\u306f\u7121\u9650\u306b\u30b9\u30b1\u30fc\u30eb\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u6025\u6fc0\u306a\u30a2\u30af\u30bb\u30b9\u5897\u306b\u3082\u7279\u306b\u4f55\u3082\u305b\u305a\u306b\u8010\u3048\u3089\u308c\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n

\u3057\u304b\u3057\u3001\u7121\u9650\u306b\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u304c\u3086\u3048\u306b\u4e8b\u6545\u304c\u8d77\u304d\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u5f0a\u793e\u3067\u306e\u7d4c\u9a13\u8ac7\u304c 10\u65e5\u9593\u3067AWS Lambda\u95a2\u6570\u309228\u5104\u56de\u5b9f\u884c\u3057\u305f\u8a71<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d0\u30b0\u306b\u3088\u308aLambda\u95a2\u6570\u3092\u7121\u9650\u30eb\u30fc\u30d7\u3067\u5b9f\u884c\u3057\u3066\u3057\u307e\u3063\u305f\u7d50\u679c\u3001\u610f\u56f3\u305b\u305a30\u4e07\u5186\u307b\u3069\u306e\u8acb\u6c42\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n

\u3082\u3061\u308d\u3093\u30b5\u30fc\u30d0\u30fc\u524d\u63d0\u3068\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u3082\u540c\u69d8\u306e\u8ab2\u91d1\u4e8b\u6545\u306e\u30ea\u30b9\u30af\u306f\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u306b\u3088\u308a\u81ea\u52d5\u7684\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u5897\u3084\u3057\u305f\u308a\u6e1b\u3089\u3057\u305f\u308a\u3059\u308b\u3088\u3046\u306a\u5834\u5408\u306b\u306f\u8a2d\u5b9a\u30df\u30b9\u306a\u3069\u306b\u3088\u308a\u4e88\u671f\u305b\u305a\u30b5\u30fc\u30d0\u30fc\u3092\u5897\u3084\u3057\u3057\u3059\u304e\u3066\u3057\u307e\u3046\u306a\u3069\u3067\u3059\u3002\u305f\u3060\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u5834\u5408\u306f\u3088\u308a\u5371\u967a\u6027\u304c\u9ad8\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u3053\u3046\u3044\u3063\u305f\u4e8b\u6545\u3092\u9632\u3050\u306b\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u308a\u8fbc\u307f\u6642\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u3082\u5927\u4e8b\u3067\u3059\u304c\u3001\u8ab2\u91d1\u30a2\u30e9\u30fc\u30e0\u3092\u3042\u308b\u7a0b\u5ea6\u4f4e\u3044\u91d1\u984d\u3067\u30bb\u30c3\u30c8\u3057\u3066\u304a\u304d\u3001\u4e07\u304c\u4e00\u8ab2\u91d1\u4e8b\u6545\u306b\u3064\u306a\u304c\u308b\u30d0\u30b0\u3092\u4f5c\u308a\u8fbc\u3093\u3060\u5834\u5408\u306e\u5f71\u97ff\u3092\u6700\u4f4e\u9650\u306b\u53ce\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u30d9\u30f3\u30c0\u30fc\u30ed\u30c3\u30af\u30a4\u30f3<\/h2>\n

\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306b\u304a\u3051\u308b\u30d9\u30f3\u30c0\u30fc\u30ed\u30c3\u30af\u30a4\u30f3\u306e\u30ea\u30b9\u30af\u306f\u3088\u304f\u8a00\u308f\u308c\u308b\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u500b\u4eba\u7684\u306b\u306f\u305d\u3053\u307e\u3067\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u3044\u3046\u5370\u8c61\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u304a\u3051\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u57fa\u76e4\u306f\u57fa\u672c\u7684\u306b\u306fLambda\u3068\u306a\u308a\u307e\u3059\u304c\u3001Lambda\u5358\u4f53\u3067\u898b\u308c\u3070\u305d\u3053\u307e\u3067\u30d9\u30f3\u30c0\u30fc\u30ed\u30c3\u30af\u30a4\u30f3\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4e00\u90e8Lambda\u306b\u7279\u5316\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306a\u308b\u7b87\u6240\u306f\u51fa\u3066\u304d\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u30ed\u30b8\u30c3\u30af\u306fLambda\u3067\u52d5\u304b\u3059\u5834\u5408\u3068\u30b5\u30fc\u30d0\u30fc\u3042\u308a\u3067\u52d5\u304b\u3059\u5834\u5408\u3067\u540c\u3058\u30b3\u30fc\u30c9\u304c\u4f7f\u3044\u56de\u305b\u307e\u3059\u3002<\/p>\n

SQS\u3001DynamoDB\u306e\u3088\u3046\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u30d9\u30f3\u30c0\u30fc\u30ed\u30c3\u30af\u30a4\u30f3\u8272\u304c\u5f37\u304f\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u305f\u3060\u3001\u305d\u3053\u307e\u3067\u5927\u898f\u6a21\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u306a\u3051\u308c\u3070\u3042\u308b\u7a0b\u5ea6\u306e\u5de5\u6570\u306f\u5fc5\u8981\u3068\u306f\u306a\u308a\u307e\u3059\u304c\u3001\u3044\u3056\u3068\u306a\u3063\u305f\u3089\u66f8\u304d\u76f4\u305b\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n

2. \u958b\u767a\u30fb\u904b\u7528\u89b3\u70b9\u3067\u306e\u3064\u3089\u3055<\/h1>\n

\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u3057\u306b\u304f\u3055<\/h2>\n

\u5f0a\u793e\u3067\u306f\u30b5\u30fc\u30d0\u30fc\u3042\u308a\u304d\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306b\u304a\u3044\u3066\u306f\u3001\u307b\u307c\u5404\u81ea\u306e\u30de\u30b7\u30f3\u306bDocker\u3067\u958b\u767a\u74b0\u5883\u3092\u4f5c\u3063\u3066\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u3057\u304b\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u306f\u69d8\u3005\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u306a\u308b\u305f\u3081\u3001AWS SAM CLI\u3084DynamoDB local\u306a\u3069\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306b\u5b8c\u5168\u306a\u958b\u767a\u74b0\u5883\u3092\u4f5c\u308b\u3053\u3068\u306f\u307b\u307c\u8ae6\u3081\u3001\u5b9f\u969b\u306eAWS\u306e\u74b0\u5883\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n

Lambda\u5358\u4f53\u306e\u30c6\u30b9\u30c8\u306f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3067\u62c5\u4fdd\u306f\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u6700\u7d42\u7684\u306b\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u304b\u306f\u30d3\u30c3\u30b0\u30d0\u30f3\u30c6\u30b9\u30c8\u7684\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u90e8\u5206\u304c\u3042\u308b\u306e\u304c\u5c11\u3005\u3064\u3089\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n

\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/h2>\n

Lambda\u306f\u4efb\u610f\u306e\u8a00\u8a9e\u3067\u958b\u767a\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306b\u7279\u5316\u3057\u305f\u5f62\u306e\u3088\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u73fe\u72b6\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\nRails\u306b\u4f3c\u305b\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af
Ruby on Jets<\/a>\u306f\u5f0a\u793e\u3067\u3082\u8a66\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u672c\u683c\u7684\u306a\u30b5\u30fc\u30d3\u30b9\u69cb\u7bc9\u306b\u5229\u7528\u3059\u308b\u306b\u306f\u96e3\u3057\u3044\u3068\u3044\u3046\u5370\u8c61\u3067\u3059\u3002<\/p>\n

\u5404\u7a2e\u5236\u9650\u5024<\/h2>\n

\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306a\u30b7\u30b9\u30c6\u30e0\u306f\u57fa\u672c\u306f\u7121\u9650\u306b\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u69cb\u6210\u3059\u308b\u5404\u7a2e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5236\u9650\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u591a\u304f\u3001\u610f\u5916\u3068\u5f15\u3063\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u6ce8\u610f\u3059\u3079\u304d\u5236\u9650\u5024\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n