You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Works with any Java library that depends on `kafka-clients`, including:
20
20
- Apache Kafka Clients
21
21
- Spring Kafka
22
22
- Alpakka Kafka (Akka Kafka)
23
+
- Pekko Kafka (Apache Pekko)
23
24
- Kafka Streams
24
25
- Kafka Connect
25
26
- Any custom wrapper around the Kafka Java client
@@ -115,6 +116,43 @@ public class KafkaConfig {
115
116
}
116
117
```
117
118
119
+
### Pekko/Akka Kafka Applications
120
+
Pekko and Akka Kafka applications typically use immutable configuration maps internally, which prevents Superstream from applying optimizations. To enable Superstream optimizations with Pekko/Akka, you need to create the KafkaProducer manually with a mutable configuration.
121
+
122
+
❌ **Native Pekko/Akka pattern (optimizations won't be applied)**:
- Superstream can optimize the producer configuration
155
+
118
156
### Why This Matters
119
157
The Superstream library needs to modify your producer's configuration to apply optimizations based on your cluster's characteristics. This includes adjusting settings like compression, batch size, and other performance parameters. When the configuration is immutable, these optimizations cannot be applied.
0 commit comments