prosody 0.7.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71b923311dd355d3fcadeec1230bf1240a53357541985b277a71728c4ae985c4
4
- data.tar.gz: 8802a27c3aafed3cc815a8add13731f044d1e1afe9b97571f6cab330c069b61f
3
+ metadata.gz: e0044def5abef46834dff47f6a1eca88178ee522004fac37d818a47b444b8402
4
+ data.tar.gz: bbad7d261d50212e683ada46a65a9794a2b60c4c2e45d9b417f3b23262f8330d
5
5
  SHA512:
6
- metadata.gz: 63a7c99772debb1c4bbe433eda845da7dfd459a8bd8dddfc83e1268858391ef0d6f73b7bbde8c3f013eb1359b9534b425d742e219d6390149d5a47a52568eb1d
7
- data.tar.gz: dd9f64f5c2987bee825827976d7d1cc2061c4825076e07c86907f876aa15739f660fc4c1e25285ff1b05691b4f2d010c928dcf3692ebe00c6ee059b3205dc042
6
+ metadata.gz: ee0f2b404cead74228c1803186f909a6452002c90be81371bcefbd22169413a11a6fe5458b2187a8f9eaa3854bd1ed149bcf98ee8442e7b601f65026311dc2a6
7
+ data.tar.gz: 5894645618559f24c5a77839015f5f1b15f097ee087a6ebc24425347a4328b930f27b7620b87158a712ee02fe6c45d6d5148338956ba6dcd8dd39e1662940fe1
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.7.0"
2
+ ".": "0.8.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.0](https://github.com/prosody-events/prosody-rb/compare/prosody/v0.7.0...prosody/v0.8.0) (2026-11-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * **deps:** upgrade prosody to 0.9.0 ([#66](https://github.com/prosody-events/prosody-rb/issues/66)) ([de6cfd7](https://github.com/prosody-events/prosody-rb/commit/de6cfd7b573e94237cd85b98fe1b6486261bc466))
9
+
3
10
  ## [0.7.0](https://github.com/prosody-events/prosody-rb/compare/prosody/v0.6.1...prosody/v0.7.0) (2026-11-13)
4
11
 
5
12
 
data/CONFIGURATION.md CHANGED
@@ -51,6 +51,7 @@ Set `subsystem` to make this client answer requests. Without it, the client cons
51
51
  | `partition_prefetch` / `PROSODY_PARTITION_PREFETCH` | Bytes of fetched records that wait for each assigned partition; accepts sizes such as `128 KiB`. Fetched memory grows with the number of assigned partitions (about two times this value, plus one batch, per partition) | 128 KiB |
52
52
  | `fetch_max_bytes` / `PROSODY_FETCH_MAX_BYTES` | Maximum bytes in one fetch response from one broker; accepts sizes such as `50 MiB` | 50 MiB |
53
53
  | `fetch_wait` / `PROSODY_FETCH_WAIT` | How long a broker can hold a fetch request when no new records are available. A shorter wait lowers the delay for a partition that is behind, but an idle consumer sends more fetch requests | 500ms |
54
+ | `kafka_rack` / `PROSODY_KAFKA_RACK` | Availability zone of this process, sent to Kafka as `client.rack`. The consumer and the deferred-message loader then fetch from a replica in the same zone. Brokers must use `RackAwareReplicaSelector`. Set `PROSODY_KAFKA_RACK_FILE` to name a file that holds the value. The plain variable has priority. A blank file counts as unset | - |
54
55
  | `failure_topic` / `PROSODY_FAILURE_TOPIC` | Send unprocessable messages here (dead letter queue) | - |
55
56
  | `idempotence_cache_size` / `PROSODY_IDEMPOTENCE_CACHE_SIZE` | Capacity of the producer idempotence cache and of the consumer deduplication cache. Consumer deduplication cannot be turned off, so the value must be at least 1 | 8192 |
56
57
  | `idempotence_version` / `PROSODY_IDEMPOTENCE_VERSION` | Version string for cache-busting dedup hashes | 1 |
@@ -136,7 +137,7 @@ Persistent storage for timers, deferral, deduplication, and keyed state. It is n
136
137
  | `cassandra_user` / `PROSODY_CASSANDRA_USER` | Username | - |
137
138
  | `cassandra_password` / `PROSODY_CASSANDRA_PASSWORD` | Password | - |
138
139
  | `cassandra_datacenter` / `PROSODY_CASSANDRA_DATACENTER` | Prefer this datacenter for queries | - |
