rimless 3.1.0 → 3.2.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/UPGRADING.md +27 -0
- data/lib/rimless/consumer/app.rb +5 -0
- data/lib/rimless/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e998d6e028c6cfc1661ede44cbe302ad1389a21d1300f1e0380f78e65df27d2a
|
|
4
|
+
data.tar.gz: 8e101b0dc4deecfe313bd7804cac304ecc1386b0b17c1db8898db1517d5dd502
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d07a588b59a74984adcfe0d0c31e7c417fc7ee7817d8970a95e1b3d17b8e9e99225e0824793b650cd8828fd31048710f742305064cb01e2ae7750741d86e7e90
|
|
7
|
+
data.tar.gz: 68e2ea87932e37f8a03de78a1725800b77991709a900d03d7b2681aaed93269f7dbe02b93cadbceaade7ddb278b71ecacc975e307a51500b5e79448f18ef934f
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 3.2.0 (7 April 2026)
|
|
6
|
+
|
|
7
|
+
* Restored non-buffered (`$stdout.sync = true`) logging to stdout ([#75](https://github.com/hausgold/rimless/pull/75))
|
|
8
|
+
* Added a section for topic auto-creation on the upgrading guide ([#75](https://github.com/hausgold/rimless/pull/75))
|
|
9
|
+
|
|
5
10
|
### 3.1.0 (1 April 2026)
|
|
6
11
|
|
|
7
12
|
* Updated the kafka-playground ([#74](https://github.com/hausgold/rimless/pull/74))
|
data/UPGRADING.md
CHANGED
|
@@ -16,6 +16,7 @@ upgrading from Rimless 2.9.x to 3.0.
|
|
|
16
16
|
- [Offset Management](#offset-management)
|
|
17
17
|
- [Railtie / Sidekiq Server Initialization](#railtie--sidekiq-server-initialization)
|
|
18
18
|
- [Anonymous Consumer Classes](#anonymous-consumer-classes)
|
|
19
|
+
- [Topic Auto-Creation](#topic-auto-creation)
|
|
19
20
|
- [Producer Changes](#producer-changes)
|
|
20
21
|
- [Testing Changes](#testing-changes)
|
|
21
22
|
- [Consumer Specs](#consumer-specs)
|
|
@@ -341,6 +342,32 @@ Rimless.consumer.topics(
|
|
|
341
342
|
The `JobBridge.build` method will raise an `ArgumentError` if an anonymous
|
|
342
343
|
class is passed.
|
|
343
344
|
|
|
345
|
+
### Topic Auto-Creation
|
|
346
|
+
|
|
347
|
+
Karafka 2 **no longer automatically creates missing topics**. If your
|
|
348
|
+
application relied on Karafka 1's default behavior of creating topics on the
|
|
349
|
+
fly (within the Karafka server/consumer process), you will encounter errors
|
|
350
|
+
like:
|
|
351
|
+
|
|
352
|
+
```
|
|
353
|
+
[ERROR] Data polling error occurred: Subscribed topic not available:
|
|
354
|
+
production.users-api.properties: Broker: Unknown topic or partition -
|
|
355
|
+
Broker: Unknown topic or partition (unknown_topic_or_part)
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
Karafka 2 recommends using **Declarative Topics** to manage your topic
|
|
359
|
+
infrastructure. Define your topics in the routing configuration and then run:
|
|
360
|
+
|
|
361
|
+
```shell
|
|
362
|
+
$ karafka topics migrate
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
This will create or update topics to match your declared configuration.
|
|
366
|
+
|
|
367
|
+
See:
|
|
368
|
+
- [Infrastructure Topic Auto-Creation](https://karafka.io/docs/Infrastructure-Topic-Auto-Creation/)
|
|
369
|
+
- [Infrastructure Declarative Topics](https://karafka.io/docs/Infrastructure-Declarative-Topics/)
|
|
370
|
+
|
|
344
371
|
## Producer Changes
|
|
345
372
|
|
|
346
373
|
The public producer API (`Rimless.message`, `Rimless.async_message`,
|
data/lib/rimless/consumer/app.rb
CHANGED
|
@@ -81,6 +81,11 @@ module Rimless
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# We configure synchronous logging to stdout as supervising/monitoring
|
|
85
|
+
# processes await logging outputs to detect the Karafka server process
|
|
86
|
+
# is up and running properly
|
|
87
|
+
$stdout.sync = true
|
|
88
|
+
|
|
84
89
|
# Call the user-configurable block with our configuration
|
|
85
90
|
# for customizations
|
|
86
91
|
setup(&Rimless.configuration.consumer_configure)
|
data/lib/rimless/version.rb
CHANGED