Skip to content

Commit

Permalink
Batch request replication
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Dec 4, 2023
1 parent 13822d7 commit 54d142a
Show file tree
Hide file tree
Showing 18 changed files with 920 additions and 587 deletions.
4 changes: 2 additions & 2 deletions api/oramnode/oramnode.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions api/oramnode/oramnode_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/router/router.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions api/router/router_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 20 additions & 7 deletions api/shardnode.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,41 @@ option go_package = "github.com/dsg-uwaterloo/oblishard/api/shardnode";
package shardnode;

service ShardNode {
rpc Read (ReadRequest) returns (ReadReply) {}
rpc Write (WriteRequest) returns (WriteReply) {}
rpc BatchQuery (RequestBatch) returns (ReplyBatch) {}
rpc SendBlocks(SendBlocksRequest) returns (SendBlocksReply) {}
rpc AckSentBlocks(AckSentBlocksRequest) returns (AckSentBlocksReply) {}
rpc JoinRaftVoter (JoinRaftVoterRequest) returns (JoinRaftVoterReply) {}
}

message RequestBatch {
repeated ReadRequest read_requests = 1;
repeated WriteRequest write_requests = 2;
}

message ReplyBatch {
repeated ReadReply read_replies = 1;
repeated WriteReply write_replies = 2;
}

message ReadRequest {
string block = 1;
string request_id = 1;
string block = 2;
}

message ReadReply {
string value = 1;
string request_id = 1;
string value = 2;
}

message WriteRequest {
string block = 1;
string value = 2;
string request_id = 1;
string block = 2;
string value = 3;
}

message WriteReply {
bool success = 1;
string request_id = 1;
bool success = 2;
}

message JoinRaftVoterRequest {
Expand Down
Loading

0 comments on commit 54d142a

Please sign in to comment.