跳到主要内容
版本:dev

Architecture

Generated service companions use normal gRPC servers, channels, method descriptors, deadlines, status codes, interceptors, and streaming APIs. Fory-generated marshallers encode and decode the generated request and response models.

Ownership boundary

Fory can generate service companions for application-provided gRPC runtimes. Those companions provide Fory serialization for request and response objects; the application and gRPC stack still own listeners, channels, credentials, authentication, authorization, deadlines, retries, and transport lifecycle.

Fory packages do not add a gRPC implementation as a hard dependency. The application selects and configures the runtime's gRPC libraries.

Generated service surface

The compiler emits runtime-idiomatic service bases, clients or stubs, method metadata, and Fory marshallers. Model generation is documented under Generated Code; the runtime pages document server and client integration.