gRPC Swift 2.0.0-alpha.1
π The gRPC Swift team is excited to announce the first alpha release of gRPC Swift v2! π
Highlights π
- An
async/await
implementation from the ground up. The new library is built on top of Swift's native concurrency features and takes advantage of structured concurrency to make it easier to reason about your RPCs. It's also built from the ground up to support the Swift 6 language mode. - Expressive and easy to use APIs. Our APIs have been designed to be simple to use for newcomers and flexible enough for expert users.
- Pluggable transport layer. The underlying transport for clients and servers have been abstracted away to a transport layer; SwiftNIO is now an implementation detail and brought in via a separate package, grpc/grpc-swift-nio-transport.
- Pluggable serialisation. The serialisation layer is also pluggable, support for Swift Protobuf is made available via grpc/grpc-swift-protobuf.
- Better performance than v1. Benchmarks show that the SwiftNIO based transport for v2 is up to 80% faster than the equivalent benchmarks for gRPC Swift v1.
Getting started π
Please note that this is pre-release software, we don't guarantee any API stability and this shouldn't be considered production ready.
To get started with gRPC Swift v2, take a look at our examples and documentation:
- Documentation is hosted on the Swift Package Index
- Examples are available in the
Examples/
directory
Feedback π¬
If you have any questions or feedback be it good, bad, big, or small please let us know by opening an issue.