iluwatar / java-design-patterns

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

Publish/Subscribe pattern #2898

Open iluwatar opened 2 months ago

iluwatar commented 2 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 2 months ago

I would like to take this issue.

Ehspresso commented 2 months ago

Can I use Java Message Service to implement the pattern?

iluwatar commented 2 months ago

Sure, that should work fine

Ehspresso commented 2 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 2 months ago

Sure, let's see what you have

stale[bot] commented 2 weeks 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.