Reputation: 339
After a stream is being processed (applying filter and etc), can each of the remaining items in the processed stream trigger events directly instead of being written to a sink?
I have a bunch of devices keep reporting status to the hazelcast jet stream server. The server performs some filtering on the stream and only keeps devices that are really in bad shape. I want these devices directly trigger some maintenance events instead of being written to a sink (e.g. IMAP). Currently, what I am doing is to sink the stream to a IMAP and register listeners on the map. However, I am not sure if this is the best practice for my use case. I mainly have two concerns:
Upvotes: 1
Views: 95
Reputation: 886
Looks like what you need is a custom sink, see our Reference Manual section on the topic. In the receiveFn
you can notify the other service about the device.
Upvotes: 2