0

I am building a stream processing architecture and was wondering what to do with metadata about the stream. For instance, every message of data coming from a source has the same attribution, as it passes along from source to processing, enriching and eventually to a sink that attribution data does not change but is relevant to every message.

I'm planning on using Apache Kafka for the message queue, just for reference.

What do I do with this metadata? Do I store the full attribution in a database and just pass along the id of that database entry in every message? Or is it better to actually put the attribution into every single message as it is passed along the message queue? Or is there a better or more standard option?

0

If metadata is used in the processing of a message, then it should be part of that message. That prevents data and metadata from getting out of sync, including the metadata going missing.

If the metadata isn't used, is there a good reason to retain it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.