- Backpressure queue size is controlled by either
ZIO_GRPC_BACKPRESSURE_QUEUE_SIZE
environment variable orzio_grpc.backpressure_queue_size
system property (previously the names were hyphenated). Change was made for compatibility with ZIO Config. - Removed the
R
type parameter for generated services. Generated services now have a single type parameter for context. This simplifies the previous APIs and encourages the ZIO 2 style that service dependencies are passed via constructors (see service pattern) - Context is now received as a second parameter for each handler. For convenience, there is a trait that only takes one parameter (the request type).
- Simplified ZTransform. Introduce Transform for effectful transformations for services that do not have context.
- Classes and methods with suffix ClientWithMetadata have been renamed to ClientWithResponseMetadata.
- Removed the
R
type parameter in most APIs. - ManagedServer renamed to ScopedServer.
- Clean shutdown when a server is ran through a Scope or ZLayer.
- Added backpressure support docs
- Added client support for response metadata (#428)
- Signifcant server performance improvement (2.4x faster handling) (#457)
- Server can now send response metadata (#418)
- Clients can now access the response metadata sent by server (#428)
- ServiceList now has a
provideLayer
andprovide
that can be used to satisfy services dependencies.