toiler 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/toiler/utils/environment_loader.rb +1 -0
- data/lib/toiler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5147089083d760568e0f9c58442bac5f37e0c313
|
4
|
+
data.tar.gz: 087b505c5d9643f04fce1989c7014dc3b96ddad4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64b2d544c5178bfa61a66a03620b1a0d29c71de424ebc60874b87fb2259095d6d01faec7b049fe2e23536968d0ba23c74129cb57caa5948fe06ff7ef785e43f5
|
7
|
+
data.tar.gz: bf2e185000f5086fd0cb97fc657eb0a3c888e0279e88cd93438634407f59cea9bce22b340fc5c2a9489fd1519c90e728e01238b53b933d2f47d7bef0d12112d7
|
data/README.md
CHANGED
@@ -8,8 +8,6 @@ a different approach at loadbalancing and uses long-polling.
|
|
8
8
|
Toiler allows to specify the amount of processors (threads) that should be spawned for each queue.
|
9
9
|
Instead of [shoryuken's](https://github.com/phstc/shoryuken) loadbalancing approach, Toiler delegates this work to the kernel scheduling threads.
|
10
10
|
|
11
|
-
Because Toiler uses threads to provide concurrency, **each thread instatiates a new worker**, as it should be expected, so please **use class variables to store shared variables like clients**.
|
12
|
-
|
13
11
|
###Long-Polling
|
14
12
|
A Fetcher thread is spawned for each queue.
|
15
13
|
Fetchers are resposible for polling SQS and retreiving messages.
|
@@ -46,6 +46,7 @@ module Toiler
|
|
46
46
|
def initialize_aws
|
47
47
|
return if Toiler.options[:aws].empty?
|
48
48
|
::Aws.config[:region] = Toiler.options[:aws][:region]
|
49
|
+
::Aws.config[:endpoint] = Toiler.options[:aws][:endpoint] if Toiler.options[:aws][:endpoint]
|
49
50
|
set_aws_credentials
|
50
51
|
end
|
51
52
|
|
data/lib/toiler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Schepens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.5.1
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Toiler is a super efficient AWS SQS thread based message processor
|