6 Commits

Author SHA1 Message Date
kct949
4b537d2aad working version 2023-02-15 22:59:10 +01:00
kct949
72f2968bea implement subscribe for kafka + minor fixes 2023-02-15 15:03:26 +01:00
Philipp Theyssen
08b1404dd4 Start working subscribing with Kakfa and using it in Basket service. 2023-02-15 11:38:34 +01:00
Philipp Theyssen
e1eac82289 Add logic for producing events to kafka eventbus.
For now we have a single topic for all events. Since
we use the eventname as the key for the kafka message,
we have the property that they all get assigned to the same
parition inside kafka and therefore are in-order.

Alternatively one could have multiple topics.

The code for the kafka connection is based on:

https://github.com/confluentinc/confluent-kafka-dotnet/blob/master/examples/Web/KafkaClientHandle.cs
2023-02-13 17:27:24 +01:00
Philipp Theyssen
30eb3a075e Add further details to Kafka eventbus skeleton.
So far only copied details from other eventbus implementations.
Key next steps are to implement a persistent connection abstraction (class)
for the Kafka eventbus and the publish and subscribe functions. For this
we need knowledge about how Kafka works, for example how one publishes
events topics etc.
2023-02-13 12:42:56 +01:00
Philipp Theyssen
a12e9bdbb5 Add EventBusKafka project skeleton 2023-02-13 11:23:51 +01:00