Destination batching router
The destination key is the cluster plus the index that the message maps to. On a new key, the router creates an unbounded channel and spawns a Tokio task. A map from key to sender sits behind a read-write lock, and each send takes the write lock. Each task collects chunks and issues one bulk call.
A node failure now hurts only the messages for that node. Before, a failed node failed about 40% of batches, by the post's estimate.