I have a question about custom Sinks. I have a keyed stream that needs to produce events to an external system and the events for the same key should always be produced in the same order but exactly once semantics is not required (re producing events is allowed).
My understanding is that this is not possible with the RichAsyncFunction because it is not keyed and rescaling could cause inflight events to be rebalanced to different task slots.
I was looking at the AsyncSinkBase + AsyncSinkWriter route but it does not seem to support partitioning either so does it have the same issue as RichAsyncFunction? I can see that both kafka and pulsar connectors support event partitioning/routing but is there any simple way to achieve this using custom sinks?