{"id":12770,"date":"2021-01-10T09:41:12","date_gmt":"2021-01-10T00:41:12","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=12770"},"modified":"2021-01-17T18:44:09","modified_gmt":"2021-01-17T09:44:09","slug":"%e3%80%90aws%e3%80%91%e3%80%8csns%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=12770","title":{"rendered":"\u3010AWS\u3011\u300cSNS\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>SNS\u3068\u306f\uff1f<\/h2>\n<p>\u300cSimple Notification Service\u300d\u306e\u7565\u3067\u3059\u3002<\/p>\n<h2>SNS\u304c\u5fc5\u8981\u306b\u306a\u308b\u80cc\u666f<\/h2>\n<p>\u3088\u304f\u3042\u308b\u4f01\u696d\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u8907\u6570\u306e\u51e6\u7406\u304c\u8907\u96d1\u306b\u9023\u643a\u3057\u5408\u3063\u3066\u3044\u308b\u5bc6\u7d50\u5408\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u758e\u7d50\u5408\u306b\u3059\u308b\u305f\u3081\u8272\u3005\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u72ec\u7acb\u5206\u6563\u578b + \u30dd\u30fc\u30ea\u30f3\u30b0<\/h3>\n<p>\u5404\u51e6\u7406\u3092\u758e\u7d50\u5408\u306b\u3057\u3066\u5404\u51e6\u7406\u304c\u65b0\u3057\u3044\u51e6\u7406\u4f9d\u983c\u3092\u53d7\u3051\u305f\u304b\u3069\u3046\u304b\u7d76\u3048\u305a\u30dd\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3088\u3046\u306a\u8a2d\u8a08\u304c\u3042\u308a\u307e\u3059\u3002\u4e2d\u592e\u306e\u4fdd\u7559\u5834\u6240\u306f\u305d\u308c\u3089\u306e\u78ba\u8a8d\u306b\u5bfe\u3057\u3066\u9069\u5207\u306b\u56de\u7b54\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-12989\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.25.01-300x154.png\" alt=\"\" width=\"300\" height=\"154\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.25.01-300x154.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.25.01-768x393.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.25.01.png 902w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4>\u30dd\u30fc\u30ea\u30f3\u30b0\u306e\u554f\u984c\u70b9<\/h4>\n<p>\u3044\u3064\u65b0\u3057\u3044\u51e6\u7406\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u304f\u308b\u304b\u304c\u308f\u304b\u3089\u306a\u3044\u305f\u3081\u5404\u51e6\u7406\u304b\u3089\u306e\u78ba\u8a8d\u884c\u70ba\u306b\u3088\u308b<span style=\"color: #ff0000;\"><strong>\u4e2d\u592e\u306e\u4fdd\u7559\u5834\u6240\u306e\u8ca0\u8377\u304c\u9ad8\u307e\u308b\u70b9<\/strong><\/span><\/p>\n<h3>\u72ec\u7acb\u5206\u6563\u578b + \u30d5\u30a1\u30f3\u30a2\u30a6\u30c8\uff08\u4e00\u62ec\u9001\u4fe1\uff09<\/h3>\n<p>\u30dd\u30fc\u30ea\u30f3\u30b0\u306b\u306f\u554f\u984c\u304c\u3042\u308b\u306e\u3067\u4e00\u62ec\u9001\u4fe1\u578b\u3068\u3044\u3046PUSH\u578b\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u4e2d\u592e\u306e\u4fdd\u7559\u5834\u6240\u304b\u3089\u5404\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u30d5\u30a1\u30f3\u30a2\u30a6\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>SNS\u3067\u306f\u57fa\u672c\u7684\u306b\u3053\u3046\u3057\u305fPUSH\u578b\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u63a1\u7528<\/strong><\/span>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-12990\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.33.44-300x161.png\" alt=\"\" width=\"300\" height=\"161\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.33.44-300x161.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.33.44-768x413.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.33.44.png 814w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4>\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>\u4e2d\u592e\u306e\u4fdd\u7559\u5834\u6240\u3067\u51e6\u7406\u304c\u884c\u308f\u308c\u308b\u306e\u306f\u51e6\u7406\u3092\u53d7\u3051\u4ed8\u3051\u305f\u5834\u5408\u306e\u307f\u3067\u3088\u304f\u306a\u308b\u306e\u3067\u4e2d\u592e\u306e\u8ca0\u8377\u304c\u4e0b\u304c\u308b\u3002<\/p>\n<h2>SNS\u306e\u30a4\u30e1\u30fc\u30b8<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-12992\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.40.08-300x191.png\" alt=\"\" width=\"300\" height=\"191\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.40.08-300x191.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-15.40.08.png 672w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h3>push\u901a\u77e5\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u30d5\u30a1\u30f3\u30a2\u30a6\u30c8\uff08\u4e00\u62ec\u9001\u4fe1\uff09<\/h3>\n<p>\u5b9a\u671f\u7684\u306a\u30dd\u30fc\u30ea\u30f3\u30b0\u304c\u5fc5\u8981\u306a\u3044\u3002<\/p>\n<p>\u8907\u6570\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u5bfe\u5fdc(HTTPS\u3001e\u30e1\u30fc\u30eb)\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2>\u4ee3\u8868\u7684\u306a\u6a5f\u80fd<\/h2>\n<p>\u6a5f\u80fd\u3068\u3057\u3066\u306f\u4e8c\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Mobile Push<\/li>\n<li>pub-sub<\/li>\n<\/ul>\n<h3>Mobile Push(\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\uff09<\/h3>\n<ul>\n<li>\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u3066\u304f\u308c\u3066\u3044\u306a\u3044\u3066\u3082\u901a\u77e5\u3067\u304d\u308b\u3002<\/li>\n<li>\u30e2\u30d0\u30a4\u30eb\u30e6\u30fc\u30b6\u30fc\u304c\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u304b\u5426\u304b\u9078\u629e\u3067\u304d\u308b\u3002<\/li>\n<li>\u901a\u77e5\u3092\u304d\u3063\u304b\u3051\u306b\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3066\u3082\u3089\u3046\u3002\uff08\u9867\u5ba2\u30a8\u30f3\u30b2\u30fc\u30b8\u30e1\u30f3\u30c8\u306e\u89b3\u70b9\u3067\u3082\u6d3b\u7528\u3067\u304d\u308b\u3002\uff09<\/li>\n<\/ul>\n<h3>publish-subscribe(pub-sub)<\/h3>\n<p>\u901a\u77e5\u3082\u3067\u304d\u308b\u304c\u3001\u5206\u6563\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7d71\u5408\u7528\u9014\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002SNS\u3068\u8a00\u3048\u3070\u3053\u3061\u3089\u306e\u7528\u9014\u3067\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002Publisher\u304cSUBSCRIBER\u306b\u4f9d\u5b58\u3057\u306a\u3044<span style=\"color: #ff0000;\"><strong>\u975e\u540c\u671f<\/strong><\/span>\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u30e2\u30c7\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-12999\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-18.29.42-300x149.png\" alt=\"\" width=\"300\" height=\"149\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-18.29.42-300x149.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-18.29.42-768x382.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-01-17-18.29.42.png 848w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4>Publisher<\/h4>\n<ul>\n<li>SUBSCRIBER\u306e\u3053\u3068\u3092\u5168\u304f\u77e5\u3089\u306a\u3044\u3002<\/li>\n<li>\u60c5\u5831\u3092\u767a\u4fe1\u3059\u308b\u3053\u3068\u3092\u4f7f\u547d\u3068\u5fc3\u5f97\u3066\u304a\u308a\u6c7a\u307e\u3063\u305f\u5f62\u5f0f\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092TOPIC\u306b\u9001\u4fe1\u3059\u308b\u3002<\/li>\n<li>Subscriber\u306e\u8cfc\u8aad\u30d7\u30ed\u30c8\u30b3\u30eb\u3054\u3068\u306bmessage\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u767a\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>Publisher\u3068\u3057\u3066AWS Step Functions\u3084CloudWatch Events\u306a\u3069\u306eAWS\u30b5\u30fc\u30d3\u30b9\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>TOPIC<\/h4>\n<p>Publisher\u3068subscriber\u304c\u5171\u306b\u77e5\u3063\u3066\u3044\u308b\u5b58\u5728\u3067\u901a\u4fe1\u30c1\u30e3\u30f3\u30cd\u30eb\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u3053\u308c\u304c\u3042\u308b\u3053\u3068\u306b\u3088\u3063\u3066Publisher\u3068Subscriber\u3092\u758e\u7d50\u5408\u306b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h5>TOPIC OWNER<\/h5>\n<p>TOPIC\u306e\u7ba1\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u4eba\u3001TOPIC\u3092\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u304cTOPIC\u30aa\u30fc\u30ca\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>SUBSCRIBER<\/h4>\n<p>\u8cfc\u8aad\u3057\u305f\u3044TOPIC\u3092\u9078\u3073\u8cfc\u8aad\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<h4>Filter Policy<\/h4>\n<p>Subscriber\u304cPublisher\u304b\u3089\u914d\u4fe1\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30d5\u30a3\u30eb\u30bf\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>Pub\/Sub\u304c\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u914d\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb<\/h4>\n<table>\n<tbody>\n<tr>\n<th>\u30d7\u30ed\u30c8\u30b3\u30eb<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>HTTP\/HTTPS<\/td>\n<td>\u8cfc\u8aad\u767b\u9332\u6642\u306bURL\u3092\u6307\u5b9a\u3059\u308b\u3002POST\u3092\u901a\u3058\u3066URL\u304c\u5c4a\u3051\u3089\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>email<\/td>\n<td>e\u30e1\u30fc\u30eb\u3068\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u304c\u9001\u3089\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>email-json<\/td>\n<td>\u901a\u77e5\u304cJSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u9001\u4fe1\u3055\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>SQS<\/td>\n<td>\u6307\u5b9a\u3055\u308c\u305f\u30ad\u30e5\u30fc\u306bmessage\u3092\u6295\u5165\u3059\u308b\u3002(FIFO\u30ad\u30e5\u30fc\u306f\u5bfe\u8c61\u5916)<\/td>\n<\/tr>\n<tr>\n<td>Lambda<\/td>\n<td>Lambda\u95a2\u6570\u306bmessage\u3092\u914d\u4fe1\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>Platform application endpoint<\/td>\n<td>\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306bpush\u901a\u77e5\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>SMS<\/td>\n<td>SMS\u30c6\u30ad\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u767b\u9332\u3055\u308c\u305f\u96fb\u8a71\u756a\u53f7\u306b\u9001\u4fe1\u3059\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"SNS\u3068\u306f\uff1f \u300cSimple Notification Service\u300d\u306e\u7565\u3067\u3059\u3002 SNS\u304c\u5fc5\u8981\u306b\u306a\u308b\u80cc\u666f \u3088\u304f\u3042\u308b\u4f01\u696d\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u8907\u6570\u306e\u51e6\u7406\u304c\u8907\u96d1\u306b\u9023\u643a\u3057\u5408\u3063\u3066\u3044\u308b\u5bc6\u7d50\u5408\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u758e\u7d50\u5408\u306b\u3059\u308b\u305f\u3081\u8272 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12770"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12770"}],"version-history":[{"count":5,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12770\/revisions"}],"predecessor-version":[{"id":13000,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12770\/revisions\/13000"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12770"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}