karafka 1.4.9 → 2.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/FUNDING.yml +3 -0
  4. data/.github/workflows/ci.yml +78 -26
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +46 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +39 -49
  9. data/LICENSE +14 -0
  10. data/LICENSE-COMM +89 -0
  11. data/LICENSE-LGPL +165 -0
  12. data/README.md +16 -48
  13. data/bin/benchmarks +85 -0
  14. data/bin/create_token +28 -0
  15. data/bin/integrations +160 -0
  16. data/bin/stress +13 -0
  17. data/certs/karafka-pro.pem +11 -0
  18. data/config/errors.yml +4 -38
  19. data/docker-compose.yml +11 -3
  20. data/karafka.gemspec +17 -17
  21. data/lib/active_job/consumer.rb +22 -0
  22. data/lib/active_job/karafka.rb +18 -0
  23. data/lib/active_job/queue_adapters/karafka_adapter.rb +29 -0
  24. data/lib/active_job/routing_extensions.rb +15 -0
  25. data/lib/karafka/app.rb +13 -20
  26. data/lib/karafka/base_consumer.rb +103 -34
  27. data/lib/karafka/cli/base.rb +4 -4
  28. data/lib/karafka/cli/info.rb +43 -8
  29. data/lib/karafka/cli/install.rb +3 -8
  30. data/lib/karafka/cli/server.rb +17 -30
  31. data/lib/karafka/cli.rb +4 -11
  32. data/lib/karafka/connection/client.rb +279 -93
  33. data/lib/karafka/connection/listener.rb +137 -38
  34. data/lib/karafka/connection/messages_buffer.rb +57 -0
  35. data/lib/karafka/connection/pauses_manager.rb +46 -0
  36. data/lib/karafka/connection/rebalance_manager.rb +62 -0
  37. data/lib/karafka/contracts/config.rb +25 -7
  38. data/lib/karafka/contracts/consumer_group.rb +0 -173
  39. data/lib/karafka/contracts/consumer_group_topic.rb +17 -7
  40. data/lib/karafka/contracts/server_cli_options.rb +1 -9
  41. data/lib/karafka/contracts.rb +1 -1
  42. data/lib/karafka/env.rb +46 -0
  43. data/lib/karafka/errors.rb +14 -18
  44. data/lib/karafka/helpers/multi_delegator.rb +2 -2
  45. data/lib/karafka/instrumentation/callbacks/error.rb +40 -0
  46. data/lib/karafka/instrumentation/callbacks/statistics.rb +42 -0
  47. data/lib/karafka/instrumentation/monitor.rb +14 -21
  48. data/lib/karafka/instrumentation/stdout_listener.rb +64 -91
  49. data/lib/karafka/instrumentation.rb +21 -0
  50. data/lib/karafka/licenser.rb +65 -0
  51. data/lib/karafka/{params → messages}/batch_metadata.rb +7 -13
  52. data/lib/karafka/messages/builders/batch_metadata.rb +30 -0
  53. data/lib/karafka/messages/builders/message.rb +38 -0
  54. data/lib/karafka/messages/builders/messages.rb +40 -0
  55. data/lib/karafka/{params/params.rb → messages/message.rb} +7 -12
  56. data/lib/karafka/messages/messages.rb +64 -0
  57. data/lib/karafka/{params → messages}/metadata.rb +4 -6
  58. data/lib/karafka/messages/seek.rb +9 -0
  59. data/lib/karafka/patches/rdkafka/consumer.rb +22 -0
  60. data/lib/karafka/processing/executor.rb +96 -0
  61. data/lib/karafka/processing/executors_buffer.rb +49 -0
  62. data/lib/karafka/processing/jobs/base.rb +18 -0
  63. data/lib/karafka/processing/jobs/consume.rb +28 -0
  64. data/lib/karafka/processing/jobs/revoked.rb +22 -0
  65. data/lib/karafka/processing/jobs/shutdown.rb +23 -0
  66. data/lib/karafka/processing/jobs_queue.rb +121 -0
  67. data/lib/karafka/processing/worker.rb +57 -0
  68. data/lib/karafka/processing/workers_batch.rb +22 -0
  69. data/lib/karafka/railtie.rb +65 -0
  70. data/lib/karafka/routing/builder.rb +15 -14
  71. data/lib/karafka/routing/consumer_group.rb +10 -18
  72. data/lib/karafka/routing/consumer_mapper.rb +1 -2
  73. data/lib/karafka/routing/router.rb +1 -1
  74. data/lib/karafka/routing/subscription_group.rb +53 -0
  75. data/lib/karafka/routing/subscription_groups_builder.rb +51 -0
  76. data/lib/karafka/routing/topic.rb +47 -25
  77. data/lib/karafka/runner.rb +59 -0
  78. data/lib/karafka/serialization/json/deserializer.rb +6 -15
  79. data/lib/karafka/server.rb +62 -25
  80. data/lib/karafka/setup/config.rb +86 -159
  81. data/lib/karafka/status.rb +13 -3
  82. data/lib/karafka/templates/example_consumer.rb.erb +16 -0
  83. data/lib/karafka/templates/karafka.rb.erb +14 -50
  84. data/lib/karafka/time_trackers/base.rb +19 -0
  85. data/lib/karafka/time_trackers/pause.rb +84 -0
  86. data/lib/karafka/time_trackers/poll.rb +65 -0
  87. data/lib/karafka/version.rb +1 -1
  88. data/lib/karafka.rb +30 -13
  89. data.tar.gz.sig +0 -0
  90. metadata +78 -108
  91. metadata.gz.sig +0 -0
  92. data/MIT-LICENCE +0 -18
  93. data/lib/karafka/assignment_strategies/round_robin.rb +0 -13
  94. data/lib/karafka/attributes_map.rb +0 -63
  95. data/lib/karafka/backends/inline.rb +0 -16
  96. data/lib/karafka/base_responder.rb +0 -226
  97. data/lib/karafka/cli/flow.rb +0 -48
  98. data/lib/karafka/cli/missingno.rb +0 -19
  99. data/lib/karafka/code_reloader.rb +0 -67
  100. data/lib/karafka/connection/api_adapter.rb +0 -158
  101. data/lib/karafka/connection/batch_delegator.rb +0 -55
  102. data/lib/karafka/connection/builder.rb +0 -23
  103. data/lib/karafka/connection/message_delegator.rb +0 -36
  104. data/lib/karafka/consumers/batch_metadata.rb +0 -10
  105. data/lib/karafka/consumers/callbacks.rb +0 -71
  106. data/lib/karafka/consumers/includer.rb +0 -64
  107. data/lib/karafka/consumers/responders.rb +0 -24
  108. data/lib/karafka/consumers/single_params.rb +0 -15
  109. data/lib/karafka/contracts/responder_usage.rb +0 -54
  110. data/lib/karafka/fetcher.rb +0 -42
  111. data/lib/karafka/helpers/class_matcher.rb +0 -88
  112. data/lib/karafka/helpers/config_retriever.rb +0 -46
  113. data/lib/karafka/helpers/inflector.rb +0 -26
  114. data/lib/karafka/params/builders/batch_metadata.rb +0 -30
  115. data/lib/karafka/params/builders/params.rb +0 -38
  116. data/lib/karafka/params/builders/params_batch.rb +0 -25
  117. data/lib/karafka/params/params_batch.rb +0 -60
  118. data/lib/karafka/patches/ruby_kafka.rb +0 -47
  119. data/lib/karafka/persistence/client.rb +0 -29
  120. data/lib/karafka/persistence/consumers.rb +0 -45
  121. data/lib/karafka/persistence/topics.rb +0 -48
  122. data/lib/karafka/responders/builder.rb +0 -36
  123. data/lib/karafka/responders/topic.rb +0 -55
  124. data/lib/karafka/routing/topic_mapper.rb +0 -53
  125. data/lib/karafka/serialization/json/serializer.rb +0 -31
  126. data/lib/karafka/setup/configurators/water_drop.rb +0 -36
  127. data/lib/karafka/templates/application_responder.rb.erb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54b5bde8c7a61dbf95021a53f40a5789eb29a5b297e6639a616eac5a0883391d
