{"id":339,"date":"2019-02-07T09:41:55","date_gmt":"2019-02-07T09:41:55","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=339"},"modified":"2020-05-01T12:30:31","modified_gmt":"2020-05-01T12:30:31","slug":"amazon-simple-queue-service-amazon-sqs","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/","title":{"rendered":"Introduction to Amazon Simple Queue Service (Amazon SQS)"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Reliable, scalable, hosted queue service for sending, storing and retrieving messages.<\/li><li>Queue act as a buffer between sender and receiver.<\/li><li>256kb message, &gt;256kb managed using SQS extended client library which uses S3, deliver message atleast once, not FIFO, can be create in<\/li><li>any region, retained for 14 days<\/li><li>can be sent and read simultaneously<\/li><li>long polling reduces frequent polling (wait 20 secs if queue empty)<\/li><li>First 1 million request free, $0.50 next 1 million + data transfer charges, SQS queues can be scaled.<\/li><li>Amazon SQS Architectures\n<ul>\n<li>Priority (2 queues High\/Low)<\/li>\n<\/ul>\n<ul>\n<li>Fanout (SNS topic\/multiple SQS queues for parallel processing)<\/li>\n<\/ul>\n<\/li><li>Amazon SQS supports both standard and FIFO queues.<\/li><li>Standard Queue\n<ul>\n<li>Unlimited Throughput<\/li>\n<\/ul>\n<ul>\n<li>At-Least-Once Delivery<\/li>\n<\/ul>\n<ul>\n<li>Best-Effort Ordering<\/li>\n<\/ul>\n<\/li><li>FIFO Queue\n<ul>\n<li>High Throughput<\/li>\n<\/ul>\n<ul>\n<li>Exactly-Once Processing<\/li>\n<\/ul>\n<ul>\n<li>First-In-First-Out Delivery<\/li>\n<\/ul>\n<\/li><\/ul>\n\n\n\n<p><strong>Distributed Queues<\/strong><\/p>\n\n\n\n<p>3 parts in a distributed messaging system<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>the components of distributed system<\/li><li>queue (distributed on Amazon SQS servers),<\/li><li>messages in the queue.<\/li><\/ul>\n\n\n\n<p>Below, system send messages to queue and receive messages from queue. The queue (holds messages A through E) redundantly stores the messages across multiple Amazon SQS servers.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"266\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/08\/image-259.png\" alt=\"\" class=\"wp-image-2778\"\/><\/figure>\n\n\n\n<p><strong>Message Lifecycle<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"400\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/08\/image-260-443x400.png\" alt=\"\" class=\"wp-image-2779\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/08\/image-260-443x400.png 443w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/08\/image-260.png 624w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>A producer or component 1 sends message A to a queue, and the message is distributed across the Amazon SQS servers redundantly.<\/li><li>When a consumer or component 2 is ready to process messages, it consumes messages from the queue, and message A is returned. While message A is being processed, it remains in the queue and isn&#8217;t returned to subsequent receive requests for the duration of the visibility timeout.<\/li><li>The consumer or component 2 deletes message A from the queue to prevent the message from being received and processed again when the visibility timeout expires.<\/li><\/ol>\n\n\n\n<p><strong>Best Practices<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Processing Messages in a Timely Manner<\/li><li>Handling Request Errors<\/li><li>Setting Up Long Polling<\/li><li>Capturing Problematic Messages<\/li><li>Setting Up Dead-Letter Queue Retention<\/li><li>Avoiding Inconsistent Message Processing<\/li><li>Implementing Request-Response Systems<\/li><\/ul>\n\n\n\n<p>To reduce costs, batch message actions:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>use the Amazon SQS batch API actions<\/li><li>use long polling together with buffered asynchronous client.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Reliable, scalable, hosted queue service for sending, storing and retrieving messages. Queue act as a buffer between sender and receiver. 256kb message, &gt;256kb managed using SQS extended client library which uses S3, deliver message atleast once, not FIFO, can be create in any region, retained for 14 days can be sent and read simultaneously long&#8230;<\/p>\n","protected":false},"author":1,"featured_media":342,"parent":53,"menu_order":24,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[10,13,14,5],"class_list":["post-339","page","type-page","status-publish","has-post-thumbnail","hentry","tag-amazon-web-services","tag-aws-certified-solutions-architect-professional","tag-aws-exam-dumps","tag-aws-solutions-architect"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Amazon Simple Queue Service (SQS) - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Want to become AWS Solutions Architect Associate - Learn Amazon Simple Queue Service (Amazon SQS) and try thousands of practice test Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Amazon Simple Queue Service (SQS) - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Want to become AWS Solutions Architect Associate - Learn Amazon Simple Queue Service (Amazon SQS) and try thousands of practice test Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-01T12:30:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/02\/Amazon-SQS.png\" \/>\n\t<meta property=\"og:image:width\" content=\"804\" \/>\n\t<meta property=\"og:image:height\" content=\"478\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/\",\"name\":\"Amazon Simple Queue Service (SQS) - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-02-07T09:41:55+00:00\",\"dateModified\":\"2020-05-01T12:30:31+00:00\",\"description\":\"Want to become AWS Solutions Architect Associate - Learn Amazon Simple Queue Service (Amazon SQS) and try thousands of practice test Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Solutions Architect Associate (SAA-C03)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Introduction to Amazon Simple Queue Service (Amazon SQS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Amazon Simple Queue Service (SQS) - Testprep Training Tutorials","description":"Want to become AWS Solutions Architect Associate - Learn Amazon Simple Queue Service (Amazon SQS) and try thousands of practice test Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/","og_locale":"en_US","og_type":"article","og_title":"Amazon Simple Queue Service (SQS) - Testprep Training Tutorials","og_description":"Want to become AWS Solutions Architect Associate - Learn Amazon Simple Queue Service (Amazon SQS) and try thousands of practice test Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-01T12:30:31+00:00","og_image":[{"width":804,"height":478,"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/02\/Amazon-SQS.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/","name":"Amazon Simple Queue Service (SQS) - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-02-07T09:41:55+00:00","dateModified":"2020-05-01T12:30:31+00:00","description":"Want to become AWS Solutions Architect Associate - Learn Amazon Simple Queue Service (Amazon SQS) and try thousands of practice test Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/amazon-simple-queue-service-amazon-sqs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Solutions Architect Associate (SAA-C03)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-associate-table-of-content\/"},{"@type":"ListItem","position":3,"name":"Introduction to Amazon Simple Queue Service (Amazon SQS)"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":7,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/339\/revisions"}],"predecessor-version":[{"id":5171,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/339\/revisions\/5171"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/53"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media\/342"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}