etcd-cpp-api | etcd-cpp-api is a C API for etcd | Key Value Database library
kandi X-RAY | etcd-cpp-api Summary
kandi X-RAY | etcd-cpp-api Summary
etcd-cpp-api is a C++ API for etcd.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of etcd-cpp-api
etcd-cpp-api Key Features
etcd-cpp-api Examples and Code Snippets
Community Discussions
Trending Discussions on etcd-cpp-api
QUESTION
This question involves etcd
specific stuff, but I think the question more related to work with gRPC
in general.
I'm trying to create etcd
Watch
for some keys, since the documentation is sparse I had a look at Nokia implementation
It was easy to adapt code to my needs and I came up with first version which worked just fine, creating WatchCreateRequest
, and firing callback on key update. So far so good. Then I've tried to add more than one key to watch. Fiasco! ClientAsyncReaderWriter
is failing to Read/Write in such a case. Now to the question.
If I have following members in my class
...ANSWER
Answered 2018-Jul-18 at 23:28I'm sorry that I'm not very sure about the proper Watch
design here. It's not very clear to me whether you want to create a gRPC call for each Watch
.
Anyway, each gRPC call will have its own ClientContext
, ClientAsyncReaderWriter
. But stub
and CompletionQueue
is not per-call thing.
As far as I know, there is no central place to find the thread-safe classes. You may want to read the API document to have a correct expectation.
When I was writing the async server load reporting service, the only place I add synchronization myself is around CompletionQueue
, so that I don't en-queue new tags to the cq if it's shut down.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install etcd-cpp-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page