4
- data.tar.gz: faae48e60cba546b503a222b4c02e5165e7b6934bfab4414d0116e30b4f79089
3
+ metadata.gz: a441a124346099aa31fb36a2241c2abfbc242ab6f3f9ad197b82d8786e78232e
4
+ data.tar.gz: 81a706d58e469ecc48759dfe28c30e3779baab848122b72c194c30e06a7cdd7d
5
5
  SHA512:
6
- metadata.gz: ca53d510bd6a0e2c6efb7cec8a4b298c5668ef738943b1fa97acace0b7f9a4a89e9e2f1e45ba0ae3e3202613b4259ff8e1408a7ebf727566f11863bf4f7c637b
7
- data.tar.gz: a5f735ca604ef83fb324c1c011ad4f3f9cdfa57009c3eb88a852b1a9c41bffdad7f87fd936c1b5b95076b38535fcaa38dd3aa9afdac355098f071578fef81dad
6
+ metadata.gz: bf9ebff340150913cf273bc3f09c9f3dd3c02e6ffe427fd00ead842995e5f146d554609cd1ff4d1039ee96ef349b8e7712e2c557abc322a9e0300886bc765b6a
7
+ data.tar.gz: 054cf8240a33a133c2c9dce5f1c3c2ac26877006c8a823c1e58c903fccd8cac7c31b5d0c0d2ec22257d8959d40bb69d49bf5676f378c33004807a78413278b3e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ open_collective: karafka
@@ -1,5 +1,7 @@
1
1
  name: ci
2
2
 
