![]() ![]() I can navigate to the Lambda console and create a simple new function that just prints out the message body with some Python code like this: def lambda_handler(event, context): Now that I have a queue I want to create a Lambda function to process it. At the moment the Lambda triggers only work with standard queues and not FIFO queues. Triggering Lambda from SQSįirst, I’ll need an existing SQS standard queue or I’ll need to create one. I’ll go over to the AWS Management Console and open up SQS to create a new queue. ![]() ![]() By adding support for SQS to Lambda we’re removing a lot of the undifferentiated heavy lifting of running a polling service or creating an SQS to SNS mapping. Over the past 4 years we’ve added a large number of features and event sources for Lambda making it easier for customers to just get things done. Today, Lambda supports Node.js, Java, Go, C#, and Python runtimes letting customers minimize changes to existing codebases and giving them flexibility to build new ones. It has seen immediate adoption across a wide array of use-cases from web and mobile backends to IT policy engines to data processing pipelines. Lambda is a compute service that lets you run code without provisioning or managing servers and it launched the serverless revolution back in 2014. Today, SQS is one of our most popular services used by hundreds of thousands of customers at absolutely massive scales as one of the fundamental building blocks of many applications.ĪWS Lambda, by comparison, is a relative new kid on the block having been released at AWS re:Invent in 2014 (I was in the crowd that day!). Looking back, I can see some of the tenets that make AWS what it is today were present even very early on in the development of SQS: fully managed, network accessible, pay-as-you-go, and no minimum commitments. For some perspective, the largest commercial hard drives in 2004 were around 60GB, PHP 5 came out, Facebook had just launched, the TV show Friends ended, GMail was brand new, and I was still in high school. SQS was the first service we ever launched with AWS back in 2004, 14 years ago. I know our customers are excited to take it for a spin so feel free to skip to the walk through section below if you don’t want a trip down memory lane. We can now use Amazon Simple Queue Service (Amazon SQS) to trigger AWS Lambda functions! This is a stellar update with some key functionality that I’ve personally been looking forward to for more than 4 years. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |