{"id":2919,"date":"2019-08-30T09:43:41","date_gmt":"2019-08-30T09:43:41","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=2919"},"modified":"2020-05-01T10:55:17","modified_gmt":"2020-05-01T10:55:17","slug":"sqs-2","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/","title":{"rendered":"Learning SQS"},"content":{"rendered":"\n<h3><strong>About Learning SQS<\/strong><\/h3>\r\n<p>We shall now be giving a brief overview of learning SQS and supports offered.<\/p>\r\n<ul class=\"wp-block-list\">\r\n<li>AWS service for message queue service \u00a0and delivery<\/li>\r\n<li>queue service is reliable and scalable<\/li>\r\n<li>AWS service performs\r\n<ul>\r\n<li>Sending messages<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>storing messages<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>retrieving messages<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>used by distributed applications for exchanging messages by polling<\/li>\r\n<li>message queue is a cushion or buffer between sender and receiver.<\/li>\r\n<li>256kb message size<\/li>\r\n<li>for &gt;256kb use SQS extended client library which uses S3<\/li>\r\n<li>it delivers message at least once<\/li>\r\n<li>it is not FIFO<\/li>\r\n<li>it can be created in any region, messages are retained for 14 days<\/li>\r\n<li>messages can be sent and read simultaneously<\/li>\r\n<li>long polling decreases frequent polling<\/li>\r\n<li>Usually the wait time is 20 secs if queue is empty<\/li>\r\n<li>No charge for first 1 million request, USD $0.50 for next 1 million + data transfer charges,<\/li>\r\n<li>Message queues can be scaled<\/li>\r\n<li>Amazon SQS Architectures\r\n<ul>\r\n<li>Priority (2 queues High\/Low)<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>Fanout (SNS topic\/multiple SQS queues for parallel processing)<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>Amazon SQS supports\r\n<ul>\r\n<li>standard queues<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>FIFO queues.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>Standard Queue\r\n<ul>\r\n<li>Unlimited Throughput<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>At-Least-Once Delivery<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>Best-Effort Ordering<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>FIFO Queue\r\n<ul>\r\n<li>High Throughput<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>Exactly-Once Processing<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>First-In-First-Out Delivery<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/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<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"266\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-225.png\" alt=\"\" class=\"wp-image-3901\"\/><\/figure><\/div>\n\n\n\n<p><strong>Message Lifecycle<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"400\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-226-443x400.png\" alt=\"\" class=\"wp-image-3902\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-226-443x400.png 443w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-226.png 624w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure><\/div>\n\n\n\n<p>Step 1 &#8211; A producer or component 1 sends message A to a queue, and the message is distributed across the Amazon SQS servers redundantly.<\/p>\n\n\n\n<p>Step 2 &#8211; When a consumer or component 2 is ready to process messages, it consumes messages from the queue, and message A is returned. Message A remains in queue while being processed and not returned to receive requests for duration of visibility timeout.<\/p>\n\n\n\n<p>Step 3 &#8211; 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.<\/p>\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\">\r\n<li>use the Amazon SQS batch API actions<\/li>\r\n<li>use long polling together with buffered asynchronous client.<\/li>\r\n<\/ul>\r\n<p><strong>Enrich and upgrade your profile to become an <a href=\"https:\/\/www.testpreptraining.ai\/aws-certified-developer-associate-exam-free-practice-test\">AWS Certified Developer &#8211; Associate<\/a> with expert guidance and Free Practice Test. Become job-ready Now!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>About Learning SQS We shall now be giving a brief overview of learning SQS and supports offered. AWS service for message queue service \u00a0and delivery queue service is reliable and scalable AWS service performs Sending messages storing messages retrieving messages used by distributed applications for exchanging messages by polling message queue is a cushion or&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2476,"menu_order":33,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[7,434],"class_list":["post-2919","page","type-page","status-publish","hentry","category-amazon-aws","tag-aws","tag-sqs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learning SQS - AWS Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Boost your chances to qualify AWS Certified Developer - Associate with free practice test. Take tutorial for learning SQS and become job ready 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-developer-associate\/sqs-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learning SQS - AWS Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Boost your chances to qualify AWS Certified Developer - Associate with free practice test. Take tutorial for learning SQS and become job ready Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-01T10:55:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-225.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-developer-associate\/sqs-2\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/\",\"name\":\"Learning SQS - AWS Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-08-30T09:43:41+00:00\",\"dateModified\":\"2020-05-01T10:55:17+00:00\",\"description\":\"Boost your chances to qualify AWS Certified Developer - Associate with free practice test. Take tutorial for learning SQS and become job ready Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Developer Associate (DVA-C01)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Learning 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":"Learning SQS - AWS Testprep Training Tutorials","description":"Boost your chances to qualify AWS Certified Developer - Associate with free practice test. Take tutorial for learning SQS and become job ready 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-developer-associate\/sqs-2\/","og_locale":"en_US","og_type":"article","og_title":"Learning SQS - AWS Testprep Training Tutorials","og_description":"Boost your chances to qualify AWS Certified Developer - Associate with free practice test. Take tutorial for learning SQS and become job ready Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-01T10:55:17+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-225.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-developer-associate\/sqs-2\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/","name":"Learning SQS - AWS Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-08-30T09:43:41+00:00","dateModified":"2020-05-01T10:55:17+00:00","description":"Boost your chances to qualify AWS Certified Developer - Associate with free practice test. Take tutorial for learning SQS and become job ready Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/sqs-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Developer Associate (DVA-C01)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/"},{"@type":"ListItem","position":3,"name":"Learning 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\/2919","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=2919"}],"version-history":[{"count":6,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2919\/revisions"}],"predecessor-version":[{"id":5108,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2919\/revisions\/5108"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2476"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=2919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=2919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=2919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}