« The Amazon EC2 Spotathon | Main | The AWS Report - Ramesh Panuganty of Cognizant »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c534853ef017c333c0822970b

Listed below are links to weblogs that reference Amazon SQS - Long Polling and Request Batching / Client-Side Buffering :

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Jonathan Jørgensen

This is absolutely great!

Why only 20 seconds? This limit is annoyingly low. Why not let people choose a longer limit, lets say 90 seconds?

It's not a problem if you only have 1 queue, but more complex infrastructures rely on many queues.

Davidmays

I would assume the 20 seconds represents their tradeoff between the functionality and scalability of the solution. Remember that with long polling, their servers have to maintain open TCP connections for the duration of the poll. Since TCP connections are not an unlimited resource, they have to draw the line somewhere.

Little's Law is instructive here:
http://en.wikipedia.org/wiki/Little's_law
"Little's Law tells us that the average number of customers in the store L, is the effective arrival rate λ, times the average time that a customer spends in the store W, or simply: L=λW"

So for a fixed arrival rate (request to open a polling connection) and a fixed number of available TCP connections per server (L), if you increase W by leaving the connections open longer, you run out of capacity sooner.

Put another way:

Yo dawg, I heard you like queues, so we put some queuing theory in your queue so you can calculate while you wait.

The comments to this entry are closed.

Featured Events

Empowering Publishers with the AWS Cloud
[London]

Wednesday, May 15, 2013
8:00 AM - 11:30 AM

Join us for an open discussion to learn how Amazon Web Services and Cloudreach are enabling the publishing community to reach a greater audience without the need to invest in significant, static IT infrastructures and hear first-hand from Trinity Mirror and News International, and how these “traditional” UK newspapers now serve a global, multi-media audience across an elastic cloud infrastructure.
Register Now

Learn the Benefits of Running a Private Social Network on AWS
[Online]

Tuesday, May 21, 2013
9:00 AM PT / 12:00 PM ET

Amazon Web Services and tibbr, an AWS Technology Partner invite you to learn how to foster innovation, improve customer support, employee motivation and breakdown departmental silos with a tibbr Private Social Network application running on AWS.
Register Now

Deliver High Performance and Scalable SQL Databases on AWS
[Online]

Wednesday, May 22, 2013
10:00 AM PT / 1:00 PM ET

Amazon Web Services (AWS) and NuoDB, an AWS Partner Network (APN) Technology Partner, invite you to attend this live webinar where you will learn how to use NuoDB to manage your data across multiple data centers and geographies to enable a highly available, secure and scalable system.
Register Now

Maximize Your Microsoft SharePoint Solutions on AWS
[Online]

Tuesday, June 4, 2013
8:00 AM PT / 11:00 AM ET

Join Amazon Web Services (AWS) and Capgemini, an AWS Premier Consulting Partner, to explore how the latest technology innovations with Microsoft SharePoint may be combined to deliver maximum business value to your customers.
Register Now

Deploying Your Business Critical SQL Server Apps on Amazon EC2
[Online]

Wednesday, June 5, 2013
10:00 AM PT / 1:00 PM ET

Amazon Web Services (AWS) and SIOS Technology Corp, an AWS Technology Partner, invite you to attend this live webinar to learn key considerations for deployment of mission critical SQL Server applications to Amazon EC2.
Register Now

Manage Big Data Analytics Using SAP HANA One On AWS
[Online]

Tuesday, June 11, 2013
10:00 AM PT / 1:00 PM ET

Jump Start Your Big Data Analytics using SAP HANA One with RunE2E and AWS. Amazon Web Services (AWS) and RunE2E, an Advanced Consulting Partner, invite you to join this live webinar to learn how SAP HANA One provides the ideal platform to manage your Big Data solutions on AWS.
Register Now

The AWS Report


Brought to You By

Jeff Barr (@jeffbarr):



Jinesh Varia (@jinman):


Email Subscription

Enter your email address:

Delivered by FeedBurner

May 2013

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31