3
+ concurrency: ci-${{ github.ref }}
4
+
3
5
  on:
4
6
  pull_request:
5
7
  push:
@@ -7,6 +9,36 @@ on:
7
9
  - cron: '0 1 * * *'
8
10
 
9
11
  jobs:
12
+ diffend:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ fail-fast: false
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ with:
19
+ fetch-depth: 0
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: 3.1
24
+ - name: Install latest bundler
25
+ run: gem install bundler --no-document
26
+ - name: Install Diffend plugin
27
+ run: bundle plugin install diffend
28
+ - name: Bundle Secure
29
+ run: bundle secure
30
+
31
+ coditsu:
32
+ runs-on: ubuntu-latest
33
+ strategy:
34
+ fail-fast: false
35
+ steps:
36
+ - uses: actions/checkout@v2
37
+ with:
38
+ fetch-depth: 0
39
+ - name: Run Coditsu
40
+ run: \curl -sSL https://api.coditsu.io/run/ci | bash
41
+
10
42
  specs:
11
43
  runs-on: ubuntu-latest
12
44
  needs: diffend
@@ -14,61 +46,81 @@ jobs:
14
46
  fail-fast: false
15
47
  matrix:
16
48
  ruby:
49
+ - '3.1'
17
50
  - '3.0'
18
51
  - '2.7'
19
- - '2.6'
20
52
  include:
21
- - ruby: '3.0'
53
+ - ruby: '3.1'
22
54
  coverage: 'true'
23
55
  steps:
24
56
  - uses: actions/checkout@v2
25
57
  - name: Install package dependencies
26
58
  run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
59
+
60
+ - name: Run Kafka with docker-compose
61
+ run: |
62
+ docker-compose up -d
63
+ sleep 10
64
+
27
65
  - name: Set up Ruby
28
66
  uses: ruby/setup-ruby@v1
29
67
  with:
30
68
  ruby-version: ${{matrix.ruby}}
31
- - name: Install latest bundler
69
+
70
+ - name: Install latest Bundler
32
71
  run: |
33
72
  gem install bundler --no-document
34
73
  bundle config set without 'tools benchmarks docs'
74
+
35
75
  - name: Bundle install
36
76
  run: |
37
77
  bundle config set without development
38
78
  bundle install --jobs 4 --retry 3
39
- - name: Run Kafka with docker-compose
40
- run: docker-compose up -d
41
- - name: Run all tests
79
+
80
+ - name: Run all specs
42
81
  env:
43
82
  GITHUB_COVERAGE: ${{matrix.coverage}}
44
83
  run: bundle exec rspec
45
84
 
46
- diffend:
85
+ integrations:
47
86
  runs-on: ubuntu-latest
87
+ needs: diffend
48
88
  strategy:
49
89
  fail-fast: false
90
+ matrix:
91
+ ruby:
92
+ - '3.1'
93
+ - '3.0'
94
+ - '2.7'
95
+ include:
96
+ - ruby: '3.1'
97
+ coverage: 'true'
50
98
  steps:
51
99
  - uses: actions/checkout@v2
52
- with:
53
- fetch-depth: 0
100
+ - name: Install package dependencies
101
+ run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
102
+
103
+ - name: Run Kafka with docker-compose
104
+ run: |
105
+ docker-compose up -d
106
+ sleep 5
107
+
54
108
  - name: Set up Ruby
55
109
  uses: ruby/setup-ruby@v1
56
110
  with:
57
- ruby-version: 3.0
58
- - name: Install latest bundler
59
- run: gem install bundler --no-document
60
- - name: Install Diffend plugin
61
- run: bundle plugin install diffend
62
- - name: Bundle Secure
63
- run: bundle secure
111
+ ruby-version: ${{matrix.ruby}}
64
112
 
