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
1) A fully fledged Kafka Streams Spring Boot application providing an ordering system which Avro, joins and output.
6
4
7
-
2) Example package containing examples for [Windowing, Aggregations and Joining](https://github.com/perkss/kotlin-kafka-and-kafka-streams-examples/tree/master/kotlin-kafka-streams-examples/src/main/kotlin/com/perkss/kafka/reactive/examples).
5
+
1) A fully fledged Kafka Streams Spring Boot application providing an ordering system which Avro, joins and output.
8
6
9
-
## Getting up and Running
7
+
2) Example package containing examples
8
+
for [Windowing, Aggregations and Joining](https://github.com/perkss/kotlin-kafka-and-kafka-streams-examples/tree/master/kotlin-kafka-streams-examples/src/main/kotlin/com/perkss/kafka/reactive/examples)
9
+
.
10
+
11
+
## Getting up and Running Order Processing Topology
10
12
11
13
Start up the Kafka and Zookeeper cluster. Three nodes so need at least two up.
Joining the Stream Name mark3 to the KTable Name sarah2
233
+
Joining the Stream Name sarah2 to the KTable Name mark3
234
+
235
+
236
+
OutputTopic >
237
+
sarah2
238
+
mark3
239
+
```
240
+
241
+
Therefore we can see that using the KTable and joining with itself in this simple example will only take the latest
242
+
value when processing the stream. To guarantee this we could even check the message timestamps if the joined version is
243
+
newer use that, or drop the message and waitfor the new version to come in.
244
+
78
245
## Tescontainers Integration Tests
79
246
80
-
Required Docker to be running.
247
+
Required Docker to be running.
81
248
82
-
`StreamIntegrationTest` uses [Testcontainers](https://www.testcontainers.org/) to fire up a running instance of Kafka and Schema Registry and runs our application to drop messages on Kafka process them and read the output. Check it out a very powerful example.
249
+
`StreamIntegrationTest` uses [Testcontainers](https://www.testcontainers.org/) to fire up a running instance of Kafka
250
+
and Schema Registry and runs our application to drop messages on Kafka process them and read the output. Check it out a
251
+
very powerful example.
83
252
84
253
## Examples Understanding KStream Windowing
85
254
86
-
87
255
TODO a table of each event, event timestamp, the window its in and the
streamsConfiguration[StreamsConfig.TOPOLOGY_OPTIMIZATION] =StreamsConfig.OPTIMIZE// do not create internal changelog have to have source topic as compact https://stackoverflow.com/questions/57164133/kafka-stream-topology-optimization
StreamsConfig.OPTIMIZE// do not create internal changelog have to have source topic as compact https://stackoverflow.com/questions/57164133/kafka-stream-topology-optimization
0 commit comments