asio-grpc
example-vcpkg-grpc
asio-grpc | example-vcpkg-grpc | |
---|---|---|
4 | 1 | |
325 | 5 | |
- | - | |
9.0 | 2.6 | |
2 days ago | 2 months ago | |
C++ | CMake | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
asio-grpc
-
Generate gRPC source files using CMake
Since I can never remember what arguments to pass to protobuf_generate to create Protobuf and gRPC source files, I wrote an article about it. It provides a copy-paste-able code snippet along with an explanation of all arguments that protobuf_generate accepts, how to format it nicely using cmake-format and how to make things easier with asio-grpc.
-
Using Asio for asynchronous gRPC clients and servers
Asio-grpc makes exactly that possible by providing an Asio execution_context compatible interface to the CompletionQueue. It supports all types of RPCs (including generic ones), completion tokens, cancellation, as well as libunifex sender/receiver (if you want to try out what might become std::execution). The latest release (v1.7.0) also introduced a GrpcStream class for writing Rust/Golang select-style code.
-
DevBlog #1 - Poseidon
It hasn't been without issue, however. Problems that may lie in official google-maintained libraries are of course present and required design changes, and I was even prompted to write my own bitset library that outperforms the C++ standard's by a factor of 60. Madness. Right?
-
C++20 coroutines for asynchronous gRPC services
Or check out the asio-grpc repository directly if you are looking to write asynchronous gRPC services with the features of Boost.Asio like C++20 coroutines, std::futures, stackless coroutines, callbacks and Boost.Coroutines.
example-vcpkg-grpc
-
Generate gRPC source files using CMake
How about some asio stackless coroutines (lol). A simple callback server. Or sender/receiver.
What are some alternatives?
gRPC - The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
Android-RxJava - Learning RxJava for Android by example
concurrencpp - Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all
example-voting-app - Example distributed app composed of multiple containers for Docker, Compose, Swarm, and Kubernetes
RESTinio - Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
open-source-ios-apps - :iphone: Collaborative List of Open-Source iOS Apps
lithium - Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
rust-by-practice - Learning Rust By Practice, narrowing the gap between beginner and skilled-dev through challenging examples, exercises and projects.
Restbed - Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
go-clean-template - Clean Architecture template for Golang services
drachtio-freeswitch-modules - A collection of open-sourced freeswitch modules that I use in various drachtio applications
Protobuf - Protocol Buffers - Google's data interchange format