asio-grpc
RESTinio
asio-grpc | RESTinio | |
---|---|---|
4 | 14 | |
325 | 1,107 | |
- | 0.6% | |
9.0 | 8.9 | |
2 days ago | about 2 months ago | |
C++ | C++ | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
RESTinio
-
What is the industry standard today in C++ to deploy REST microservices in Kubernetes?
In my past job, we used https://github.com/Stiffstream/restinio and absolutely loved it. It's not as active but it honestly didn't need much.
-
What are some fun project ideas with C++?
Here's a C++ REST framework for you to use too: https://github.com/Stiffstream/restinio
- What code/project you saw was both inspiring and maintainable?
-
What are some cool modern libraries you enjoy using?
I had a good experience using restinio for a small ASIO HTTP server recently.
-
Can I use C++ in the backend ?? Any frameworks there ??
It uses restinio https://github.com/Stiffstream/restinio with great success ;)
- Modern C++ Web API (Back-End Development)
-
Confused about beginning application development using c++. Pls help.
For networking, pick a networking library. Restinio is a fair choice for HTTP. But, again, feel free to pick others.
-
NodeJS vs Go for low memory usage
You may find this worthwhile: https://github.com/Stiffstream/restinio/issues/101 FWIW, I used Restbed successfully for 3.5 years before switching personal projects to Restino. I've left the job that used Restbed, but I think they are still using it.
-
What does modern (good) API development look like and what are the best tools to use?
Contrary to the direction most people go, I've been writing REST APIs as C++ servers using two different fairly full featured C++ REST frameworks: first using https://github.com/Corvusoft/restbed and more lately using https://github.com/Stiffstream/restinio. These can be peers with any other server, while living on embedded and/or high compute devices for video encode/decode/analysis, deployed ML models, encryption for and remote process communications, model data collection and similar expensive or in-field processing. In both high compute and in-field-no-internet situations creating REST APIs in C++ enables speed and system controls not present in the majority of the mainstream REST frameworks. It's a big world, and here comes ubiquitous high compute...
-
cpprestsdk in maintenance mode
If you need an embedded C++ HTTP server then there are plenty of libraries/frameworks (in random order): Crow, RESTinio, Boost.Beast, cpp-httplib, http_backend, Pistache, RestBed, served, proxygen, Simple-Web-Server, drogon, oat++.
What are some alternatives?
gRPC - The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
Boost.Beast - HTTP and WebSocket built on Boost.Asio in C++11
concurrencpp - Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all
Restbed - Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
lithium - Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
C++ REST SDK - The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Crow - A Fast and Easy to use microframework for the web.
drachtio-freeswitch-modules - A collection of open-sourced freeswitch modules that I use in various drachtio applications
µWebSockets - Simple, secure & standards compliant web server for the most demanding of applications
libunifex - Unified Executors
Oat++ - 🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.