139
- | `cassandra_rack` / `PROSODY_CASSANDRA_RACK` | Prefer this rack for queries | - |
140
+ | `cassandra_rack` / `PROSODY_CASSANDRA_RACK` | Prefer this rack for queries. Set `PROSODY_CASSANDRA_RACK_FILE` to name a file that holds the value. The plain variable has priority. A blank file counts as unset | - |
140
141
  | `cassandra_retention` / `PROSODY_CASSANDRA_RETENTION` | Delete data older than this | 1y |
141
142
 
142
143
  ## Keyed State
data/Cargo.lock CHANGED
@@ -284,9 +284,9 @@ dependencies = [
284
284
 
285
285
  [[package]]
286
286
  name = "bumpalo"
287
- version = "3.20.3"
287
+ version = "3.20.4"
288
288
  source = "registry+https://github.com/rust-lang/crates.io-index"
289
- checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
289
+ checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db"
290
290
 
291
291
  [[package]]
292
292
  name = "byteorder"
@@ -807,7 +807,7 @@ dependencies = [
807
807
  "flume",
808
808
  "log",
809
809
  "lsm-tree",
810
- "lz4_flex 0.13.1",
810
+ "lz4_flex 0.13.2",
811
811
  "tempfile",
812
812
  "xxhash-rust",
813
813
  ]
@@ -1511,7 +1511,7 @@ dependencies = [
1511
1511
  "enum_dispatch",
1512
1512
  "interval-heap",
1513
1513
  "log",
1514
- "lz4_flex 0.13.1",
1514
+ "lz4_flex 0.13.2",
1515
1515
  "quick_cache 0.6.24",
1516
1516
  "rustc-hash",
1517
1517
  "self_cell",
@@ -1523,18 +1523,18 @@ dependencies = [
1523
1523
 
1524
1524
  [[package]]
1525
1525
  name = "lz4_flex"
1526
- version = "0.13.1"
1526
+ version = "0.13.2"
1527
1527
  source = "registry+https://github.com/rust-lang/crates.io-index"
1528
- checksum = "7ef0d4ed8669f8f8826eb00dc878084aa8f253506c4fd5e8f58f5bce72ddb97e"
1528
+ checksum = "6a027efd2ad3c4dbb4123b5c018e3efbe7f6236da7c7612f122dad030f5d2de5"
1529
1529
  dependencies = [
1530
1530
  "twox-hash",
1531
1531
  ]
1532
1532
 
1533
1533
  [[package]]
1534
1534
  name = "lz4_flex"
1535
- version = "0.14.0"
1535
+ version = "0.14.2"
1536
1536
  source = "registry+https://github.com/rust-lang/crates.io-index"
1537
- checksum = "ecbdfe44b1bd960b68170b417450a628c43f7cf56bb3c5317e61cb230ee7f226"
1537
+ checksum = "f56455fff36934a9500d69062aec1c77037179b6f0669e4d5d6b72b84722d6a3"
1538
1538
  dependencies = [
1539
1539
  "twox-hash",
1540
1540
  ]
@@ -1547,9 +1547,9 @@ checksum = "d3d25b0e0b648a86960ac23b7ad4abb9717601dec6f66c165f5b037f3f03065f"
1547
1547
 
1548
1548
  [[package]]
1549
1549
  name = "magnus"
1550
- version = "0.9.3"
1550
+ version = "0.9.4"
1551
1551
  source = "registry+https://github.com/rust-lang/crates.io-index"
1552
- checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
1552
+ checksum = "3c5f2dd2017d172e2fde9969a35f10f1374a4dd79b37a17f1847f83201883de7"
1553
1553
  dependencies = [
1554
1554
  "magnus-macros",
1555
1555
  "rb-sys",
@@ -1613,9 +1613,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
1613
1613
 
1614
1614
  [[package]]
1615
1615
  name = "mio"
1616
- version = "1.2.4"
1616
+ version = "1.2.5"
1617
1617
  source = "registry+https://github.com/rust-lang/crates.io-index"
1618
- checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
1618
+ checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a"
1619
1619
  dependencies = [
1620
1620
  "libc",
1621
1621
  "wasi 0.11.1+wasi-snapshot-preview1",
@@ -1990,9 +1990,9 @@ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
1990
1990
 
1991
1991
  [[package]]
1992
1992
  name = "plist"
1993
- version = "1.10.3"
1993
+ version = "1.10.4"
1994
1994
  source = "registry+https://github.com/rust-lang/crates.io-index"
1995
- checksum = "327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285"
1995
+ checksum = "d86a77b7d9cdebd9643c180c158748db7d894b24a3935ed4b5843e698ae086eb"
1996
1996
  dependencies = [
1997
1997
  "base64 0.23.1",
1998
1998
  "indexmap",
@@ -2101,7 +2101,7 @@ dependencies = [
2101
2101
  "chacha20",
2102
2102
  "core_detect",
2103
2103
  "num-traits",
2104
- "rand 0.10.3",
2104
+ "rand 0.10.4",
2105
2105
  "rand_xorshift",
2106
2106
  "regex-syntax",
2107
2107
  "unarray",
@@ -2118,7 +2118,7 @@ dependencies = [
2118
2118
  "futures",
2119
2119
  "magnus",
2120
2120
  "opentelemetry",
2121
- "prosody 0.8.0",
2121
+ "prosody 0.9.0",
2122
2122
  "rb-sys",
2123
2123
  "rustfs-mimalloc",
2124
2124
  "serde",
@@ -2135,9 +2135,9 @@ dependencies = [
2135
2135
 
2136
2136
  [[package]]
2137
2137
  name = "prosody"
2138
- version = "0.8.0"
2138
+ version = "0.9.0"
2139
2139
  source = "registry+https://github.com/rust-lang/crates.io-index"
2140
- checksum = "114161b744ee1bca905f2bd1e4809eb56e68a84d87c0f9a5bf7b156b2b80b75b"
2140
+ checksum = "99914c9da8f875b982290016f201dbba5c28010a0b7c3de30fe5718f9fad5b37"
2141
2141
  dependencies = [
2142
2142
  "ahash",
2143
2143
  "aho-corasick",
@@ -2176,7 +2176,7 @@ dependencies = [
2176
2176
  "prost",
2177
2177
  "quanta",
2178
2178
  "quick_cache 0.7.0",
2179
- "rand 0.10.3",
2179
+ "rand 0.10.4",
2180
2180
  "rdkafka",
2181
2181
  "rmp-serde",
2182
2182
  "rust-embed",
@@ -2208,9 +2208,9 @@ dependencies = [
2208
2208
 
2209
2209
  [[package]]
2210
2210
  name = "prosody-macros"
2211
- version = "0.8.0"
2211
+ version = "0.9.0"
2212
2212
  source = "registry+https://github.com/rust-lang/crates.io-index"
2213
- checksum = "ec030942c412cf077536eb87b248dfb0ed89ec4f0d86423e5fe01623c13722f1"
2213
+ checksum = "9dc572d698ad7fa387e5564ffd7397f5aab23b9fc5a3af0e9cd21522be85cb1a"
2214
2214
  dependencies = [
2215
2215
  "proc-macro2",
2216
2216
  "quote",
@@ -2369,9 +2369,9 @@ dependencies = [
2369
2369
 
2370
2370
  [[package]]
2371
2371
  name = "rand"
2372
- version = "0.10.3"
2372
+ version = "0.10.4"
2373
2373
  source = "registry+https://github.com/rust-lang/crates.io-index"
2374
- checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
2374
+ checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11"
2375
2375
  dependencies = [
2376
2376
  "chacha20",
2377
2377
  "getrandom 0.4.3",
@@ -2691,9 +2691,9 @@ dependencies = [
2691
2691
 
2692
2692
  [[package]]
2693
2693
  name = "scc"
2694
- version = "3.8.8"
2694
+ version = "3.9.0"
2695
2695
  source = "registry+https://github.com/rust-lang/crates.io-index"
2696
- checksum = "5d5f8ca67c4f6208caf824037a6a9df0211b4e0937fccc4f543441f294d04511"
2696
+ checksum = "b51d224f712688bf8d0b54154dbf874a42344386632161387aa69c6fc79465a2"
2697
2697
  dependencies = [
2698
2698
  "saa",
2699
2699
  "sdd",
@@ -2742,7 +2742,7 @@ dependencies = [
2742
2742
  "byteorder",
2743
2743
  "bytes",
2744
2744
  "itertools 0.15.0",
2745
- "lz4_flex 0.14.0",
2745
+ "lz4_flex 0.14.2",
2746
2746
  "scylla-cql-core",
2747
2747
  "snap",
2748
2748
  "stable_deref_trait",
@@ -2781,9 +2781,9 @@ dependencies = [
2781
2781
 
2782
2782
  [[package]]
2783
2783
  name = "sdd"
2784
- version = "4.9.1"
2784
+ version = "4.10.3"
2785
2785
  source = "registry+https://github.com/rust-lang/crates.io-index"
2786
- checksum = "2c245d45885f6ed069d264a9c8b9f3e8f5a293b96fe7ea03f5c5e56ee9c2866e"
2786
+ checksum = "10aff4a76629f4e3dddd3afc9a649b1a757e0bffdf0b45093e7dd676a15c1d5f"
2787
2787
 
2788
2788
  [[package]]
2789
2789
  name = "self_cell"
@@ -3555,9 +3555,9 @@ checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
3555
3555
 
3556
3556
  [[package]]
3557
3557
  name = "uuid"
3558
- version = "1.29.2"
3558
+ version = "1.29.3"
3559
3559
  source = "registry+https://github.com/rust-lang/crates.io-index"
3560
- checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c"
3560
+ checksum = "3c14b15dffa2f4bd712103e857140aa04a4f2ff6e955c77d7eb8e53ee02a3b64"
3561
3561
  dependencies = [
3562
3562
  "getrandom 0.4.3",
3563
3563
  "js-sys",
@@ -3900,9 +3900,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
3900
3900
 
3901
3901
  [[package]]
3902
3902
  name = "xxhash-rust"
3903
- version = "0.8.19"
3903
+ version = "0.8.21"
3904
3904
  source = "registry+https://github.com/rust-lang/crates.io-index"
3905
- checksum = "550a2b930b62486a393c52d5c3b84bff264b28aa437ed64694d31e93b1757af7"
3905
+ checksum = "40de123dbb523ebcc00d61ec01840ad192578afc378d859f3429caa38308fad5"
3906
3906
 
3907
3907
  [[package]]
3908
3908
  name = "yoke"
data/Cargo.toml CHANGED
@@ -14,7 +14,7 @@ educe = "0.8"
14
14
  futures = "0.3"
15
15
  magnus = { version = "0.9", default-features = false }
16
16
  opentelemetry = "0.33"
17
- prosody = { version = "0.8", features = ["libz-static"] }
17
+ prosody = { version = "0.9", features = ["libz-static"] }
18
18
  rb-sys = "0.9"
19
19
  rustfs-mimalloc = "0.7.3"
20
20
  serde = "1.0"
@@ -54,6 +54,10 @@ impl<'a> TryFrom<&'a NativeConfiguration> for ConsumerConfigurationBuilder {
54
54
  builder.group_id(group_id.clone());
55
55
  }
56
56
 
57
+ if let Some(rack) = &config.kafka_rack {
58
+ builder.rack(rack.clone());
59
+ }
60
+
57
61
  if let Some(subscribed_topics) = &config.subscribed_topics {
58
62
  builder.subscribed_topics(subscribed_topics.clone());
59
63
  }
@@ -94,6 +94,9 @@ pub struct NativeConfiguration {
94
94
  /// seconds)
95
95
  fetch_wait: Option<f64>,
96
96
 
97
+ /// Availability zone of this process, sent to Kafka as `client.rack`
98
+ kafka_rack: Option<String>,
99
+
97
100
  /// Operation mode of the client (`pipeline`, `low_latency`, `best_effort`)
98
101
  mode: Option<String>,
99
102
 
@@ -144,6 +144,11 @@ module Prosody
144
144
  # Env: PROSODY_FETCH_WAIT. Default: 0.5 seconds.
145
145
  config_param :fetch_wait, converter: ->(v) { duration_converter(v) }
146
146
 
147
+ # Availability zone (rack) of this process. Sent to Kafka as client.rack so
148
+ # the consumer and the deferred-message loader fetch from a replica in the
149
+ # same zone. Env: PROSODY_KAFKA_RACK. Default: fetch from the partition leader.
150
+ config_param :kafka_rack, converter: lambda(&:to_s)
151
+
147
152
  # Base delay for retry operations (in seconds).
148
153
  config_param :retry_base, converter: ->(v) { duration_converter(v) }
149
154
 
@@ -6,5 +6,5 @@ module Prosody
6
6
  # This version number follows semantic versioning and is used by the
7
7
  # gem system to identify the library version. It should be updated
8
8
  # according to semver guidelines when making releases.
9
- VERSION = "0.7.0"
9
+ VERSION = "0.8.0"
10
10
  end
@@ -82,6 +82,12 @@ module Prosody
82
82
  def fetch_wait: () -> Float?
83
83
  def fetch_wait=: (Numeric) -> Float
84
84
 
85
+ # Availability zone (rack) of this process, sent to Kafka as client.rack
86
+ # so fetches use a replica in the same zone. Uses PROSODY_KAFKA_RACK when
87
+ # omitted.
88
+ def kafka_rack: () -> String?
89
+ def kafka_rack=: (_ToS) -> String
90
+
85
91
  # Base delay for retry operations (seconds)
86
92
  def retry_base: () -> Float?
87
93
  def retry_base=: (Numeric) -> Float
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prosody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Griffith