waterdrop 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +10 -11
- data/MIT-LICENSE +18 -0
- data/README.md +69 -20
- data/certs/mensfeld.pem +21 -21
- data/docker-compose.yml +1 -1
- data/lib/water_drop/contracts/message.rb +1 -0
- data/lib/water_drop/patches/rdkafka_producer.rb +49 -0
- data/lib/water_drop/producer.rb +2 -2
- data/lib/water_drop/version.rb +1 -1
- data/waterdrop.gemspec +1 -1
- metadata +27 -26
- metadata.gz.sig +0 -0
- data/LICENSE +0 -165
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24189103d7583fac3c911f4b32244655ffa2cd1b5a95abe0e73dbd4344530c5b
|
4
|
+
data.tar.gz: b4f5c0e95af559e0a0a929d14a3b56b39c4da5edc9b1d9ffe995e8b1852d9c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd49152ec9f6325cf58d9d470ed1ccfdb0c5b5d9a899bcdca289500ab56008b1153db35bf90f8e5e167692be8c79cd5bf96bbf66f9f515f97922bb217a0544d5
|
7
|
+
data.tar.gz: 32b36daf1f26227c58690fea5a6846c7599d1e8859e074ca3f2075cf0effa187cfbb4cb86a50ea22dfe169d3af54fd2e3232e14c569efcaa625f52166f227dbb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# WaterDrop changelog
|
2
2
|
|
3
|
+
## 2.0.2 (2021-08-13)
|
4
|
+
- Add support for `partition_key`
|
5
|
+
- Switch license from `LGPL-3.0` to `MIT`
|
6
|
+
- Switch flushing on close to sync
|
7
|
+
|
3
8
|
## 2.0.1 (2021-06-05)
|
4
9
|
- Remove Ruby 2.5 support and update minimum Ruby requirement to 2.6
|
5
10
|
- Fix the `finalizer references object to be finalized` warning issued with 3.0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
waterdrop (2.0.
|
4
|
+
waterdrop (2.0.2)
|
5
5
|
concurrent-ruby (>= 1.1)
|
6
6
|
dry-configurable (~> 0.8)
|
7
7
|
dry-monitor (~> 0.3)
|
@@ -12,7 +12,7 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (6.1.
|
15
|
+
activesupport (6.1.4)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
17
|
i18n (>= 1.6, < 2)
|
18
18
|
minitest (>= 5.1)
|
@@ -25,16 +25,16 @@ GEM
|
|
25
25
|
dry-configurable (0.12.1)
|
26
26
|
concurrent-ruby (~> 1.0)
|
27
27
|
dry-core (~> 0.5, >= 0.5.0)
|
28
|
-
dry-container (0.
|
28
|
+
dry-container (0.8.0)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
30
|
dry-configurable (~> 0.1, >= 0.1.3)
|
31
|
-
dry-core (0.
|
31
|
+
dry-core (0.7.1)
|
32
32
|
concurrent-ruby (~> 1.0)
|
33
33
|
dry-equalizer (0.3.0)
|
34
34
|
dry-events (0.3.0)
|
35
35
|
concurrent-ruby (~> 1.0)
|
36
36
|
dry-core (~> 0.5, >= 0.5)
|
37
|
-
dry-inflector (0.2.
|
37
|
+
dry-inflector (0.2.1)
|
38
38
|
dry-initializer (3.0.4)
|
39
39
|
dry-logic (1.2.0)
|
40
40
|
concurrent-ruby (~> 1.0)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
dry-configurable (~> 0.5)
|
44
44
|
dry-core (~> 0.5, >= 0.5)
|
45
45
|
dry-events (~> 0.2)
|
46
|
-
dry-schema (1.
|
46
|
+
dry-schema (1.7.0)
|
47
47
|
concurrent-ruby (~> 1.0)
|
48
48
|
dry-configurable (~> 0.8, >= 0.8.3)
|
49
49
|
dry-core (~> 0.5, >= 0.5)
|
@@ -65,13 +65,13 @@ GEM
|
|
65
65
|
dry-schema (~> 1.5, >= 1.5.2)
|
66
66
|
factory_bot (6.2.0)
|
67
67
|
activesupport (>= 5.0.0)
|
68
|
-
ffi (1.15.
|
68
|
+
ffi (1.15.3)
|
69
69
|
i18n (1.8.10)
|
70
70
|
concurrent-ruby (~> 1.0)
|
71
71
|
mini_portile2 (2.6.1)
|
72
72
|
minitest (5.14.4)
|
73
|
-
rake (13.0.
|
74
|
-
rdkafka (0.
|
73
|
+
rake (13.0.6)
|
74
|
+
rdkafka (0.9.0)
|
75
75
|
ffi (~> 1.9)
|
76
76
|
mini_portile2 (~> 2.1)
|
77
77
|
rake (>= 12.3)
|
@@ -100,7 +100,6 @@ GEM
|
|
100
100
|
|
101
101
|
PLATFORMS
|
102
102
|
x86_64-darwin
|
103
|
-
x86_64-darwin-19
|
104
103
|
x86_64-linux
|
105
104
|
|
106
105
|
DEPENDENCIES
|
@@ -112,4 +111,4 @@ DEPENDENCIES
|
|
112
111
|
waterdrop!
|
113
112
|
|
114
113
|
BUNDLED WITH
|
115
|
-
2.2.
|
114
|
+
2.2.25
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
2
|
+
a copy of this software and associated documentation files (the
|
3
|
+
"Software"), to deal in the Software without restriction, including
|
4
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
5
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
6
|
+
permit persons to whom the Software is furnished to do so, subject to
|
7
|
+
the following conditions:
|
8
|
+
|
9
|
+
The above copyright notice and this permission notice shall be
|
10
|
+
included in all copies or substantial portions of the Software.
|
11
|
+
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
13
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
14
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
15
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
16
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
17
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
18
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
WaterDrop `2.0` does **not** work with Karafka `1.*` and aims to either work as a standalone producer outside of Karafka `1.*` ecosystem or as a part of not yet released Karafka `2.0.*`.
|
6
6
|
|
7
|
-
Please refer to [this](https://github.com/karafka/waterdrop/tree/1.4) branch and
|
7
|
+
Please refer to [this](https://github.com/karafka/waterdrop/tree/1.4) branch and its documentation for details about WaterDrop `1.*` usage.
|
8
8
|
|
9
9
|
[![Build Status](https://github.com/karafka/waterdrop/workflows/ci/badge.svg)](https://github.com/karafka/waterdrop/actions?query=workflow%3Aci)
|
10
10
|
[![Gem Version](https://badge.fury.io/rb/waterdrop.svg)](http://badge.fury.io/rb/waterdrop)
|
@@ -20,7 +20,26 @@ It:
|
|
20
20
|
- Supports buffering
|
21
21
|
- Supports producing messages to multiple clusters
|
22
22
|
- Supports multiple delivery policies
|
23
|
-
- Works with Kafka 1.0+ and Ruby 2.
|
23
|
+
- Works with Kafka 1.0+ and Ruby 2.6+
|
24
|
+
|
25
|
+
## Table of contents
|
26
|
+
|
27
|
+
- [WaterDrop](#waterdrop)
|
28
|
+
* [Table of contents](#table-of-contents)
|
29
|
+
* [Installation](#installation)
|
30
|
+
* [Setup](#setup)
|
31
|
+
+ [WaterDrop configuration options](#waterdrop-configuration-options)
|
32
|
+
+ [Kafka configuration options](#kafka-configuration-options)
|
33
|
+
* [Usage](#usage)
|
34
|
+
+ [Basic usage](#basic-usage)
|
35
|
+
+ [Buffering](#buffering)
|
36
|
+
- [Using WaterDrop to buffer messages based on the application logic](#using-waterdrop-to-buffer-messages-based-on-the-application-logic)
|
37
|
+
- [Using WaterDrop with rdkafka buffers to achieve periodic auto-flushing](#using-waterdrop-with-rdkafka-buffers-to-achieve-periodic-auto-flushing)
|
38
|
+
* [Instrumentation](#instrumentation)
|
39
|
+
+ [Usage statistics](#usage-statistics)
|
40
|
+
+ [Forking and potential memory problems](#forking-and-potential-memory-problems)
|
41
|
+
* [References](#references)
|
42
|
+
* [Note on contributions](#note-on-contributions)
|
24
43
|
|
25
44
|
## Installation
|
26
45
|
|
@@ -44,8 +63,8 @@ bundle install
|
|
44
63
|
|
45
64
|
WaterDrop is a complex tool, that contains multiple configuration options. To keep everything organized, all the configuration options were divided into two groups:
|
46
65
|
|
47
|
-
- WaterDrop options - options directly related to
|
48
|
-
- Kafka driver options - options related to `
|
66
|
+
- WaterDrop options - options directly related to WaterDrop and its components
|
67
|
+
- Kafka driver options - options related to `rdkafka`
|
49
68
|
|
50
69
|
To apply all those configuration options, you need to create a producer instance and use the ```#setup``` method:
|
51
70
|
|
@@ -131,20 +150,25 @@ Each message that you want to publish, will have its value checked.
|
|
131
150
|
|
132
151
|
Here are all the things you can provide in the message hash:
|
133
152
|
|
134
|
-
| Option
|
135
|
-
|
136
|
-
| `topic`
|
137
|
-
| `payload`
|
138
|
-
| `key`
|
139
|
-
| `partition`
|
140
|
-
| `
|
141
|
-
| `
|
153
|
+
| Option | Required | Value type | Description |
|
154
|
+
|-----------------|----------|---------------|----------------------------------------------------------|
|
155
|
+
| `topic` | true | String | The Kafka topic that should be written to |
|
156
|
+
| `payload` | true | String | Data you want to send to Kafka |
|
157
|
+
| `key` | false | String | The key that should be set in the Kafka message |
|
158
|
+
| `partition` | false | Integer | A specific partition number that should be written to |
|
159
|
+
| `partition_key` | false | String | Key to indicate the destination partition of the message |
|
160
|
+
| `timestamp` | false | Time, Integer | The timestamp that should be set on the message |
|
161
|
+
| `headers` | false | Hash | Headers for the message |
|
142
162
|
|
143
163
|
Keep in mind, that message you want to send should be either binary or stringified (to_s, to_json, etc).
|
144
164
|
|
145
165
|
### Buffering
|
146
166
|
|
147
|
-
WaterDrop producers support buffering
|
167
|
+
WaterDrop producers support buffering messages in their internal buffers and on the `rdkafka` level via `queue.buffering.*` set of settings.
|
168
|
+
|
169
|
+
This means that depending on your use case, you can achieve both granular buffering and flushing control when needed with context awareness and periodic and size-based flushing functionalities.
|
170
|
+
|
171
|
+
#### Using WaterDrop to buffer messages based on the application logic
|
148
172
|
|
149
173
|
```ruby
|
150
174
|
producer = WaterDrop::Producer.new
|
@@ -153,16 +177,41 @@ producer.setup do |config|
|
|
153
177
|
config.kafka = { 'bootstrap.servers': 'localhost:9092' }
|
154
178
|
end
|
155
179
|
|
156
|
-
|
180
|
+
# Simulating some events states of a transaction - notice, that the messages will be flushed to
|
181
|
+
# kafka only upon arrival of the `finished` state.
|
182
|
+
%w[
|
183
|
+
started
|
184
|
+
processed
|
185
|
+
finished
|
186
|
+
].each do |state|
|
187
|
+
producer.buffer(topic: 'events', payload: state)
|
188
|
+
|
189
|
+
puts "The messages buffer size #{producer.messages.size}"
|
190
|
+
producer.flush_sync if state == 'finished'
|
191
|
+
puts "The messages buffer size #{producer.messages.size}"
|
192
|
+
end
|
193
|
+
|
194
|
+
producer.close
|
195
|
+
```
|
157
196
|
|
158
|
-
|
159
|
-
|
160
|
-
|
197
|
+
#### Using WaterDrop with rdkafka buffers to achieve periodic auto-flushing
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
producer = WaterDrop::Producer.new
|
201
|
+
|
202
|
+
producer.setup do |config|
|
203
|
+
config.kafka = {
|
204
|
+
'bootstrap.servers': 'localhost:9092',
|
205
|
+
# Accumulate messages for at most 10 seconds
|
206
|
+
'queue.buffering.max.ms' => 10_000
|
207
|
+
}
|
161
208
|
end
|
162
209
|
|
163
|
-
|
164
|
-
|
165
|
-
|
210
|
+
# WaterDrop will flush messages minimum once every 10 seconds
|
211
|
+
30.times do |i|
|
212
|
+
producer.produce_async(topic: 'events', payload: i.to_s)
|
213
|
+
sleep(1)
|
214
|
+
end
|
166
215
|
|
167
216
|
producer.close
|
168
217
|
```
|
data/certs/mensfeld.pem
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
2
|
MIIEODCCAqCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhtYWNp
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
3
|
+
ZWovREM9bWVuc2ZlbGQvREM9cGwwHhcNMjEwODExMTQxNTEzWhcNMjIwODExMTQx
|
4
|
+
NTEzWjAjMSEwHwYDVQQDDBhtYWNpZWovREM9bWVuc2ZlbGQvREM9cGwwggGiMA0G
|
5
|
+
CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDV2jKH4Ti87GM6nyT6D+ESzTI0MZDj
|
6
|
+
ak2/TEwnxvijMJyCCPKT/qIkbW4/f0VHM4rhPr1nW73sb5SZBVFCLlJcOSKOBdUY
|
7
|
+
TMY+SIXN2EtUaZuhAOe8LxtxjHTgRHvHcqUQMBENXTISNzCo32LnUxweu66ia4Pd
|
8
|
+
1mNRhzOqNv9YiBZvtBf7IMQ+sYdOCjboq2dlsWmJiwiDpY9lQBTnWORnT3mQxU5x
|
9
|
+
vPSwnLB854cHdCS8fQo4DjeJBRZHhEbcE5sqhEMB3RZA3EtFVEXOxlNxVTS3tncI
|
10
|
+
q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gRqZKp/ECe7ZzPzXj
|
24
|
+
pIy9vHxTANKYVyI4qj8OrFdEM5BQNu8oQpL0iQ==
|
25
25
|
-----END CERTIFICATE-----
|
data/docker-compose.yml
CHANGED
@@ -22,6 +22,7 @@ module WaterDrop
|
|
22
22
|
required(:payload).filled(:str?)
|
23
23
|
optional(:key).maybe(:str?, :filled?)
|
24
24
|
optional(:partition).filled(:int?, gteq?: -1)
|
25
|
+
optional(:partition_key).maybe(:str?, :filled?)
|
25
26
|
optional(:timestamp).maybe { time? | int? }
|
26
27
|
optional(:headers).maybe(:hash?)
|
27
28
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module WaterDrop
|
4
|
+
# Patches to external components
|
5
|
+
module Patches
|
6
|
+
# `Rdkafka::Producer` patches
|
7
|
+
module RdkafkaProducer
|
8
|
+
# Errors upon which we want to retry message production
|
9
|
+
# @note Since production happens async, those errors should only occur when using
|
10
|
+
# partition_key, thus only then we handle them
|
11
|
+
RETRYABLES = %w[
|
12
|
+
leader_not_available
|
13
|
+
err_not_leader_for_partition
|
14
|
+
invalid_replication_factor
|
15
|
+
transport
|
16
|
+
timed_out
|
17
|
+
].freeze
|
18
|
+
|
19
|
+
# How many attempts do we want to make before re-raising the error
|
20
|
+
MAX_ATTEMPTS = 5
|
21
|
+
|
22
|
+
private_constant :RETRYABLES, :MAX_ATTEMPTS
|
23
|
+
|
24
|
+
# @param args [Object] anything `Rdkafka::Producer#produce` accepts
|
25
|
+
#
|
26
|
+
# @note This can be removed once this: https://github.com/appsignal/rdkafka-ruby/issues/163
|
27
|
+
# is resolved.
|
28
|
+
def produce(**args)
|
29
|
+
attempt ||= 0
|
30
|
+
attempt += 1
|
31
|
+
|
32
|
+
super
|
33
|
+
rescue Rdkafka::RdkafkaError => e
|
34
|
+
raise unless args.key?(:partition_key)
|
35
|
+
# We care only about specific errors
|
36
|
+
# https://docs.confluent.io/platform/current/clients/librdkafka/html/md_INTRODUCTION.html
|
37
|
+
raise unless RETRYABLES.any? { |message| e.message.to_s.include?(message) }
|
38
|
+
raise if attempt > MAX_ATTEMPTS
|
39
|
+
|
40
|
+
max_sleep = 2**attempt / 10.0
|
41
|
+
sleep rand(0.01..max_sleep)
|
42
|
+
|
43
|
+
retry
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
Rdkafka::Producer.prepend(WaterDrop::Patches::RdkafkaProducer)
|
data/lib/water_drop/producer.rb
CHANGED
@@ -101,9 +101,9 @@ module WaterDrop
|
|
101
101
|
# This should be used only in case a producer was not closed properly and forgotten
|
102
102
|
ObjectSpace.undefine_finalizer(id)
|
103
103
|
|
104
|
-
# Flush has
|
104
|
+
# Flush has its own buffer mutex but even if it is blocked, flushing can still happen
|
105
105
|
# as we close the client after the flushing (even if blocked by the mutex)
|
106
|
-
flush(
|
106
|
+
flush(true)
|
107
107
|
|
108
108
|
# We should not close the client in several threads the same time
|
109
109
|
# It is safe to run it several times but not exactly the same moment
|
data/lib/water_drop/version.rb
CHANGED
data/waterdrop.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = 'https://github.com/karafka/waterdrop'
|
15
15
|
spec.summary = 'Kafka messaging made easy!'
|
16
16
|
spec.description = spec.summary
|
17
|
-
spec.license = '
|
17
|
+
spec.license = 'MIT'
|
18
18
|
|
19
19
|
spec.add_dependency 'concurrent-ruby', '>= 1.1'
|
20
20
|
spec.add_dependency 'dry-configurable', '~> 0.8'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waterdrop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -11,30 +11,30 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
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
|
26
26
|
EQQWMBSBEm1hY2llakBtZW5zZmVsZC5wbDAdBgNVHRIEFjAUgRJtYWNpZWpAbWVu
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
27
|
+
c2ZlbGQucGwwDQYJKoZIhvcNAQELBQADggGBADD0/UuTTFgW+CGk2U0RDw2RBOca
|
28
|
+
W2LTF/G7AOzuzD0Tc4voc7WXyrgKwJREv8rgBimLnNlgmFJLmtUCh2U/MgxvcilH
|
29
|
+
yshYcbseNvjkrtYnLRlWZR4SSB6Zei5AlyGVQLPkvdsBpNegcG6w075YEwzX/38a
|
30
|
+
8V9B/Yri2OGELBz8ykl7BsXUgNoUPA/4pHF6YRLz+VirOaUIQ4JfY7xGj6fSOWWz
|
31
|
+
/rQ/d77r6o1mfJYM/3BRVg73a3b7DmRnE5qjwmSaSQ7u802pJnLesmArch0xGCT/
|
32
|
+
fMmRli1Qb+6qOTl9mzD6UDMAyFR4t6MStLm0mIEqM0nBO5nUdUWbC7l9qXEf8XBE
|
33
|
+
2DP28p3EqSuS+lKbAWKcqv7t0iRhhmaod+Yn9mcrLN1sa3q3KSQ9BCyxezCD4Mk2
|
34
|
+
R2P11bWoCtr70BsccVrN8jEhzwXngMyI2gVt750Y+dbTu1KgRqZKp/ECe7ZzPzXj
|
35
|
+
pIy9vHxTANKYVyI4qj8OrFdEM5BQNu8oQpL0iQ==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2021-
|
37
|
+
date: 2021-08-13 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: concurrent-ruby
|
@@ -138,7 +138,7 @@ files:
|
|
138
138
|
- CHANGELOG.md
|
139
139
|
- Gemfile
|
140
140
|
- Gemfile.lock
|
141
|
-
- LICENSE
|
141
|
+
- MIT-LICENSE
|
142
142
|
- README.md
|
143
143
|
- certs/mensfeld.pem
|
144
144
|
- config/errors.yml
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- lib/water_drop/instrumentation.rb
|
153
153
|
- lib/water_drop/instrumentation/monitor.rb
|
154
154
|
- lib/water_drop/instrumentation/stdout_listener.rb
|
155
|
+
- lib/water_drop/patches/rdkafka_producer.rb
|
155
156
|
- lib/water_drop/producer.rb
|
156
157
|
- lib/water_drop/producer/async.rb
|
157
158
|
- lib/water_drop/producer/buffer.rb
|
@@ -166,7 +167,7 @@ files:
|
|
166
167
|
- waterdrop.gemspec
|
167
168
|
homepage: https://github.com/karafka/waterdrop
|
168
169
|
licenses:
|
169
|
-
-
|
170
|
+
- MIT
|
170
171
|
metadata: {}
|
171
172
|
post_install_message:
|
172
173
|
rdoc_options: []
|
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
184
|
- !ruby/object:Gem::Version
|
184
185
|
version: '0'
|
185
186
|
requirements: []
|
186
|
-
rubygems_version: 3.2.
|
187
|
+
rubygems_version: 3.2.25
|
187
188
|
signing_key:
|
188
189
|
specification_version: 4
|
189
190
|
summary: Kafka messaging made easy!
|
metadata.gz.sig
CHANGED
Binary file
|
data/LICENSE
DELETED
@@ -1,165 +0,0 @@
|
|
1
|
-
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
-
Version 3, 29 June 2007
|
3
|
-
|
4
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
-
Everyone is permitted to copy and distribute verbatim copies
|
6
|
-
of this license document, but changing it is not allowed.
|
7
|
-
|
8
|
-
|
9
|
-
This version of the GNU Lesser General Public License incorporates
|
10
|
-
the terms and conditions of version 3 of the GNU General Public
|
11
|
-
License, supplemented by the additional permissions listed below.
|
12
|
-
|
13
|
-
0. Additional Definitions.
|
14
|
-
|
15
|
-
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
-
General Public License.
|
18
|
-
|
19
|
-
"The Library" refers to a covered work governed by this License,
|
20
|
-
other than an Application or a Combined Work as defined below.
|
21
|
-
|
22
|
-
An "Application" is any work that makes use of an interface provided
|
23
|
-
by the Library, but which is not otherwise based on the Library.
|
24
|
-
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
-
of using an interface provided by the Library.
|
26
|
-
|
27
|
-
A "Combined Work" is a work produced by combining or linking an
|
28
|
-
Application with the Library. The particular version of the Library
|
29
|
-
with which the Combined Work was made is also called the "Linked
|
30
|
-
Version".
|
31
|
-
|
32
|
-
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
-
Corresponding Source for the Combined Work, excluding any source code
|
34
|
-
for portions of the Combined Work that, considered in isolation, are
|
35
|
-
based on the Application, and not on the Linked Version.
|
36
|
-
|
37
|
-
The "Corresponding Application Code" for a Combined Work means the
|
38
|
-
object code and/or source code for the Application, including any data
|
39
|
-
and utility programs needed for reproducing the Combined Work from the
|
40
|
-
Application, but excluding the System Libraries of the Combined Work.
|
41
|
-
|
42
|
-
1. Exception to Section 3 of the GNU GPL.
|
43
|
-
|
44
|
-
You may convey a covered work under sections 3 and 4 of this License
|
45
|
-
without being bound by section 3 of the GNU GPL.
|
46
|
-
|
47
|
-
2. Conveying Modified Versions.
|
48
|
-
|
49
|
-
If you modify a copy of the Library, and, in your modifications, a
|
50
|
-
facility refers to a function or data to be supplied by an Application
|
51
|
-
that uses the facility (other than as an argument passed when the
|
52
|
-
facility is invoked), then you may convey a copy of the modified
|
53
|
-
version:
|
54
|
-
|
55
|
-
a) under this License, provided that you make a good faith effort to
|
56
|
-
ensure that, in the event an Application does not supply the
|
57
|
-
function or data, the facility still operates, and performs
|
58
|
-
whatever part of its purpose remains meaningful, or
|
59
|
-
|
60
|
-
b) under the GNU GPL, with none of the additional permissions of
|
61
|
-
this License applicable to that copy.
|
62
|
-
|
63
|
-
3. Object Code Incorporating Material from Library Header Files.
|
64
|
-
|
65
|
-
The object code form of an Application may incorporate material from
|
66
|
-
a header file that is part of the Library. You may convey such object
|
67
|
-
code under terms of your choice, provided that, if the incorporated
|
68
|
-
material is not limited to numerical parameters, data structure
|
69
|
-
layouts and accessors, or small macros, inline functions and templates
|
70
|
-
(ten or fewer lines in length), you do both of the following:
|
71
|
-
|
72
|
-
a) Give prominent notice with each copy of the object code that the
|
73
|
-
Library is used in it and that the Library and its use are
|
74
|
-
covered by this License.
|
75
|
-
|
76
|
-
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
-
document.
|
78
|
-
|
79
|
-
4. Combined Works.
|
80
|
-
|
81
|
-
You may convey a Combined Work under terms of your choice that,
|
82
|
-
taken together, effectively do not restrict modification of the
|
83
|
-
portions of the Library contained in the Combined Work and reverse
|
84
|
-
engineering for debugging such modifications, if you also do each of
|
85
|
-
the following:
|
86
|
-
|
87
|
-
a) Give prominent notice with each copy of the Combined Work that
|
88
|
-
the Library is used in it and that the Library and its use are
|
89
|
-
covered by this License.
|
90
|
-
|
91
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
-
document.
|
93
|
-
|
94
|
-
c) For a Combined Work that displays copyright notices during
|
95
|
-
execution, include the copyright notice for the Library among
|
96
|
-
these notices, as well as a reference directing the user to the
|
97
|
-
copies of the GNU GPL and this license document.
|
98
|
-
|
99
|
-
d) Do one of the following:
|
100
|
-
|
101
|
-
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
-
License, and the Corresponding Application Code in a form
|
103
|
-
suitable for, and under terms that permit, the user to
|
104
|
-
recombine or relink the Application with a modified version of
|
105
|
-
the Linked Version to produce a modified Combined Work, in the
|
106
|
-
manner specified by section 6 of the GNU GPL for conveying
|
107
|
-
Corresponding Source.
|
108
|
-
|
109
|
-
1) Use a suitable shared library mechanism for linking with the
|
110
|
-
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
-
a copy of the Library already present on the user's computer
|
112
|
-
system, and (b) will operate properly with a modified version
|
113
|
-
of the Library that is interface-compatible with the Linked
|
114
|
-
Version.
|
115
|
-
|
116
|
-
e) Provide Installation Information, but only if you would otherwise
|
117
|
-
be required to provide such information under section 6 of the
|
118
|
-
GNU GPL, and only to the extent that such information is
|
119
|
-
necessary to install and execute a modified version of the
|
120
|
-
Combined Work produced by recombining or relinking the
|
121
|
-
Application with a modified version of the Linked Version. (If
|
122
|
-
you use option 4d0, the Installation Information must accompany
|
123
|
-
the Minimal Corresponding Source and Corresponding Application
|
124
|
-
Code. If you use option 4d1, you must provide the Installation
|
125
|
-
Information in the manner specified by section 6 of the GNU GPL
|
126
|
-
for conveying Corresponding Source.)
|
127
|
-
|
128
|
-
5. Combined Libraries.
|
129
|
-
|
130
|
-
You may place library facilities that are a work based on the
|
131
|
-
Library side by side in a single library together with other library
|
132
|
-
facilities that are not Applications and are not covered by this
|
133
|
-
License, and convey such a combined library under terms of your
|
134
|
-
choice, if you do both of the following:
|
135
|
-
|
136
|
-
a) Accompany the combined library with a copy of the same work based
|
137
|
-
on the Library, uncombined with any other library facilities,
|
138
|
-
conveyed under the terms of this License.
|
139
|
-
|
140
|
-
b) Give prominent notice with the combined library that part of it
|
141
|
-
is a work based on the Library, and explaining where to find the
|
142
|
-
accompanying uncombined form of the same work.
|
143
|
-
|
144
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
-
|
146
|
-
The Free Software Foundation may publish revised and/or new versions
|
147
|
-
of the GNU Lesser General Public License from time to time. Such new
|
148
|
-
versions will be similar in spirit to the present version, but may
|
149
|
-
differ in detail to address new problems or concerns.
|
150
|
-
|
151
|
-
Each version is given a distinguishing version number. If the
|
152
|
-
Library as you received it specifies that a certain numbered version
|
153
|
-
of the GNU Lesser General Public License "or any later version"
|
154
|
-
applies to it, you have the option of following the terms and
|
155
|
-
conditions either of that published version or of any later version
|
156
|
-
published by the Free Software Foundation. If the Library as you
|
157
|
-
received it does not specify a version number of the GNU Lesser
|
158
|
-
General Public License, you may choose any version of the GNU Lesser
|
159
|
-
General Public License ever published by the Free Software Foundation.
|
160
|
-
|
161
|
-
If the Library as you received it specifies that a proxy can decide
|
162
|
-
whether future versions of the GNU Lesser General Public License shall
|
163
|
-
apply, that proxy's public statement of acceptance of any version is
|
164
|
-
permanent authorization for you to choose that version for the
|
165
|
-
Library.
|