
SQS Events and AWS Lambda with Ruby on Jets
In this video tutorial, we’ll cover SQS Events and how to connect them up to AWS Lambda Functions with Ruby on Jets. We’ll build a Jets project from scratch with the sqs_event declaration. Essentially creating an autoscaling worker processing tier. We’ll deploy the application and test the SQS event. We’ll show you how simple it is to get started with Ruby on Jets and SQS Events.
Example
class HardJob
class_timeout 30 # must be less than or equal to the SQS queue default timeout
sqs_event "hello-queue"
def dig
puts "dig event #{JSON.dump(event)}"
end
end
- Ruby on Jets SQS Events Docs
- The full source code is available on GitHub: tongueroo/jets-sqs-example
Hope you’ve enjoyed this article. If you find AWS Lambda, Serverless and Ruby on Jets interesting, please give it ⭐️ on GitHub. I’d appreciate it. 👍
Jets Events Series
Tutorials to help your journey in the DevOps and Infrastructure-as-Code world.
The best way to learn is by doing. You retain information better when to do. BoltOps Learn videos helps you learn how to build actual things. You'll thank yourself.
Thanks for reading this far. If you found this article useful, I'd really appreciate it if you share this article so others can find it too! Thanks 😁 Also follow me on Twitter.
Got questions? Check out BoltOps.