65
- coditsu:
66
- runs-on: ubuntu-latest
67
- strategy:
68
- fail-fast: false
69
- steps:
70
- - uses: actions/checkout@v2
71
- with:
72
- fetch-depth: 0
73
- - name: Run Coditsu
74
- run: \curl -sSL https://api.coditsu.io/run/ci | bash
113
+ - name: Install latest Bundler
114
+ run: |
115
+ gem install bundler --no-document
116
+ bundle config set without 'tools benchmarks docs'
117
+
118
+ - name: Bundle install
119
+ run: |
120
+ bundle config set without development
121
+ bundle install --jobs 4 --retry 3
122
+
123
+ - name: Run integration tests
124
+ env:
125
+ GITHUB_COVERAGE: ${{matrix.coverage}}
126
+ run: bundle exec bin/integrations
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.1.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 2.0.0-alpha1 (Unreleased)
4
+ - Change license to `LGPL-3.0`
5
+ - Introduce a Pro subscription
6
+ - Switch from `ruby-kafka` to `librdkafka` as an underlying driver
7
+ - Introduce fully automatic integration tests that go through the whole server lifecycle
8
+ - Integrate WaterDrop tightly with autoconfiguration inheritance and an option to redefine it
9
+ - Multi-threaded support for concurrent jobs consumption (when in separate topics and/or partitions)
10
+ - Introduce subscriptions groups concept for better resources management
11
+ - Remove completely all the callbacks in favour of finalizer method `#on_shutdown`
12
+ - Provide `on_revoked` method for taking actions upon topic revoke
13
+ - Remove single message consumption mode in favour of documentation on how to do it easily by yourself
14
+ - Provide sync and async offset management with async preferred
15
+ - Introduce seamless Ruby on Rails integration via `Rails::Railte`
16
+ - Update `cli info` to reflect the `2.0` details
17
+ - Remove responders in favour of WaterDrop `2.0` producer
18
+ - Remove pidfiles support
19
+ - Remove daemonization support
20
+ - Stop validating `kafka` configuration beyond minimum as it is handled by `librdkafka`
21
+ - Remove topics mappers concept
22
+ - Reorganize monitoring to match new concepts
23
+ - Notify on fatal worker processing errors
24
+ - Rename `Karafka::Params::BatchMetadata` to `Karafka::Messages::BatchMetadata`
25
+ - Rename `Karafka::Params::Params` to `Karafka::Messages::Message`
26
+ - Rename `#params_batch` in consumers to `#messages`
27
+ - Rename `Karafka::Params::Metadata` to `Karafka::Messages::Metadata`
28
+ - Allow for processing work of multiple consumer groups by the same worker poll
29
+ - Rename `Karafka::Fetcher` to `Karafka::Runner` and align notifications key names
30
+ - Update install templates
31
+ - `sidekiq-backend` is no longer supported
32
+ - `testing` gem for RSpec has been updated
33
+ - `WaterDrop` `2.1+` support
34
+ - Simple routing style (`0.5`) now builds a single consumer group instead of one per topic
35
+ - Example apps were updated
36
+ - Hook for underlying statistics emitted from librdkafka have been added
37
+ - Hook for underlying async errors emitted from librdkafka have been added
38
+ - ActiveJob Rails adapter
39
+ - Added benchmarks that can be used to profile Karafka
40
+ - Standardize error hook for all error reporting
41
+
42
+ ## 1.4.11 (2021-12-04)
43
+ - Source code metadata url added to the gemspec
44
+ - Gem bump
45
+
46
+ ## 1.4.10 (2021-10-30)
47
+ - update gems requirements in the gemspec (nijikon)
48
+
3
49
  ## 1.4.9 (2021-09-29)
4
50
  - fix `dry-configurable` deprecation warnings for default value as positional argument
5
51
 
data/Gemfile CHANGED
@@ -6,6 +6,12 @@ plugin 'diffend'
6
6
 
7
7
  gemspec
8
8
 
9
+ # Karafka gem does not require this but we add it here so we can test the integration with
10
+ # ActiveJob much easier
11
+ group :integrations do
12
+ gem 'activejob'
13
+ end
14
+
9
15
  group :test do
10
16
  gem 'byebug'
11
17
  gem 'factory_bot'
data/Gemfile.lock CHANGED
@@ -1,37 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.4.9)
5
- dry-configurable (~> 0.8)
6
- dry-inflector (~> 0.1)
7
- dry-monitor (~> 0.3)
8
- dry-validation (~> 1.2)
9
- envlogic (~> 1.1)
10
- irb (~> 1.0)
11
- ruby-kafka (>= 1.3.0)
4
+ karafka (2.0.0.pre.alpha1)
5
+ dry-configurable (~> 0.13)
6
+ dry-monitor (~> 0.5)
7
+ dry-validation (~> 1.7)
8
+ rdkafka (>= 0.10)
12
9
  thor (>= 0.20)
13
- waterdrop (~> 1.4.0)
14
- zeitwerk (~> 2.1)
10
+ waterdrop (>= 2.1.0, < 3.0.0)
11
+ zeitwerk (~> 2.3)
15
12
 
16
13
  GEM
17
14
  remote: https://rubygems.org/
18
15
  specs:
19
- activesupport (6.1.4.1)
16
+ activejob (7.0.1)
17
+ activesupport (= 7.0.1)
18
+ globalid (>= 0.3.6)
19
+ activesupport (7.0.1)
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
21
  i18n (>= 1.6, < 2)
22
22
  minitest (>= 5.1)
23
23
  tzinfo (~> 2.0)
24
- zeitwerk (~> 2.3)
25
24
  byebug (11.1.3)
26
25
  concurrent-ruby (1.1.9)
27
- delivery_boy (1.1.0)
28
- king_konf (~> 1.0)
29
- ruby-kafka (~> 1.0)
30
- diff-lcs (1.4.4)
31
- digest-crc (0.6.4)
32
- rake (>= 12.0.0, < 14.0.0)
26
+ diff-lcs (1.5.0)
33
27
  docile (1.4.0)
