francoischabot / easy_grpc Goto Github PK
View Code? Open in Web Editor NEWAn easier way to write asynchronous c++ grpc clients/servers.
License: Apache License 2.0
An easier way to write asynchronous c++ grpc clients/servers.
License: Apache License 2.0
The current linking against protobuf::libprotobuf
is just lazyness. It's only ever needed for the included serialization shortcuts, and can be left to the clients.
The current packaged with easy_grpc is basically only suited for testing.
(as a side-note, if we do switch to a header-only library, then this becomes a non-issue.)
Specifically, it should be possible to consume from a queue from an application's main thread.
While the library and protoc plugin are not exactly hard to compile, everything is CMake-based at the moment.
as tests/binary_protocol.cpp illustrates, writing a service around non-autogerated code is not nearly as clean as it could be.
class Service_impl {
Future<Reply> Method(const Request& req) {
};
};
...
int main() {
pkg::Service::Service<Service_impl> impl_;
...
}
This is kinda neat because it gets rid of the extra vtable call. It's not like services are mocked at the service level anyways.
The problem is that the various handler have to instantiate many methods regardless of wether they are invoked or not for each T. So to get full coverage, every type/handler pair used during testing needs to go trough the finish/fullfull/fail paths, which would require a lot of redundant code...
On one hand, Now that the dust is settling. There's now that much non-templated code in the project.
On the other hand, once the CMakeLists.txt has proper install/subdirectory inclusion support, the barrier to entry should be low enough.
Conveniently, this would also take care of #2.
I'm open to opinions on this.
Since many tests are opening ports and connecting to them, we need to find a way to stop them from stomping on each other so that we can run them with ctest -j $(nproc)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.