{"id":24890,"date":"2023-11-14T17:17:22","date_gmt":"2023-11-14T08:17:22","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=24890"},"modified":"2023-11-14T17:17:22","modified_gmt":"2023-11-14T08:17:22","slug":"dlq%e3%82%92%e7%a9%8d%e3%81%bf%e9%87%8d%e3%81%ad%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/dlq%e3%82%92%e7%a9%8d%e3%81%bf%e9%87%8d%e3%81%ad%e3%82%8b\/","title":{"rendered":"DLQ\u3092\u7a4d\u307f\u91cd\u306d\u308b"},"content":{"rendered":"<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>SQS\u306e\u30c7\u30c3\u30c9\u30ec\u30bf\u30fc\u30ad\u30e5\u30fc(DLQ)\u3001\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f<br \/>\nAWS\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u300c\u305d\u3093\u306a\u30b1\u30fc\u30b9\u306b\u906d\u9047\u3057\u305f\u3053\u3068\u304c\u306a\u3044\u300d\u65b9\u304c\u307b\u3068\u3093\u3069\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<blockquote><p>\n  \u6b63\u5e38\u306b\u51e6\u7406 (\u6d88\u8cbb) \u3067\u304d\u306a\u3044\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1\u5148\u3068\u3057\u3066\u3001\u4ed6\u306e\u30ad\u30e5\u30fc (\u30bd\u30fc\u30b9\u30ad\u30e5\u30fc) \u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\n<\/p><\/blockquote>\n<p>\u4eca\u56de\u3001\u305d\u306e\u300c\u305d\u3093\u306a\u30b1\u30fc\u30b9\u300d\u306b\u5f53\u305f\u3063\u305f\u306e\u3067\u3001\u30ad\u30e5\u30fc\u306e\u52d5\u304d\u3084\u9001\u53d7\u4fe1\u3055\u308c\u3066\u3044\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h1>\u30c7\u30c3\u30c9\u30ec\u30bf\u30fc\u30ad\u30e5\u30fc\u3068\u306f<\/h1>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/AWSSimpleQueueService\/latest\/SQSDeveloperGuide\/sqs-dead-letter-queues.html\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u304c\u4e00\u756a\u7aef\u7684\u306b\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u65e5\u672c\u8a9e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30da\u30fc\u30b8\u304b\u3089\u5f15\u7528\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>\n  \u3053\u306e\u30ad\u30e5\u30fc\u306f\u3001\u6b63\u5e38\u306b\u51e6\u7406 (\u6d88\u8cbb) \u3067\u304d\u306a\u3044\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1\u5148\u3068\u3057\u3066\u3001\u4ed6\u306e\u30ad\u30e5\u30fc (\u30bd\u30fc\u30b9\u30ad\u30e5\u30fc) \u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30c3\u30c9\u30ec\u30bf\u30fc\u30ad\u30e5\u30fc\u306f\u3001\u672a\u4f7f\u7528\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5206\u96e2\u3057\u3066\u51e6\u7406\u304c\u5931\u6557\u3057\u305f\u7406\u7531\u3092\u7279\u5b9a\u3067\u304d\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u30c7\u30d0\u30c3\u30b0\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>\u3046\u30fc\u3093\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u3069\u3046\u4f7f\u3048\u3070\u3044\u3044\u306e\u304b\u30a4\u30de\u30a4\u30c1\u3064\u304b\u307f\u306b\u304f\u3044\u3067\u3059\u306d\u3002\u3002\u7406\u89e3\u3057\u3066\u3044\u308b\u4eba\u304b\u3089\u3059\u308c\u3070\u300c\u305d\u308c\u4ee5\u5916\u306b\u66f8\u304d\u3088\u3046\u304c\u306a\u3044\u300d\u3068\u3044\u3046\u5074\u9762\u3082\u3042\u308a\u307e\u3059\u304c\u3002\u3002<\/p>\n<h1>\u5b9f\u9a13\u7528\u74b0\u5883\u306e\u6e96\u5099<\/h1>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u5b9f\u9a13\u7528\u306b\u4e0b\u8a183\u3064\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30ea\u30bd\u30fc\u30b9\u540d(\u8ad6\u7406ID)<\/th>\n<th>\u5f79\u5272<\/th>\n<th>\u6307\u5b9a\u3059\u308bDLQ<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>MainQ<\/td>\n<td>\u5916\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6295\u3052\u8fbc\u307e\u308c\u308b\u30ad\u30e5\u30fc<\/td>\n<td>SubQ<\/td>\n<\/tr>\n<tr>\n<td>SubQ<\/td>\n<td>MainQ\u306e\u30c7\u30c3\u30c9\u30ec\u30bf\u30fc\u30ad\u30e5\u30fc<\/td>\n<td>SuperSubQ<\/td>\n<\/tr>\n<tr>\n<td>SuperSubQ<\/td>\n<td>SubQ\u306e\u30c7\u30c3\u30c9\u30ec\u30bf\u30fc\u30ad\u30e5\u30fc<\/td>\n<td>\u306a\u3057<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>CloudFormation\u3067\u30b5\u30af\u30c3\u3068\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\n{\n  \"AWSTemplateFormatVersion\": \"2010-09-09\",\n  \"Description\": \"Nested queue sample\",\n\n  \"Parameters\": {\n    \"MaxReceiveCount\": {\n      \"Type\": \"Number\",\n      \"MinValue\": 1,\n      \"MaxValue\": 5,\n      \"Default\": 2\n    }\n  },\n\n  \"Resources\": {\n    \"MainQ\": {\n      \"Type\": \"AWS::SQS::Queue\",\n      \"Properties\": {\n        \"RedrivePolicy\": {\n          \"deadLetterTargetArn\": { \"Fn::Sub\": \"${SubQ.Arn}\" },\n          \"maxReceiveCount\": { \"Ref\": \"MaxReceiveCount\" }\n        }\n      }\n    },\n    \"SubQ\": {\n      \"Type\": \"AWS::SQS::Queue\",\n      \"Properties\": {\n        \"RedrivePolicy\": {\n          \"deadLetterTargetArn\": { \"Fn::Sub\": \"${SuperSubQ.Arn}\" },\n          \"maxReceiveCount\": { \"Ref\": \"MaxReceiveCount\" }\n        }\n      }\n    },\n    \"SuperSubQ\": {\n      \"Type\": \"AWS::SQS::Queue\"\n    }\n  }\n}\n<\/pre>\n<p>\u3067\u304d\u305f\u3082\u306e\u304c\u3053\u3061\u3089\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24891\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24891\" class=\"size-large wp-image-24891\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues-1024x144.png\" alt=\"MainQ\u3001SubQ\u3001SuperSubQ\u3092\u4f5c\u6210\" width=\"728\" height=\"102\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues-1024x144.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues-300x42.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues-768x108.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues-728x102.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/listqueues.png 1139w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24891\" class=\"wp-caption-text\">\u4f5c\u6210\u3057\u305f\u30ad\u30e5\u30fc<\/p><\/div>\n<p>\u3053\u3053\u306b\u30c6\u30b9\u30c8\u7528\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24892\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24892\" class=\"size-large wp-image-24892\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage-1024x157.png\" alt=\"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\" width=\"728\" height=\"112\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage-1024x157.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage-300x46.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage-768x118.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage-728x112.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-sendmessage.png 1386w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24892\" class=\"wp-caption-text\">\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u53d7\u4fe1\u30dc\u30bf\u30f3<\/p><\/div>\n<p>\u6295\u5165\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre>\n{\n    \"MyUUID\": \"8677f8a6-a198-4169-8ffe-7b4bb2efd252\",\n    \"Data\": {\n        \"Key1\": \"Value1\",\n        \"Key2\": \"Value2\",\n        \"Key3\": [ \"Value3\", \"Value4\", \"Value5\" ]\n    }\n}\n<\/pre>\n<p>\u3053\u308c\u3067\u6e96\u5099\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h1>\u672c\u984c<\/h1>\n<p><code>MainQ<\/code>\u306e\u8a73\u7d30\u8868\u793a\u753b\u9762\u304b\u3089\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u53d7\u4fe1\u300d\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24893\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24893\" class=\"size-large wp-image-24893\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage-1024x80.png\" alt=\"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306b\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30dd\u30fc\u30ea\u30f3\u30b0\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\" width=\"728\" height=\"57\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage-1024x80.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage-300x24.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage-768x60.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage-728x57.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/receivemessage.png 1478w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24893\" class=\"wp-caption-text\">\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1<\/p><\/div>\n<h2>MainQ\u3067\u306e\u53d7\u4fe11\u56de\u76ee<\/h2>\n<p>\u6b63\u3057\u304f\u53d7\u4fe1\u3067\u304d\u3066\u3044\u307e\u3059\u3002\u53d7\u4fe1\u6570\u304c1\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u3082\u9001\u3063\u305f\u5185\u5bb9\u305d\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<div id=\"attachment_24894\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24894\" class=\"size-large wp-image-24894\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1-1024x261.png\" alt=\"MainQ\u3067\u306e1\u56de\u76ee\u306e\u53d7\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8\" width=\"728\" height=\"186\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1-1024x261.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1-300x77.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1-768x196.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1-728x186.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive1.png 1492w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24894\" class=\"wp-caption-text\">MainQ\u3067\u306e1\u56de\u76ee\u306e\u53d7\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8<\/p><\/div>\n<pre>\n{\n    \"MyUUID\": \"8677f8a6-a198-4169-8ffe-7b4bb2efd252\",\n    \"Data\": {\n        \"Key1\": \"Value1\",\n        \"Key2\": \"Value2\",\n        \"Key3\": [ \"Value3\", \"Value4\", \"Value5\" ]\n    }\n}\n<\/pre>\n<h2>MainQ\u3067\u306e\u53d7\u4fe12\u56de\u76ee<\/h2>\n<p>\u53d7\u4fe1\u3067\u304d\u307e\u3057\u305f\u3002\u53d7\u4fe1\u6570\u306f2\u306b\u5909\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n<div id=\"attachment_24895\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24895\" class=\"size-large wp-image-24895\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2-1024x261.png\" alt=\"MainQ\u3067\u306e2\u56de\u76ee\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u53d7\u4fe1\" width=\"728\" height=\"186\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2-1024x261.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2-300x76.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2-768x195.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2-728x185.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive2.png 1485w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24895\" class=\"wp-caption-text\">MainQ\u3067\u306e2\u56de\u76ee\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u53d7\u4fe1<\/p><\/div>\n<h2>MainQ\u3067\u306e\u53d7\u4fe13\u56de\u76ee<\/h2>\n<p>\u53d7\u4fe1\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nDLQ\u306b\u8ee2\u9001\u3055\u308c\u308b\u307e\u3067\u306e\u6700\u5927\u53d7\u4fe1\u56de\u6570\u3092<code>2<\/code>\u3068\u3057\u3066(CloudFormation\u7d4c\u7531\u3067)\u6307\u5b9a\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u671f\u5f85\u3059\u308b\u6319\u52d5\u3067\u3059\u3002<br \/>\n\u53d7\u4fe1\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u306fDLQ\u3068\u3057\u3066\u6307\u5b9a\u3057\u305f<code>SubQ<\/code>\u306b\u8ee2\u9001\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24896\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24896\" class=\"size-large wp-image-24896\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3-1024x320.png\" alt=\"MainQ\u3067\u306e3\u56de\u76ee\u306e\u53d7\u4fe1\" width=\"728\" height=\"228\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3-1024x320.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3-300x94.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3-768x240.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3-728x227.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/mainq-receive3.png 1469w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24896\" class=\"wp-caption-text\">MainQ\u3067\u306e3\u56de\u76ee\u306e\u53d7\u4fe1<\/p><\/div>\n<h2>SubQ\u3067\u306e\u53d7\u4fe11\u56de\u76ee<\/h2>\n<p>\u53d7\u4fe1\u3067\u304d\u307e\u3057\u305f\u3002\u53d7\u4fe1\u6570\u306f<code>MainQ<\/code>\u306b\u4f4f\u3093\u3067\u3044\u305f\u3053\u308d\u306e\u53d7\u4fe1\u56de\u6570\u3068\u3042\u308f\u305b\u30663\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6ce8\u76ee\u306a\u306e\u306f\u3001\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u5bb9\u304c<code>MainQ<\/code>\u3067\u53d7\u4fe1\u3057\u305f\u5185\u5bb9\u3068\u540c\u4e00\u3067\u3042\u308b\u3053\u3068\u300d\u3067\u3059\u3002<br \/>\n\u3042\u3068\u3067\u518d\u51e6\u7406\u3059\u308b\u3068\u304d\u3082\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u518d\u52a0\u5de5\u3092\u3059\u308b\u3053\u3068\u306a\u304f\u300c\u53d7\u4fe1\u5148\u306e\u30ad\u30e5\u30fc\u3092\u5909\u66f4\u3059\u308b\u300d\u3060\u3051\u3067\u540c\u4e00\u306e\u51e6\u7406\u304c\u518d\u9069\u7528\u3067\u304d\u308b\u70b9\u304c\u3046\u308c\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n<div id=\"attachment_24897\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24897\" class=\"size-large wp-image-24897\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1-1024x260.png\" alt=\"SubQ\u3067\u306e1\u56de\u76ee\u306e\u53d7\u4fe1\" width=\"728\" height=\"185\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1-1024x260.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1-300x76.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1-768x195.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1-728x185.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive1.png 1479w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24897\" class=\"wp-caption-text\">SubQ\u3067\u306e1\u56de\u76ee\u306e\u53d7\u4fe1<\/p><\/div>\n<pre>\n{\n    \"MyUUID\": \"8677f8a6-a198-4169-8ffe-7b4bb2efd252\",\n    \"Data\": {\n        \"Key1\": \"Value1\",\n        \"Key2\": \"Value2\",\n        \"Key3\": [ \"Value3\", \"Value4\", \"Value5\" ]\n    }\n}\n<\/pre>\n<h2>SubQ\u3067\u306e\u53d7\u4fe12\uff5e3\u56de\u76ee<\/h2>\n<p>2\u56de\u76ee\u306f\u53d7\u4fe1\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u304c\u30013\u56de\u76ee\u3067\u53d7\u4fe1\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3082\u3001DLQ\u3068\u3057\u3066\u6307\u5b9a\u3057\u305f<code>SuperSubQ<\/code>\u306b\u8ee2\u9001\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24898\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24898\" class=\"size-large wp-image-24898\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3-1024x315.png\" alt=\"SubQ\u3067\u306e3\u56de\u76ee\u306e\u53d7\u4fe1\" width=\"728\" height=\"224\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3-1024x315.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3-300x92.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3-768x236.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3-728x224.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/subq-receive3.png 1453w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24898\" class=\"wp-caption-text\">SubQ\u3067\u306e3\u56de\u76ee\u306e\u53d7\u4fe1<\/p><\/div>\n<h2>SuperSubQ\u3067\u306e\u53d7\u4fe1<\/h2>\n<p>\u53d7\u4fe1\u3067\u304d\u307e\u3057\u305f\u3002\u53d7\u4fe1\u6570\u306f\u3001\u5ef6\u30794\u56de\u306e\u53d7\u4fe1\u3092\u6301\u3061\u8d8a\u3057\u3066\u304d\u3066\u3044\u307e\u3059\u306e\u30675\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3084\u306f\u308a\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u306f\u5f53\u521d\u6295\u5165\u3057\u305f\u5185\u5bb9\u304b\u3089\u5909\u308f\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<div id=\"attachment_24899\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24899\" class=\"size-large wp-image-24899\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1-1024x258.png\" alt=\"SuperSubQ\u3067\u306e\u53d7\u4fe1\" width=\"728\" height=\"183\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1-1024x258.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1-300x76.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1-768x193.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1-728x183.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/11\/supersubq-receive1.png 1470w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-24899\" class=\"wp-caption-text\">SuperSubQ\u3067\u306e\u53d7\u4fe1<\/p><\/div>\n<pre>\n{\n    \"MyUUID\": \"8677f8a6-a198-4169-8ffe-7b4bb2efd252\",\n    \"Data\": {\n        \"Key1\": \"Value1\",\n        \"Key2\": \"Value2\",\n        \"Key3\": [ \"Value3\", \"Value4\", \"Value5\" ]\n    }\n}\n<\/pre>\n<h1>\u53d7\u4fe1\u56de\u6570\u306f\u3044\u3064\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u308b\uff1f<\/h1>\n<p>\u30dd\u30fc\u30ea\u30f3\u30b0\u30d9\u30fc\u30b9\u306e\u5834\u5408\u306f\u3001<code>ReceiveMessage<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u305f\u5f8c\u306b<code>DeleteMessage<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u524a\u9664\u3057\u306a\u3051\u308c\u3070\u53d7\u4fe1\u56de\u6570\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>Lambda\u306e\u3088\u3046\u306a\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b9\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u5834\u5408\u306f\u3001\u30c8\u30ea\u30ac\u30fc\u306e\u767a\u5c04\u3068\u3068\u3082\u306b\u30ab\u30a6\u30f3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u95a2\u6570\u304c\u6b63\u5e38\u7d42\u4e86\u3059\u308c\u3070\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u524a\u9664\u3055\u308c\u3001\u6b63\u5e38\u7d42\u4e86\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u524a\u9664\u3055\u308c\u305a\u30ad\u30e5\u30fc\u306b\u6b8b\u308a\u3001\u518d\u30c8\u30ea\u30ac\u30fc\u3068\u3068\u3082\u306b\u53d7\u4fe1\u56de\u6570\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h1>\u4f7f\u3044\u9053<\/h1>\n<p>\u5f8c\u7d9a\u51e6\u7406\u306b\u51aa\u7b49\u6027\u304c\u3042\u308b\u3053\u3068\u304c\u6761\u4ef6\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5f8c\u7d9a\u306e\u51e6\u7406\u304cOOM\u3084\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u7b49\u306e\u7406\u7531\u306b\u3088\u308a\u6b63\u3057\u304f\u51e6\u7406\u3092\u5b8c\u4e86\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u3001\u8a08\u7b97\u8cc7\u6e90\u3092\u3088\u308a\u591a\u304f\u5272\u308a\u5f53\u3066\u305f\u5225\u306e\u7cfb\u7d71\u3067\u518d\u51e6\u7406\u3092\u884c\u3046\u3001\u306a\u3069\u306e\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002AWS\u30ea\u30bd\u30fc\u30b9\u3092\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u3057\u3066\u3082\u3001\u305d\u306e\u3046\u3048\u3067\u52d5\u304b\u3059\u30ed\u30b8\u30c3\u30af\u306f\u540c\u3058\u3082\u306e\u304c\u4f7f\u3048\u308b\u3001\u3068\u3044\u3046\u70b9\u304c\u304a\u3044\u3057\u3044\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001DLQ\u3068\u8a00\u3063\u3066\u3082\u305d\u308c\u306f\u305f\u3060\u306e\u5f79\u5272\u3067\u3057\u304b\u306a\u304f\u3001\u30ad\u30e5\u30fc\u305d\u306e\u3082\u306e\u3068\u3057\u3066\u306f\u540c\u3058\u30e1\u30c8\u30ea\u30af\u30b9\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u7d44\u307f\u5408\u308f\u305b\u65b9\u306b\u3088\u3063\u3066\u306f\u591a\u6bb5\u51e6\u7406\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u76f4\u524d\u306b\u66f8\u3044\u305f\u3088\u3046\u306a\u518d\u51e6\u7406\u304c\u8a2d\u8a08\u3057\u3084\u3059\u3044\u306e\u3082\u3001\u300cDLQ\u306b\u8ee2\u9001\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u305d\u306e\u3082\u306e\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u30ad\u30e5\u30fc\u306b\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u540c\u4e00\u3067\u3042\u308b\u300d\u304b\u3089\u3053\u305d\u3067\u3059\u306d\u3002SQS\u3088\u304f\u3067\u304d\u3066\u307e\u3059\u306d\uff01<\/p>\n<p>\u3067\u306f\u307e\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b SQS\u306e\u30c7\u30c3\u30c9\u30ec\u30bf\u30fc\u30ad\u30e5\u30fc(DLQ)\u3001\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f AWS\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u300c\u305d\u3093\u306a\u30b1\u30fc\u30b9\u306b\u906d\u9047\u3057\u305f\u3053\u3068\u304c\u306a\u3044\u300d\u65b9\u304c\u307b\u3068\u3093\u3069\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u6b63\u5e38\u306b\u51e6\u7406 (\u6d88\u8cbb) \u3067\u304d\u306a\u3044&#8230;<\/p>\n","protected":false},"author":205,"featured_media":24911,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=24890","footnotes":""},"categories":[20,1251],"tags":[],"class_list":{"0":"post-24890","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-sqs","9":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=24890"}],"version-history":[{"count":11,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24890\/revisions"}],"predecessor-version":[{"id":24913,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24890\/revisions\/24913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/24911"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=24890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=24890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=24890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}