publisher is able to fully send data and receive acks

still needs to close the pipes cleanly
This commit is contained in:
chrislu
2024-03-20 12:25:40 -07:00
parent 96149cbf7f
commit 7003ce7425
7 changed files with 779 additions and 339 deletions

View File

@@ -46,7 +46,7 @@ service SeaweedMessaging {
rpc SubscribeMessage (SubscribeMessageRequest) returns (stream SubscribeMessageResponse) {
}
// The lead broker asks a follower broker to follow itself
rpc PublishFollowMe (PublishFollowMeRequest) returns (PublishFollowMeResponse) {
rpc PublishFollowMe (stream PublishFollowMeRequest) returns (stream PublishFollowMeResponse) {
}
}
@@ -209,12 +209,24 @@ message PublishMessageResponse {
bool should_close = 3;
}
message PublishFollowMeRequest {
Topic topic = 1;
Partition partition = 2;
string broker_self = 3;
message InitMessage {
Topic topic = 1;
Partition partition = 2;
}
message FlushMessage {
int64 ts_ns = 1;
}
message CloseMessage {
}
oneof message {
InitMessage init = 1;
DataMessage data = 2;
FlushMessage flush = 3;
CloseMessage close = 4;
}
}
message PublishFollowMeResponse {
string error = 1;
int64 ack_ts_ns = 1;
}
message SubscribeMessageRequest {
message InitMessage {