flucto-gmbh / heisskleber

MIT License
0 stars 1 forks source link

Refactor packer / unpack functions #93

Open pacjac opened 6 months ago

pacjac commented 6 months ago

Currently, encoding / decoding is handled outside of the pack / unpack function. Encoding should be a part of the serializing procedure.

pacjac commented 1 month ago

How should we handle cases where data is received from a source and the data contains information about the topic?

It seems to make sense that the unpack function should be responsible to extract that information or return None if there is no topic information, in which case the subscriber will default to a topic value.