mapping event type to Kafka topic

48 views
Skip to first unread message

julien....@rueducommerce.com

unread,
Apr 25, 2019, 9:56:10 AM4/25/19
to divolte-collector
Hi

Does Divolte allow to map en event type with a Kafka topic ?

A client-side call to : divolte.signal('myeventclick', objEventClick); seems to be propagated to every distinct mapping.
So that if I configure two mappings with a different sink and Kafka topic for each one, a call to divolte.signal results in a message in both topics.

Should I use only one topic and one avro chemas as a pivot for all my types of Kafka messages or, is it possible to filter events on a per-topic basis ?

Kind regards,
Julien

Friso van Vollenhoven

unread,
Apr 26, 2019, 2:51:46 AM4/26/19
to divolte-...@googlegroups.com
Hi Julien,

Your observation is correct. Divolte does not allow for any routing logic based on event content.

Of course it is possible to configure multiple sources and send events to either source all the way on the client side, but this is not optimal as it requires changes on the client side code to make changes to the routing.

Depending on how you process the Divolte events, it makes most sense to do any routing en republishing to different channels on the Kafka consumer side.


Cheers,
Friso


--
You received this message because you are subscribed to the Google Groups "divolte-collector" group.
To unsubscribe from this group and stop receiving emails from it, send an email to divolte-collec...@googlegroups.com.
To post to this group, send email to divolte-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/divolte-collector/19603ce9-39fb-457b-9f83-858c51bc9e2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

julien....@rueducommerce.com

unread,
Apr 26, 2019, 3:49:23 AM4/26/19
to divolte-collector
Thank you Friso for your help ! 

Cheers 
Julien

Reply all
Reply to author
Forward
0 new messages