We experimented at various times with mixing multiple events in a single topic and found this generally lead to undue complexity. Instead give each event it’s own topic and consumers can always subscribe to multiple such topics to get a mixed feed when they want that.
By having a single schema for each topic you will have a much easier time mapping a topic to a Hive table in Hadoop, a database table in a relational DB or other structured stores.
Hi,I haven't had a chance to try out the recent release, but I wanted to ask. In http://blog.confluent.io/2015/02/25/stream-data-platform-2/, you recommend that for pure event streams, a single topic should contain only one type of event.We experimented at various times with mixing multiple events in a single topic and found this generally lead to undue complexity. Instead give each event it’s own topic and consumers can always subscribe to multiple such topics to get a mixed feed when they want that.
By having a single schema for each topic you will have a much easier time mapping a topic to a Hive table in Hadoop, a database table in a relational DB or other structured stores.
Can you talk more detail about why you recommend this? What was the complexity that you encountered? And does the same recommendation apply to database changes? That particular quote was inside the "Pure Event Streams" section, and I wasn't sure if it applied more broadly.
Related: Do the Schema Registry and Confluent serializers enforce this suggestion, or can they be used to read/write multiple event types in a single topic?
--Thanks,-James
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/E3A0EDA6-EC04-4F13-8CE6-C00E0FF51270%40tivo.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/952ba1c7-9db6-47c1-a67b-7ae80e0159f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
From: Petr Novak Sent: Tuesday, February 16, 2016 5:46 AM To: Confluent Platform Reply To: confluent...@googlegroups.com Subject: Re: One event type per topic? Or multiple event types in a topic? |
Thanks,-James
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/E3A0EDA6-EC04-4F13-8CE6-C00E0FF51270%40tivo.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
Thanks,-James
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/E3A0EDA6-EC04-4F13-8CE6-C00E0FF51270%40tivo.com.
For more options, visit https://groups.google.com/d/optout.
--
--Thanks,
Ewen
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/bc5f4be2-d44e-4f42-904c-0edb9c942f9c%40googlegroups.com.
Thanks,-James
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/E3A0EDA6-EC04-4F13-8CE6-C00E0FF51270%40tivo.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/bc5f4be2-d44e-4f42-904c-0edb9c942f9c%40googlegroups.com.
--Thanks,
Ewen