guohao-rosicky edited a comment on pull request #601:
URL: https://github.com/apache/ratis/pull/601#issuecomment-1042521209
> > ... could we get a BCSID in another way than raft log?
>
> We need a BCSID and also the ability to commit transactions. I guess there
are no easy ways. Otherwise, we can use it to replace the Raft Consensus
Algorithm in general.
```
package org.apache.ratis.io;
public enum StandardWriteOption implements WriteOption {
/** Sync the data to the underlying storage. */
SYNC,
/** Close the data to the underlying storage. */
CLOSE,
/** Returns a unique ID **/
UNIQUE_ID,
}
```
@szetszwo
Can we add a new WriteOption? When the primary node receives this request,
it generates a unique ID of type long, synchronizes it to the other nodes, and
returns it to the client
In other words, generating an ID on the Primary node and passing it to the
other nodes as a stream can improve throughput without raft requests internally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]