minimum number of threads grpc needs to function

24 views
Skip to first unread message

Jeff

unread,
Mar 7, 2019, 4:59:08 PM3/7/19
to grpc.io

  Hello all,
  I am interested in implementing a streaming server in C++, and would like to know the answers to these questions:

   1) What is the minimum number of threads required for a functioning streaming server implementing the sync threading model?

   2) What is the minimum number of threads required for a functioning streaming server implementing the *async* threading model?

   3) When I start the example C++ server route_guide_server (which is synchronous), I see a number of threads launched (default-executor, resolver-executor, multiple grpc_global_timers, and more).
       Do I have direct control over what cores these threads run on, how many of these threads are launched, or any aspect of them at all?
  
   4) What are all the threads that I do have control over?

    Thanks for any information. I am looking to implement a streaming server using the minimum number of threads possible, preferably explicitly assigning threads to specific cores.

    Please Note: I have already looked at epoll-polling-engine.md. It does not explicitly answer any of the above questions.

    Thanks again.
Reply all
Reply to author
Forward
0 new messages