Thrift serialization for kafka messages - a separate topic for each structure

I plan to use kafka as a permanent log for searching events , and I am currently studying various serialization options. I am currently focusing on using savings to serialize and deserialize messages that I will keep in Kafka.

When using savings to serialize messages for kafka, the simplest approach is to have one lean structure in each kafka theme.

Question: Is this a good model in practice? If not, can you list the disadvantages of the following approach?


Note. If you think this question does not meet stackoverflow standards, please help me improve it.

+4
source share
1 answer

Thrift structures do not carry a single structure type indicator (at least not in the default binary protocol). Thus, to deserialize the Thrift data tree, you need to know the type of structure in the root. Thus, your idea of ​​one type of structure for each topic is reasonable.

, , Thrift... , , , , . , Trrift .

+2

Source: https://habr.com/ru/post/1616513/


All Articles