pub_sub_model_sync 0.5.4.1 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/pub_sub_model_sync/service_google.rb +2 -1
- data/lib/pub_sub_model_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a19e13bd4fa78cde78749ffa47096832c31abbc3fdc10e3938988c2c4a73d44
|
4
|
+
data.tar.gz: a6abb31c4d900dbb1f7307833e88056ac6d1621bbed46b4136f289602b5aab5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 128c4edf32925745e271933c0416c44740c1b553c61f04efb75111787404a419b70185a55527db87d28f4c0d03b534d01ef8e01fa46191b539c1766c315de685
|
7
|
+
data.tar.gz: 4e73d7f16aead95368d4e6830530259e1d664fb0a23b4fc0f5f49e13aead8b5fbc1778aac8c2ea5a0e7c4f996a10f925d3af51c0730bf962ac6d712a11f7bb84
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
# 0.5.5 (January 11, 2021)
|
4
|
+
- feat: google-pub/sub receive messages in the same order they were delivered
|
5
|
+
|
3
6
|
# 0.5.4.1 (January 8, 2021)
|
4
|
-
- fix:
|
7
|
+
- fix: google-pub/sub receive messages sequentially and not in parallel (default 5 threads).
|
5
8
|
|
6
9
|
# 0.5.4 (January 8, 2021)
|
7
10
|
- fix: exclude identifiers when syncing model
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -310,7 +310,8 @@ config.debug = true
|
|
310
310
|
- Add alias attributes when subscribing (similar to publisher)
|
311
311
|
- Add flag ```model.ps_processing``` to indicate that the current transaction is being processed by pub/sub
|
312
312
|
- Auto publish update only if payload has changed
|
313
|
-
- On delete, payload must only be composed by ids
|
313
|
+
- On delete, payload must only be composed by ids
|
314
|
+
- Change notifications into messages
|
314
315
|
|
315
316
|
## Q&A
|
316
317
|
- Error "could not obtain a connection from the pool within 5.000 seconds"
|
@@ -8,6 +8,7 @@ end
|
|
8
8
|
module PubSubModelSync
|
9
9
|
class ServiceGoogle < ServiceBase
|
10
10
|
LISTEN_SETTINGS = { threads: { callback: 1 } }.freeze
|
11
|
+
SUBSCRIPTION_SETTINGS = { message_ordering: true }.freeze
|
11
12
|
attr_accessor :service, :topic, :subscription, :subscriber
|
12
13
|
|
13
14
|
def initialize
|
@@ -41,7 +42,7 @@ module PubSubModelSync
|
|
41
42
|
|
42
43
|
def subscribe_to_topic
|
43
44
|
topic.subscription(config.subscription_key) ||
|
44
|
-
topic.subscribe(config.subscription_key)
|
45
|
+
topic.subscribe(config.subscription_key, SUBSCRIPTION_SETTINGS)
|
45
46
|
end
|
46
47
|
|
47
48
|
def process_message(received_message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pub_sub_model_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|