Skip to content

publish_subscribe pattern #34

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

Merged
merged 2 commits into from
Dec 26, 2013
Merged

publish_subscribe pattern #34

merged 2 commits into from
Dec 26, 2013

Conversation

HanWenfang
Copy link
Contributor

add a simple example about publish_subscribe pattern

@faif
Copy link
Owner

faif commented Dec 22, 2013

Hi,

Thanks for the pull request. What's the difference between the publish/subscribe pattern and observer?

@HanWenfang
Copy link
Contributor Author

I think the difference is that publish/subscribe is more loosely coupled and convenient, the subscriber can subscribe and unsubscribe anything they like. And normally we use publish/subscribe over the tcp/ip like redis. I simplified it to express it easily.

faif pushed a commit that referenced this pull request Dec 26, 2013
publish_subscribe pattern
@faif faif merged commit ee37556 into faif:master Dec 26, 2013
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.

3 participants