34
- dry-configurable (0.13.0)
28
+ dry-configurable (0.14.0)
35
29
  concurrent-ruby (~> 1.0)
36
30
  dry-core (~> 0.6)
37
31
  dry-container (0.9.0)
@@ -43,7 +37,7 @@ GEM
43
37
  concurrent-ruby (~> 1.0)
44
38
  dry-core (~> 0.5, >= 0.5)
45
39
  dry-inflector (0.2.1)
46
- dry-initializer (3.0.4)
40
+ dry-initializer (3.1.1)
47
41
  dry-logic (1.2.0)
48
42
  concurrent-ruby (~> 1.0)
49
43
  dry-core (~> 0.5, >= 0.5)
@@ -70,60 +64,56 @@ GEM
70
64
  dry-core (~> 0.5, >= 0.5)
71
65
  dry-initializer (~> 3.0)
72
66
  dry-schema (~> 1.8, >= 1.8.0)
73
- envlogic (1.1.3)
74
- dry-inflector (~> 0.1)
75
67
  factory_bot (6.2.0)
76
68
  activesupport (>= 5.0.0)
77
- i18n (1.8.10)
69
+ ffi (1.15.5)
70
+ globalid (1.0.0)
71
+ activesupport (>= 5.0)
72
+ i18n (1.9.1)
78
73
  concurrent-ruby (~> 1.0)
79
- io-console (0.5.9)
80
- irb (1.3.7)
81
- reline (>= 0.2.7)
82
- king_konf (1.0.0)
83
- minitest (5.14.4)
74
+ mini_portile2 (2.7.1)
75
+ minitest (5.15.0)
84
76
  rake (13.0.6)
85
- reline (0.2.7)
86
- io-console (~> 0.5)
77
+ rdkafka (0.11.1)
78
+ ffi (~> 1.15)
79
+ mini_portile2 (~> 2.6)
80
+ rake (> 12)
87
81
  rspec (3.10.0)
88
82
  rspec-core (~> 3.10.0)
89
83
  rspec-expectations (~> 3.10.0)
90
84
  rspec-mocks (~> 3.10.0)
91
- rspec-core (3.10.1)
85
+ rspec-core (3.10.2)
92
86
  rspec-support (~> 3.10.0)
93
- rspec-expectations (3.10.1)
87
+ rspec-expectations (3.10.2)
94
88
  diff-lcs (>= 1.2.0, < 2.0)
95
89
  rspec-support (~> 3.10.0)
96
- rspec-mocks (3.10.2)
90
+ rspec-mocks (3.10.3)
97
91
  diff-lcs (>= 1.2.0, < 2.0)
98
92
  rspec-support (~> 3.10.0)
99
- rspec-support (3.10.2)
100
- ruby-kafka (1.4.0)
101
- digest-crc
93
+ rspec-support (3.10.3)
102
94
  simplecov (0.21.2)
103
95
  docile (~> 1.1)
104
96
  simplecov-html (~> 0.11)
105
97
  simplecov_json_formatter (~> 0.1)
106
98
  simplecov-html (0.12.3)
107
99
  simplecov_json_formatter (0.1.3)
108
- thor (1.1.0)
100
+ thor (1.2.1)
109
101
  tzinfo (2.0.4)
110
102
  concurrent-ruby (~> 1.0)
111
- waterdrop (1.4.3)
112
- delivery_boy (>= 0.2, < 2.x)
113
- dry-configurable (~> 0.8)
114
- dry-monitor (~> 0.3)
115
- dry-validation (~> 1.2)
116
- ruby-kafka (>= 0.7.8)
117
- zeitwerk (~> 2.1)
118
- zeitwerk (2.4.2)
103
+ waterdrop (2.1.0)
104
+ concurrent-ruby (>= 1.1)
105
+ dry-configurable (~> 0.13)
106
+ dry-monitor (~> 0.5)
107
+ dry-validation (~> 1.7)
108
+ rdkafka (>= 0.10)
109
+ zeitwerk (~> 2.3)
110
+ zeitwerk (2.5.4)
119
111
 
120
112
  PLATFORMS
121
- ruby
122
- x86_64-darwin
123
- x86_64-darwin-19
124
113
  x86_64-linux
125
114
 
126
115
  DEPENDENCIES
116
+ activejob
127
117
  byebug
128
118
  factory_bot
129
119
  karafka!
@@ -131,4 +121,4 @@ DEPENDENCIES
131
121
  simplecov
132
122
 
133
123
  BUNDLED WITH
