Question regarding observables #1321

CLOSED
Submitted 4 months ago

I see newer versions of Java have marked as obsolete the Observer/Observable pair.

Is using the event service a good substitute to them?

Comments

  3 months ago

Observer/Observable has in my opinion never been a good pattern, using the Event management system or (in case you want to use more standard Java libraries) reactive Java libraries as "Project Reactor from https://projectreactor.io/) is a better choice.

I close this issue under the assumption that your question has been answered, please reopen if you still have a need for clarification.

  3 months ago

Indeed, the question has been answered. Thanks for replying. I’ll check Project Reactor.

Please login to write a comment.