openmessaging-java icon indicating copy to clipboard operation
openmessaging-java copied to clipboard

Clarify batch send semantic?

Open duhenglucky opened this issue 6 years ago • 0 comments

As interface shows below:

    /**
     * <p>
     * Send batch messages to server.
     *
     * @param messages messages to be sent.
     */
    void send(List<Message> messages);

This API can lead to multiple behaviors, such as sending to multiple partitions, or the same partition, so how should we define the behavior of this method?

And this issue exists in many places, such as sequential messages, transactional message etc. So I think we should polish this interface before we release the 1.0.0 version.

duhenglucky avatar Jan 10 '19 07:01 duhenglucky