134
- 2.2.28
124
+ 2.3.5
data/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ Copyright (c) Maciej Mensfeld
2
+
3
+ Karafka is an Open Source project licensed under the terms of
4
+ the LGPLv3 license. Please see <https://github.com/karafka/karafka/blob/master/LGPL>
5
+ for license text.
6
+
7
+ Karafka has also commercial-friendly license, commercial support and commercial components.
8
+
9
+ All of the commercial components are present in the lib/karafka/pro directory of this repository
10
+ and their usage requires commercial license agreement.
11
+
12
+ You can find the commercial license in LICENSE-COM.
13
+
14
+ Please see https://karafka.io for purchasing options.
data/LICENSE-COMM ADDED
@@ -0,0 +1,89 @@
1
+ END-USER LICENSE AGREEMENT
2
+
3
+ ------------------------------------------------------------------------------
4
+
5
+ IMPORTANT: THIS SOFTWARE END-USER LICENSE AGREEMENT ("EULA") IS A LEGAL AGREEMENT (“Agreement”) BETWEEN YOU (THE CUSTOMER, EITHER AS AN INDIVIDUAL OR, IF PURCHASED OR OTHERWISE ACQUIRED BY OR FOR AN ENTITY, AS AN ENTITY) AND MACIEJ MENSFELD. READ IT CAREFULLY BEFORE COMPLETING THE INSTALLATION PROCESS AND USING KARAFKA PRO AND RELATED SOFTWARE COMPONENTS (“SOFTWARE”). IT PROVIDES A LICENSE TO USE THE SOFTWARE AND CONTAINS WARRANTY INFORMATION AND LIABILITY DISCLAIMERS. BY INSTALLING AND USING THE SOFTWARE, YOU ARE CONFIRMING YOUR ACCEPTANCE OF THE SOFTWARE AND AGREEING TO BECOME BOUND BY THE TERMS OF THIS AGREEMENT.
6
+
7
+ ------------------------------------------------------------------------------
8
+
9
+ In order to use the Software under this Agreement, you must receive an application token at the time of purchase, in accordance with the scope of use and other terms specified for each type of Software and as set forth in this Section 1 of this Agreement.
10
+
11
+ 1. License Grant
12
+
13
+ 1.1 General Use. This Agreement grants you a non-exclusive, non-transferable, limited license to the use rights for the Software, without the right to grant sublicenses, subject to the terms and conditions in this Agreement. The Software is licensed, not sold.
14
+
15
+ 1.2 Pro License. If you purchased a Pro License (included with the Karafka Pro Software), you may install the Software on an unlimited number of Hosts. “Host” means any physical or virtual machine which is controlled by you. You may also run an unlimited number of Workers. “Worker” means a thread within a Karafka server process which executes jobs. You may concurrently run the software on an unlimited number of Hosts, with each host running an unlimited number of Workers.
16
+
17
+ 1.3 Archive Copies. You are entitled to make a reasonable amount of copies of the Software for archival purposes. Each copy must reproduce all copyright and other proprietary rights notices on or in the Software Product.
18
+
19
+ 1.4 Electronic Delivery. All Software and license documentation shall be delivered by electronic means unless otherwise specified on the applicable invoice or at the time of purchase. Software shall be deemed delivered when it is made available for download by you (“Delivery”).
20
+
21
+ 2. Modifications. Maciej Mensfeld shall provide you with source code so that you can create Modifications of the original software. “Modification” means: (a) any addition to or deletion from the contents of a file included in the original Software or previous Modifications created by You, or (b) any new file that contains any part of the original Software or previous Modifications. While you retain all rights to any original work authored by you as part of the Modifications, We continue to own all copyright and other intellectual property rights in the Software.
22
+
23
+ 3. Restricted Uses.
24
+
25
+ 3.1 You shall not (and shall not allow any third party to): (a) decompile, disassemble, or otherwise reverse engineer the Software or attempt to reconstruct or discover any source code, underlying ideas, algorithms, file formats or programming interfaces of the Software by any means whatsoever (except and only to the extent that applicable law prohibits or restricts reverse engineering restrictions); (b) distribute, sell, sublicense, rent, lease or use the Software for time sharing, hosting, service provider or like purposes, except as expressly permitted under this Agreement; (c) redistribute the Software or Modifications other than by including the Software or a portion thereof within your own product, which must have substantially different functionality than the Software or Modifications and must not allow any third party to use the Software or Modifications, or any portions thereof, for software development or application development purposes; (d) redistribute the Software as part of a product, "appliance" or "virtual server"; (e) redistribute the Software on any server which is not directly under your control; (f) remove any product identification, proprietary, copyright or other notices contained in the Software; (g) modify any part of the Software, create a derivative work of any part of the Software (except as permitted in Section 4), or incorporate the Software, except to the extent expressly authorized in writing by Maciej Mensfeld; (h) publicly disseminate performance information or analysis (including, without limitation, benchmarks) from any source relating to the Software; (i) utilize any equipment, device, software, or other means designed to circumvent or remove any form of token verification or copy protection used by Maciej Mensfeld in connection with the Software, or use the Software together with any authorization code, Source URL, serial number, or other copy protection device not supplied by Maciej Mensfeld; (j) use the Software to develop a product which is competitive with any Maciej Mensfeld product offerings; or (k) use unauthorized Source URLS or keycode(s) or distribute or publish Source URLs or keycode(s), except as may be expressly permitted by Maciej Mensfeld in writing. If your unique application token is ever published, Maciej Mensfeld reserves the right to terminate your access without notice.
26
+
27
+ 3.2 UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE AS PART OF A PRODUCT OR SERVICE THAT PROVIDES SIMILAR FUNCTIONALITY TO THE SOFTWARE ITSELF.
28
+
29
+ The Open Source version of the Software (“LGPL Version”) is licensed under the terms of the GNU Lesser General Public License version 3.0 (“LGPL”) and not under this EULA.
30
+
31
+ 4. Ownership. Notwithstanding anything to the contrary contained herein, except for the limited license rights expressly provided herein, Maciej Mensfeld and its suppliers have and will retain all rights, title and interest (including, without limitation, all patent, copyright, trademark, trade secret and other intellectual property rights) in and to the Software and all copies, modifications and derivative works thereof (including any changes which incorporate any of your ideas, feedback or suggestions). You acknowledge that you are obtaining only a limited license right to the Software, and that irrespective of any use of the words “purchase”, “sale” or like terms hereunder no ownership rights are being conveyed to you under this Agreement or otherwise.
32
+
33
+ 5. Fees and Payment. The Software license fees will be due and payable in full as set forth in the applicable invoice or at the time of purchase. If the Software does not function properly within two weeks of purchase, please contact us within those two weeks for a refund. You shall be responsible for all taxes, withholdings, duties and levies arising from the order (excluding taxes based on the net income of Maciej Mensfeld).
34
+
35
+ 6. Support, Maintenance and Services. Subject to the terms and conditions of this Agreement, as set forth in your invoice, and as set forth on the Karafka Pro support page (https://github.com/karafka/karafka/wiki/Commercial-Support), support and maintenance services may be included with the purchase of your license subscription.
36
+
37
+ 7. Term of Agreement.
38
+
39
+ 7.1 Term. This Agreement is effective as of the Delivery of the Software and expires at such time as all license and service subscriptions hereunder have expired in accordance with their own terms (the “Term”). For clarification, the term of your license under this Agreement may be perpetual, limited for Evaluation Version, or designated as a fixed-term license in the Invoice, and shall be specified at your time of purchase. Either party may terminate this Agreement (including all related Invoices) if the other party: (a) fails to cure any material breach of this Agreement within thirty (30) days after written notice of such breach, provided that Maciej Mensfeld may terminate this Agreement immediately upon any breach of Section 3 or if you exceed any other restrictions contained in Section 1, unless otherwise specified in this agreement; (b) ceases operation without a successor; or (c) seeks protection under any bankruptcy, receivership, trust deed, creditors arrangement, composition or comparable proceeding, or if any such proceeding is instituted against such party (and not dismissed within sixty (60) days)). Termination is not an exclusive remedy and the exercise by either party of any remedy under this Agreement will be without prejudice to any other remedies it may have under this Agreement, by law, or otherwise.
40
+
41
+ 7.2 Termination. Upon any termination of this Agreement, you shall cease any and all use of any Software and destroy all copies thereof.
42
+
43
+ 7.3 Expiration of License. Upon the expiration of any term under this Agreement, (a) all Software updates and services pursuant to the license shall cease, (b) you may only continue to run existing installations of the Software, (c) you may not install the Software on any additional Hosts, and (d) any new installation of the Software shall require the purchase of a new license subscription from Maciej Mensfeld.
44
+
45
+ 8. Disclaimer of Warranties. The Software is provided "as is," with all faults, defects and errors, and without warranty of any kind. Maciej Mensfeld does not warrant that the Software will be free of bugs, errors, viruses or other defects, and Maciej Mensfeld shall have no liability of any kind for the use of or inability to use the Software, the Software content or any associated service, and you acknowledge that it is not technically practicable for Maciej Mensfeld to do so.
46
+
47
+ To the maximum extent permitted by applicable law, Maciej Mensfeld disclaims all warranties, express, implied, arising by law or otherwise, regarding the Software, the Software content and their respective performance or suitability for your intended use, including without limitation any implied warranty of merchantability, fitness for a particular purpose.
48
+
49
+ 9. Limitation of Liability.
50
+
51
+ In no event will Maciej Mensfeld be liable for any direct, indirect, consequential, incidental, special, exemplary, or punitive damages or liabilities whatsoever arising from or relating to the Software, the Software content or this Agreement, whether based on contract, tort (including negligence), strict liability or other theory, even if Maciej Mensfeld has been advised of the possibility of such damages.
52
+
53
+ In no event will Maciej Mensfeld' liability exceed the Software license price as indicated in the invoice. The existence of more than one claim will not enlarge or extend this limit.
54
+
55
+ 10. Remedies. Your exclusive remedy and Maciej Mensfeld' entire liability for breach of this Agreement shall be limited, at Maciej Mensfeld' sole and exclusive discretion, to (a) replacement of any defective software or documentation; or (b) refund of the license fee paid to Maciej Mensfeld, payable in accordance with Maciej Mensfeld' refund policy.
56
+
57
+ 11. Acknowledgements.
58
+
59
+ 11.1 Consent to the Use of Data. You agree that Maciej Mensfeld and its affiliates may collect and use technical information gathered as part of the product support services. Maciej Mensfeld may use this information solely to improve products and services and will not disclose this information in a form that personally identifies you.
60
+
61
+ 11.2 Verification. We or a certified auditor acting on our behalf, may, upon its reasonable request and at its expense, audit you with respect to the use of the Software. Such audit may be conducted by mail, electronic means or through an in-person visit to your place of business. Any such in-person audit shall be conducted during regular business hours at your facilities and shall not unreasonably interfere with your business activities. We shall not remove, copy, or redistribute any electronic material during the course of an audit. If an audit reveals that you are using the Software in a way that is in material violation of the terms of the EULA, then you shall pay our reasonable costs of conducting the audit. In the case of a material violation, you agree to pay Us any amounts owing that are attributable to the unauthorized use. In the alternative, We reserve the right, at our sole option, to terminate the licenses for the Software.
62
+
63
+ 11.3 Government End Users. If the Software and related documentation are supplied to or purchased by or on behalf of the United States Government, then the Software is deemed to be "commercial software" as that term is used in the Federal Acquisition Regulation system. Rights of the United States shall not exceed the minimum rights set forth in FAR 52.227-19 for "restricted computer software". All other terms and conditions of this Agreement apply.
64
+
65
+ 12. Third Party Software. External components included in Software may provide links to third party libraries or code (collectively “Third Party Software”) to implement various functions. Third Party Software does not comprise part of the Software. In some cases, access to Third Party Software may be included along with the Software delivery as a convenience for demonstration purposes. Such source code and libraries do not comprise the Software. Licensee acknowledges (1) that some part of Third Party Software may require additional licensing of copyright and patents from the owners of such, and (2) that distribution of any of the Software referencing or including any portion of a Third Party Software may require appropriate licensing from such third parties.
66
+
67
+ 13. Miscellaneous
68
+
69
+ 13.1 Entire Agreement. This Agreement sets forth our entire agreement with respect to the Software and the subject matter hereof and supersedes all prior and contemporaneous understandings and agreements whether written or oral.
70
+
71
+ 13.2 Amendment. Maciej Mensfeld reserves the right, in its sole discretion, to amend this Agreement from time. Amendments to this Agreement can be located at: https://github.com/karafka/karafka/blob/main/LICENSE-COMM.
72
+
73
+ 13.3 Assignment. You may not assign this Agreement or any of its rights under this Agreement without the prior written consent of Maciej Mensfeld and any attempted assignment without such consent shall be void.
74
+
75
+ 13.4 Export Compliance. You agree to comply with all applicable laws and regulations, including laws, regulations, orders or other restrictions on export, re-export or redistribution of software.
76
+
77
+ 13.5 Indemnification. You agree to defend, indemnify, and hold harmless Maciej Mensfeld from and against any lawsuits, claims, losses, damages, fines and expenses (including attorneys' fees and costs) arising out of your use of the Software or breach of this Agreement.
78
+
79
+ 13.6 Governing Law. This Agreement is governed by the laws of the Republic of Poland without regard to conflicts of laws provisions thereof, and without regard to the United Nations Convention on the International Sale of Goods or the Uniform Computer Information Transactions Act, as currently enacted by any jurisdiction or as may be codified or amended from time to time by any jurisdiction. The jurisdiction and venue for actions related to the subject matter hereof shall be the Cracow regional court located in Cracow, Poland, and both parties hereby submit to the personal jurisdiction of such courts.
80
+
81
+ 13.7 Attorneys' Fees and Costs. The prevailing party in any action to enforce this Agreement will be entitled to recover its attorneys' fees and costs in connection with such action.
82
+
83
+ 13.8 Severability. If any provision of this Agreement is held by a court of competent jurisdiction to be invalid, illegal, or unenforceable, the remainder of this Agreement will remain in full force and effect.
84
+
85
+ 13.9 Waiver. Failure or neglect by either party to enforce at any time any of the provisions of this licence Agreement shall not be construed or deemed to be a waiver of that party's rights under this Agreement.
86
+
87
+ 13.10 Headings. The headings of sections and paragraphs of this Agreement are for convenience of reference only and are not intended to restrict, affect or be of any weight in the interpretation or construction of the provisions of such sections or paragraphs.
88
+
89
+ 14. Contact Information. If you have any questions about this EULA, or if you want to contact Maciej Mensfeld for any reason, please direct correspondence to contact@karafka.io.