-
Notifications
You must be signed in to change notification settings - Fork 250
Open
Description
We need to implement a type safe, zero copy message header system for the protocol.
Message layout:
[0-127] Generic bytes (checksum, cluster, size, view etc)
[128 - 255] consensus command specific bytes
Header types:
We need to implement the following header types that are each 256 bytes long:
GenericHeader- Base header for all messagesPrepareHeader- Consensus prepare messagesRequestHeader- Client requests withOperationenumReplyHeader- Responses to clientsCommitHeader,PingHeaderandStartViewHeader
Enums:
Command- Consensus message types (reserved, ping, pong, request, prepare, prepare_ok, reply, commit, start_view_change, do_view_change, start_view).Operation- we have make this enum same as theServerCommandenum atcore/server/src/binary/command.rs
Check core/common/src/types/consensus/mod.rs for a more detailed description of what needs to be done.
Metadata
Metadata
Assignees
Labels
No labels