Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x: support a deserialize-fn in the consumer configuration #2

Open
ghost opened this issue Aug 24, 2011 · 0 comments
Open

2.x: support a deserialize-fn in the consumer configuration #2

ghost opened this issue Aug 24, 2011 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 24, 2011

wrap-body-with-msg-id does mostly the right thing - it puts on the prefix, but should treat the prefix entirely as a byte array (inclusive of the magic bits).

The publisher configuration has a serializer-fn to help with automatic serialization of published message bodies. Correspondingly, the consumer should have a deserialize function that allows the opposite action to take place.

At this time, split-body-and-msg-id stands in the way of that - because it always marshals the received message body into a string before stripping off the magic/msg-id/timestamp. It must do this without effecting the body's byte array and return the wrapped array unmodified (i.e. not transforming it to a string).

Kyle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants