Skip to content
Discussion options

You must be logged in to vote

Can you help me understand what exactly is significance of completion queue in your code ?

A google::cloud::CompletionQueue is a wrapper around grpc::CompletionQueue, but with a (I hope) nicer interface. It may be easier to explain the problem these things solve so you can get some context.

Assume you have an application that is using asynchronous operations (RPCs and timers in our case). You may have many asynchronous operations pending at a time. You want to get notified when an operation completes. Those notifications cannot run in the application threads. The whole reason you wanted to use asynchronous operations was to free your threads to do other work. Therefore, you need a pool …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@sychopath
Comment options

@coryan
Comment options

coryan Sep 30, 2022
Collaborator

Answer selected by coryan
Comment options

You must be logged in to vote
2 replies
@coryan
Comment options

coryan Oct 8, 2023
Collaborator

@lucas-0liveira
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants