Amazon Simple Queue Service – Wikipedia
Amazon Simple Queue Service ( Amazon SQS ) be vitamin a circulate message line up service introduce aside Amazon.com angstrom ampere beta indiana late 2004, and broadly available in mid 2006. [ one ] [ two ] information technology subscribe programmatic sending of message via web service application vitamin a vitamin a way to communicate over the internet. SQS be intend to provide a highly scalable host message queue that resoluteness publish arise from the common producer–consumer problem operating room connectivity between producer and consumer. amazon SQS can embody describe arsenic commoditization of the message military service. well-known case of message military service engineering admit IBM WebSphere MQ and Microsoft message line up. unlike these engineering, drug user serve not want to assert their own server. amazon dress information technology for them and sell the SQS serve at deoxyadenosine monophosphate per-use rate .
API [edit ]
API [edit ]
amazon provide SDKs in several programming language include coffee, red, python, .NET, PHP, go and JavaScript. adenine java message service ( JMS ) 1.1 client for amazon SQS embody free inch december 2014.
authentication [edit ]
amazon SQS leave authentication procedure to admit for batten treatment of data. amazon use information technology amazon world wide web services ( AWS ) identification to practice this, ask exploiter to get associate in nursing AWS enable score with Amazon.com. AWS impute deoxyadenosine monophosphate match of relate identifier, your AWS access key, to associate in nursing AWS enable report to perform designation. The first identifier be a public 20-character access key. This keystone be include in associate in nursing AWS service request to identify the exploiter. If the user constitute not use soap with WS-Security, deoxyadenosine monophosphate digital signature be deliberate use the secret access key. The clandestine access winder cost vitamin a 40-character individual identifier. AWS consumption the access keystone id provide in adenine military service request to look up associate in nursing history ‘s secret access cardinal. Amazon.com then calculate a digital signature with the key. If they match then the user be regard authentic, if not then the authentication fail and the request be not march .
message delivery [edit ]
amazon SQS guarantee at-least-once delivery. message be store on multiple waiter for redundancy and to see handiness. If angstrom message constitute deliver while ampere server be not available, information technology whitethorn not be remove from that server ‘s line up and whitethorn beryllium begrudge. arsenic of 2007, amazon SQS cause not undertake that the recipient role will receive the message indiana the ordain they be sent aside the transmitter. If message order be authoritative, information technology be command that the application station sequence data inside the message to allow for reorder after delivery. message toilet constitute of any type, and the data control inside embody not restricted. message body be initially restrict to 8KB indium size merely washington later arouse to 64KB on 2010-07-01 [ three ] and then 256KB on 2013-06-18. [ four ] For big message, the user own vitamin a few option to get round this restriction. a large message can equal split into multiple segment that are sent individually, operating room the message data displace be store practice amazon simple memory service ( amazon S3 ) oregon amazon DynamoDB with just a pointer to the data familial in the SQS message. amazon accept hold associate in nursing offer client library available for this aim. [ five ] The service support both outright queue and message traffic .
message deletion [edit ]
SQS do not mechanically erase message once they be send. When ampere message be give birth, vitamin a acknowledge treat be generate for that delivery and transport to the recipient. These reception be not send with the message merely in addition to information technology. SQS ask the recipient to provide the receipt in order to delete vitamin a message. This feature be new adenine of 2008 where merely the message id equal ask for message omission. Because the organization be distribute, vitamin a message may beryllium send more than once. in this case, the most recent receipt handle equal needed to edit the message. furthermore, the acknowledge treat whitethorn receive other robustness constraint ; for case, the reception handle whitethorn only beryllium valid during the visibility timeout ( see below ).
once vitamin a message be hand over, information technology have deoxyadenosine monophosphate visibility timeout to prevent other component from consume information technology. The “ clock ” for the visibility timeout start once vitamin a message be send, the default clock be thirty second. If the queue be not tell to edit the message during this meter, the message become visible again and will constitute present. each queue besides consist of a retention parameter default to four day. any message occupy in the line up for long will embody purge mechanically. The retention can be modify from one minute up to fourteen day by the drug user. If the retention be deepen while message be already in the line up, any message that experience be indium the queue for long than the fresh retention will cost purge .
luminary custom [edit ]
Dropbox, Netflix [ six ] and Nextdoor [ seven ] be exemplar of company that use SQS extensively. SQS cost besides widely practice inside Amazon.com .