lambdakiq 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +9 -8
- data/bin/bootstrap +1 -1
- data/bin/console +1 -1
- data/bin/setup +1 -1
- data/bin/test +1 -1
- data/lambdakiq.gemspec +2 -2
- data/lib/lambdakiq/adapter.rb +4 -0
- data/lib/lambdakiq/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c10e382880b58dac88a01eee68f22cce23d8d7d6ff713ec525013178e3e8006
|
4
|
+
data.tar.gz: ab6471d97e828138612e5f346b7f8ab4f025acc891ebbedfc85919107bf6c2f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03bea250fda7adbbaefc8fd2de9c8bdbac8a804ba31fbffdb220267cf454e15544194e4ab8d833f5b565d6c8191fc176a37da562f1bb732ba5b2bf43d01a6990
|
7
|
+
data.tar.gz: a1aadd19c099de54bb375c6e65613e7051558ff669da35fbbe83323b5747eed2c5437d33a1b85a98cf49a2d5f68d3dd0ac50a66ffacf238bd7d03b892d0a0745
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
![Lambdakiq: ActiveJob on SQS & Lambda](images/Lambdakiq.png)
|
2
2
|
|
3
|
-
![Test](https://github.com/
|
3
|
+
![Test](https://github.com/rails-lambda/lambdakiq/workflows/Test/badge.svg)
|
4
4
|
|
5
5
|
# Lambdakiq
|
6
6
|
|
7
|
-
<a href="https://lamby.
|
7
|
+
<a href="https://lamby.cloud"><img src="https://raw.githubusercontent.com/rails-lambda/lamby/master/images/social2.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="450" style="margin-left:1rem;margin-bottom:1rem;" /></a>
|
8
|
+
A drop-in replacement for [Sidekiq](https://github.com/mperham/sidekiq) when running Rails in AWS Lambda using the [Lamby](https://lamby.cloud) gem.
|
8
9
|
|
9
10
|
Lambdakiq allows you to leverage AWS' managed infrastructure to the fullest extent. Gone are the days of managing pods and long polling processes. Instead AWS delivers messages directly to your Rails' job functions and scales it up and down as needed. Observability is built in using AWS CloudWatch Metrics, Dashboards, and Alarms. Learn more about [Using AWS Lambda with Amazon SQS](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html) or get started now.
|
10
11
|
|
@@ -20,7 +21,7 @@ Lambdakiq allows you to leverage AWS' managed infrastructure to the fullest exte
|
|
20
21
|
|
21
22
|
## Project Setup
|
22
23
|
|
23
|
-
This gem assumes your Rails application is on AWS Lambda, ideally with our [Lamby](https://lamby.
|
24
|
+
This gem assumes your Rails application is on AWS Lambda, ideally with our [Lamby](https://lamby.cloud) gem. It could be using Lambda's traditional zip package type or the newer [container](https://dev.to/aws-heroes/lambda-containers-with-rails-a-perfect-match-4lgb) format. If Rails on Lambda is new to you, consider following our [quick start](https://lamby.cloud/docs/quick_start) guide to get your first application up and running. From there, to use Lambdakiq, here are steps to setup your project
|
24
25
|
|
25
26
|
### Bundle & Config
|
26
27
|
|
@@ -56,11 +57,11 @@ ActionMailer::MailDeliveryJob.include Lambdakiq::Worker
|
|
56
57
|
ActionMailer::MailDeliveryJob.queue_as ENV['JOBS_QUEUE_NAME']
|
57
58
|
```
|
58
59
|
|
59
|
-
The same Docker image will be used for both your `web` and `jobs` functions (example setup in following sections). The [Lamby](https://lamby.
|
60
|
+
The same Docker image will be used for both your `web` and `jobs` functions (example setup in following sections). The [Lamby](https://lamby.cloud) gem can automatically can detect if Lambdakiq is present when using the newer `Lamby.cmd` or older lower `Lamby.handler` method. That said, please take a look at the `JobsLambda` in the following section and how `ImageConfig` is used as the golden path for sharing containers.
|
60
61
|
|
61
62
|
### SQS Resources
|
62
63
|
|
63
|
-
Open up your project's SAM [`template.yaml`](https://lamby.
|
64
|
+
Open up your project's SAM [`template.yaml`](https://lamby.cloud/docs/anatomy#file-template-yaml) file and make the following additions and changes. First, we need to create your [SQS queues](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html) under the `Resources` section.
|
64
65
|
|
65
66
|
```yaml
|
66
67
|
JobsQueue:
|
@@ -235,7 +236,7 @@ And finally, here are the metrics which each dimension can chart using [CloudWat
|
|
235
236
|
|
236
237
|
Please share how you are using CloudWatch to monitor and/or alert on your ActiveJobs with Lambdakiq!
|
237
238
|
|
238
|
-
💬 https://github.com/
|
239
|
+
💬 https://github.com/rails-lambda/lambdakiq/discussions/3
|
239
240
|
|
240
241
|
## Common Questions
|
241
242
|
|
@@ -266,8 +267,8 @@ $ ./bin/setup
|
|
266
267
|
$ ./bin/test
|
267
268
|
```
|
268
269
|
|
269
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
270
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rails-lambda/lambdakiq. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
270
271
|
|
271
272
|
## Code of Conduct
|
272
273
|
|
273
|
-
Everyone interacting in the Lambdakiq project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
274
|
+
Everyone interacting in the Lambdakiq project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rails-lambda/lambdakiq/blob/master/CODE_OF_CONDUCT.md).
|
data/bin/bootstrap
CHANGED
data/bin/console
CHANGED
data/bin/setup
CHANGED
data/bin/test
CHANGED
data/lambdakiq.gemspec
CHANGED
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "lambdakiq"
|
7
7
|
spec.version = Lambdakiq::VERSION
|
8
8
|
spec.authors = ["Ken Collins"]
|
9
|
-
spec.email = ["
|
9
|
+
spec.email = ["ken@metaskills.net"]
|
10
10
|
spec.summary = %q{Scalable Rails Background Processing with AWS Lambda & SQS.}
|
11
11
|
spec.description = %q{Scalable Rails Background Processing with AWS Lambda & SQS.}
|
12
|
-
spec.homepage = "https://github.com/
|
12
|
+
spec.homepage = "https://github.com/rails-lambda/lambdakiq"
|
13
13
|
spec.license = "MIT"
|
14
14
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
15
15
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|images)/}) }
|
data/lib/lambdakiq/adapter.rb
CHANGED
data/lib/lambdakiq/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lambdakiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
version: '0'
|
167
167
|
description: Scalable Rails Background Processing with AWS Lambda & SQS.
|
168
168
|
email:
|
169
|
-
-
|
169
|
+
- ken@metaskills.net
|
170
170
|
executables: []
|
171
171
|
extensions: []
|
172
172
|
extra_rdoc_files: []
|
@@ -206,7 +206,7 @@ files:
|
|
206
206
|
- lib/lambdakiq/version.rb
|
207
207
|
- lib/lambdakiq/worker.rb
|
208
208
|
- vendor/.keep
|
209
|
-
homepage: https://github.com/
|
209
|
+
homepage: https://github.com/rails-lambda/lambdakiq
|
210
210
|
licenses:
|
211
211
|
- MIT
|
212
212
|
metadata: {}
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.2.7
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Scalable Rails Background Processing with AWS Lambda & SQS.
|