hivesolutions / appier-extras

Appier on Steroids
http://appier-extras.hive.pt
2 stars 3 forks source link

Event Notify using Kafka #34

Closed BeeMargarida closed 4 years ago

BeeMargarida commented 4 years ago
- -
Decisions Event matching logic changed, allowing the matching with events with wildcards in the name. For example, when an event with the name order.create is received, it will match with event handlers with the name order.*.
A Kafka Producer client is created for each notification, with a set of configurations provided by the appier.json file. The notification is instantly flushed to the kafka broker.
Animated GIF Event:
Screenshot 2020-09-04 at 16 00 06
Creating an order and the kafka consumer running on the right receives the event:
Sep-04-2020 14-31-03
Event received by a kafka consumer:
Screenshot 2020-09-04 at 15 57 38
coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.3%) to 53.773% when pulling 100420f13648c23e1289603d6c6f9838abaacba3 on BeeMargarida:ms/notify_kafka into a9ed70e2a51a6e72e49e52ddd50b817ce311a448 on hivesolutions:master.

BeeMargarida commented 4 years ago

@joamag The PR with the Kafka events

BeeMargarida commented 4 years ago

@joamag It works well, I tested with the existing services. As you said, the serialization of the payload was not necessary.