iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
90.05k stars 26.61k forks source link

Publish/Subscribe pattern #2898

Open iluwatar opened 7 months ago

iluwatar commented 7 months ago

Introduce the Publish/Subscribe pattern to provide a flexible event-handling system.

The Publish/Subscribe pattern is a messaging paradigm used in software architecture with several key points:

Acceptance Criteria:

Ehspresso commented 7 months ago

I would like to take this issue.

Ehspresso commented 7 months ago

Can I use Java Message Service to implement the pattern?

iluwatar commented 7 months ago

Sure, that should work fine

Ehspresso commented 7 months ago

I have an implementation of the pattern. However I am finding it difficult to test since the implementation is quite basic given the asynchronous/threading code is handled by JMS which shouldn't be tested since its a third party software. I can create a pull request and the current tests can be viewed, perhaps you'll find it satisfactory. If not, I am happy to receive criticism to improve my testing, it can improve my knowledge.

iluwatar commented 7 months ago

Sure, let's see what you have

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

LuisGrigore commented 3 months ago

Hi, I would like to give this a try. This would be my first contribution so I may need some extra help if thats ok.

stale[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.