HazelCast support for Observer Pattern.

40 views
Skip to first unread message

Ram

unread,
Mar 3, 2017, 5:09:15 PM3/3/17
to Hazelcast
I have a use case where I have to do very large chained computations with no prior information about how long the chains are. Using mechanisms like Queues, Pub/Sub etc do not scale as well as do not give the sub second time completion. 

So what I am looking for is, whether HazelCast supports the Observer Pattern the way Java has Observer Interface and Observable Class using which we can create a event generation and propagation mechanism that is fast. 

Ram

Ram

unread,
Mar 3, 2017, 7:41:10 PM3/3/17
to Hazelcast
I saw that there is JCache support. Does this exactly replace the Observer pattern with its event structure?

Jaromir Hamala

unread,
Mar 10, 2017, 1:44:46 AM3/10/17
to Hazelcast
Hi Ram,

you can register an entry listener which will be fired when there is a change. Is that what you are asking? You can also have a look at the Hazelcast RxJava integration
If you application is doing heavy computations then you might want to have a look at Hazelcast Jet - it's our new project focused specifically on distributed computing and stream processing. 

Cheers,
Jaromir
Reply all
Reply to author
Forward
0 new messages