feat: add a gRPC network transport in its own module#84
Merged
Conversation
Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a real gRPC network transport as a new
crucible/transportmodule, so a cluster spans processes over the wire while theclustercore stays stdlib-only — a deployment using only the in-memory transport never compiles gRPC in. The clientTransportsatisfiescluster.Transportand routes deliver/spawn to the gRPC server of the node that owns the target actor;NewServerserves a node'scluster.WireEndpoint. Payloads ride the wire as the JSON the wire-codec seam already produces, via a JSON gRPC codec and a hand-written service descriptor — no protobuf schema or codegen is introduced. The grpc dependency is isolated to this module (its own go.mod), matching the suite's pattern of confining heavy deps. Tested end to end over an in-memory gRPC connection (bufconn): remote spawn + deliver, server interceptor path, and error propagation. CI (lint/race-matrix/vuln/coverage@90) is wired for the new module. Coverage: transport 90.6 percent. Additive; new module.