pub_sub_model_sync 0.5.4 → 0.5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57e8d23c9e514734a8a45664f641378bbb46e8de5315c536a0f692efcbe29dd2
4
- data.tar.gz: d0f290dac2b0563ffe5412f85e1a6a6e340e281049755b26dc732a3661501b92
3
+ metadata.gz: a06777a1f70a6efc94e7024b5b5c1f38d04f7eac8c9721a82fe84ffa042d15bb
4
+ data.tar.gz: f558c5116ec027c2b387dd04a16d03657d64f5fbefa244e9f075114cbd34ef21
5
5
  SHA512:
6
- metadata.gz: 351901f98e6c806e7a4efe20abdac65de5bf8f716dc57e1889302eab02d33b3f2f4d449cd0d351fd5ae882d16abe79a77791bea8ad956c52cda47829319eb858
7
- data.tar.gz: e906d601a8c37b999a8b6d550e605e9c04b67db692cec4b60220ae286bef9adde7132d8614cee4ca7dab9ef43538ae2baede3f07e402c4c21a189b79a9ba6873
6
+ metadata.gz: 41815c6d3390abcb71c3c4855e74e95ef7ead047e0e9315925eb8c1a56572f3458304d19bcdd38ceb51e203071f26a18071184fcbb766c47e5f617b2e0f530f4
7
+ data.tar.gz: 06f17b5f3ecfde95baf7c6465d371798a3257f2bbe86b288af4ab44250c8c8ff62faaa2597d4ddb520badf469a9558b2430e581d5d7c33bdfdd2d9e2ad83ae0a
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ # 0.5.4.1 (January 8, 2021)
4
+ - fix: make sequential message processor google-pub/sub
5
+
3
6
  # 0.5.4 (January 8, 2021)
4
7
  - fix: exclude identifiers when syncing model
5
8
  - feat: callbacks support for future extra params
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pub_sub_model_sync (0.5.4)
4
+ pub_sub_model_sync (0.5.4.1)
5
5
  rails
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -312,6 +312,14 @@ config.debug = true
312
312
  - Auto publish update only if payload has changed
313
313
  - On delete, payload must only be composed by ids
314
314
 
315
+ ## Q&A
316
+ - Error "could not obtain a connection from the pool within 5.000 seconds"
317
+ This problem occurs because pub/sub dependencies (kafka, google-pubsub, rabbitmq) use many threads to perform notifications where the qty of threads is greater than qty of DB pools ([Google pubsub info](https://github.com/googleapis/google-cloud-ruby/blob/master/google-cloud-pubsub/lib/google/cloud/pubsub/subscription.rb#L888))
318
+ To fix the problem, edit config/database.yml and increase the quantity of ```pool: 10```
319
+ - Google pubsub: How to process notifications parallely and not sequentially (default 1 thread)?
320
+ ```ruby PubSubModelSync::ServiceGoogle::LISTEN_SETTINGS = { threads: { callback: qty_threads } } ```
321
+ Note: by this way some notifications can be processed before others thus missing relationship errors can appear
322
+
315
323
  ## Contributing
316
324
 
317
325
  Bug reports and pull requests are welcome on GitHub at https://github.com/owen2345/pub_sub_model_sync. 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.
@@ -7,6 +7,7 @@ end
7
7
 
8
8
  module PubSubModelSync
9
9
  class ServiceGoogle < ServiceBase
10
+ LISTEN_SETTINGS = { threads: { callback: 1 } }.freeze
10
11
  attr_accessor :service, :topic, :subscription, :subscriber
11
12
 
12
13
  def initialize
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PubSubModelSync
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.4.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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
4
+ version: 0.5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen