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

Extract method - Consumer type #5

Open
adelgadocabrera opened this issue Apr 4, 2022 · 1 comment
Open

Extract method - Consumer type #5

adelgadocabrera opened this issue Apr 4, 2022 · 1 comment

Comments

@adelgadocabrera
Copy link
Collaborator

Would be nice to have some sort of factory class which you simply passed the "type" and it will create the appropriate consumer (push/pull based).

https://github.com/CS682-S22/dsd-pub-sub-project-anchitbhatia/blob/1cdf79e83816160c8ea636020afb70f7988ad19b/src/main/java/DistributedPubSubApplication.java#L74-L80

@anchitbhatia
Copy link
Owner

Design patterns! Yes that would be a better approach.

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

2 participants