AWSQueueService UsageValue










0














I'm new to this AWS and SQS and playing with it. My SQS billing says I have used my free tier allocation limit in just 10 days for the month and I am not clear what is the reason for such a heavy usage, when 99.9% if time the Queues are empty.



I have a total of 6 queues including 2 DLQs. I have created them all using default settings and not set any throttling or assigned any extra resources.



The functional logic I implemented is, a Lambda checks if there is any notifications to send every 30 minutes and if there are then it creates a message which it puts in a SQS. 99.9% of the time the lambda returns empty results.



When a message is put on SQS then a Lambda is triggered which actually sends the notifications and any failures are put in DLQ. And if the lambda receives any error response when sending a notification then all these error messages are put in another Queue which triggers another lambda and logs these in a database. But all of this is skipped 99.9% of the time, unless I am manually testing the flow.



Below is a snippet of the SQS usage report.



Service, Operation, UsageType, StartTime, EndTime, UsageValue
AWSQueueService, Receive, EU-Requests-Tier1, 11/01/18 00:00,11/01/18 01:00, 2699
AWSQueueService, GetQueueAttributes,EU-Requests-Tier1, 11/01/18 00:00, 11/01/18 01:00, 180
AWSQueueService,GetQueueAttributes, EU-Requests-Tier1,11/01/18 01:00,11/01/18, 02:00,180
AWSQueueService,Receive,EU-Requests-Tier1,11/01/18 01:00,11/01/18,02:00,2696



In the snippet I see most of the usage is due to below actions.
AWSQueueService Receive
AWSQueueService GetQueueAttributes



It is not clear what is causing such high usage value. In some forums I have read I need to make the Queue implement LongPolling than short polling (which is the default).



It would be great if someone can explain what the actions "Receive" and "GetQueueAttributes" represent and how those can be reduced?










share|improve this question


























    0














    I'm new to this AWS and SQS and playing with it. My SQS billing says I have used my free tier allocation limit in just 10 days for the month and I am not clear what is the reason for such a heavy usage, when 99.9% if time the Queues are empty.



    I have a total of 6 queues including 2 DLQs. I have created them all using default settings and not set any throttling or assigned any extra resources.



    The functional logic I implemented is, a Lambda checks if there is any notifications to send every 30 minutes and if there are then it creates a message which it puts in a SQS. 99.9% of the time the lambda returns empty results.



    When a message is put on SQS then a Lambda is triggered which actually sends the notifications and any failures are put in DLQ. And if the lambda receives any error response when sending a notification then all these error messages are put in another Queue which triggers another lambda and logs these in a database. But all of this is skipped 99.9% of the time, unless I am manually testing the flow.



    Below is a snippet of the SQS usage report.



    Service, Operation, UsageType, StartTime, EndTime, UsageValue
    AWSQueueService, Receive, EU-Requests-Tier1, 11/01/18 00:00,11/01/18 01:00, 2699
    AWSQueueService, GetQueueAttributes,EU-Requests-Tier1, 11/01/18 00:00, 11/01/18 01:00, 180
    AWSQueueService,GetQueueAttributes, EU-Requests-Tier1,11/01/18 01:00,11/01/18, 02:00,180
    AWSQueueService,Receive,EU-Requests-Tier1,11/01/18 01:00,11/01/18,02:00,2696



    In the snippet I see most of the usage is due to below actions.
    AWSQueueService Receive
    AWSQueueService GetQueueAttributes



    It is not clear what is causing such high usage value. In some forums I have read I need to make the Queue implement LongPolling than short polling (which is the default).



    It would be great if someone can explain what the actions "Receive" and "GetQueueAttributes" represent and how those can be reduced?










    share|improve this question
























      0












      0








      0







      I'm new to this AWS and SQS and playing with it. My SQS billing says I have used my free tier allocation limit in just 10 days for the month and I am not clear what is the reason for such a heavy usage, when 99.9% if time the Queues are empty.



      I have a total of 6 queues including 2 DLQs. I have created them all using default settings and not set any throttling or assigned any extra resources.



      The functional logic I implemented is, a Lambda checks if there is any notifications to send every 30 minutes and if there are then it creates a message which it puts in a SQS. 99.9% of the time the lambda returns empty results.



      When a message is put on SQS then a Lambda is triggered which actually sends the notifications and any failures are put in DLQ. And if the lambda receives any error response when sending a notification then all these error messages are put in another Queue which triggers another lambda and logs these in a database. But all of this is skipped 99.9% of the time, unless I am manually testing the flow.



      Below is a snippet of the SQS usage report.



      Service, Operation, UsageType, StartTime, EndTime, UsageValue
      AWSQueueService, Receive, EU-Requests-Tier1, 11/01/18 00:00,11/01/18 01:00, 2699
      AWSQueueService, GetQueueAttributes,EU-Requests-Tier1, 11/01/18 00:00, 11/01/18 01:00, 180
      AWSQueueService,GetQueueAttributes, EU-Requests-Tier1,11/01/18 01:00,11/01/18, 02:00,180
      AWSQueueService,Receive,EU-Requests-Tier1,11/01/18 01:00,11/01/18,02:00,2696



      In the snippet I see most of the usage is due to below actions.
      AWSQueueService Receive
      AWSQueueService GetQueueAttributes



      It is not clear what is causing such high usage value. In some forums I have read I need to make the Queue implement LongPolling than short polling (which is the default).



      It would be great if someone can explain what the actions "Receive" and "GetQueueAttributes" represent and how those can be reduced?










      share|improve this question













      I'm new to this AWS and SQS and playing with it. My SQS billing says I have used my free tier allocation limit in just 10 days for the month and I am not clear what is the reason for such a heavy usage, when 99.9% if time the Queues are empty.



      I have a total of 6 queues including 2 DLQs. I have created them all using default settings and not set any throttling or assigned any extra resources.



      The functional logic I implemented is, a Lambda checks if there is any notifications to send every 30 minutes and if there are then it creates a message which it puts in a SQS. 99.9% of the time the lambda returns empty results.



      When a message is put on SQS then a Lambda is triggered which actually sends the notifications and any failures are put in DLQ. And if the lambda receives any error response when sending a notification then all these error messages are put in another Queue which triggers another lambda and logs these in a database. But all of this is skipped 99.9% of the time, unless I am manually testing the flow.



      Below is a snippet of the SQS usage report.



      Service, Operation, UsageType, StartTime, EndTime, UsageValue
      AWSQueueService, Receive, EU-Requests-Tier1, 11/01/18 00:00,11/01/18 01:00, 2699
      AWSQueueService, GetQueueAttributes,EU-Requests-Tier1, 11/01/18 00:00, 11/01/18 01:00, 180
      AWSQueueService,GetQueueAttributes, EU-Requests-Tier1,11/01/18 01:00,11/01/18, 02:00,180
      AWSQueueService,Receive,EU-Requests-Tier1,11/01/18 01:00,11/01/18,02:00,2696



      In the snippet I see most of the usage is due to below actions.
      AWSQueueService Receive
      AWSQueueService GetQueueAttributes



      It is not clear what is causing such high usage value. In some forums I have read I need to make the Queue implement LongPolling than short polling (which is the default).



      It would be great if someone can explain what the actions "Receive" and "GetQueueAttributes" represent and how those can be reduced?







      amazon-web-services amazon-sqs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 19:18









      Mateen-Hussain

      177114




      177114






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268706%2fawsqueueservice-usagevalue%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268706%2fawsqueueservice-usagevalue%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto