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

Concurrent publishing and custom content type on serializer. #6

Closed
wants to merge 2 commits into from

Conversation

mackross
Copy link

@mackross mackross commented Mar 6, 2015

This branch still needs to be integrated into my project and tested but I would love feedback and a second set of eyes to go over the changes.

@armon
Copy link
Owner

armon commented Mar 9, 2015

@mackross The publisher and consumers are purposely not concurrent safe. Instead the pattern is to make a new publisher for each go-routine. For the content-type, it's purposely an interface, so you should just implement a Serializer that sets a custom type.

@armon armon closed this Mar 9, 2015
@mackross
Copy link
Author

On concurrency this slows down the publish rate as you're not taking advantage of multi-ack confirms.

@armon
Copy link
Owner

armon commented Mar 10, 2015

I understand, but my goal with this library was simplicity instead of maximum performance.

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

Successfully merging this pull request may close these issues.

2 participants