Blossom Logo Deploy your apps with Heroku-like simplicity using Blossom See Your Savings
BoltOps Logo
SQS Events and AWS Lambda with Ruby on Jets header image

SQS Events and AWS Lambda with Ruby on Jets

Tung Nguyen Tung Nguyen · February 25, 2019 · 1 min read

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

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

Blossom Logo
Deploy Your Apps with Ease

Blossom lets you deploy to your own servers with Heroku-like simplicity. Connect any cloud provider and we'll handle the rest. Save time and money with Blossom.

BoltOps Blog
Join a group of good-looking folks who get free email updates from BoltOps.