equal to your CPU cores count, and use one CompletionQueue
per thread.

__ [ Backend ](/categories/backend/) , [ Networking ](/categories/networking/)
, [ gRPC ](/categories/grpc/)

__ [ C++ ](/tags/c/) [ gRPC ](/tags/grpc/)

This post is licensed under [ CC BY 4.0
](https://creativecommons.org/licenses/by/4.0/) by the author.

Share  [ __
](https://twitter.com/intent/tweet?text=\[StackOverflow\]%20Difference%20between%20synchronous%20and%20asynchorous%20gRPC%20API%20-%20Miigon's%20blog&url=https%3A%2F%2Fblog.miigon.net%2Fposts%2Fso-
difference-between-sync-and-async-grpc%2F "Twitter") [ __
](https://www.facebook.com/sharer/sharer.php?title=\[StackOverflow\]%20Difference%20between%20synchronous%20and%20asynchorous%20gRPC%20API%20-%20Miigon's%20blog&u=https%3A%2F%2Fblog.miigon.net%2Fposts%2Fso-
difference-between-sync-and-async-grpc%2F "Facebook") [ __
](https://t.me/share/url?url=https%3A%2F%2Fblog.miigon.net%2Fposts%2Fso-
difference-between-sync-and-async-
grpc%2F&text=\[StackOverflow\]%20Difference%20between%20synchronous%20and%20asynchorous%20gRPC%20API%20-%20Miigon's%20blog
"Telegram") __

Recently Updated

  * [ [mit6.s081] 笔记 Lab10: Mmap | 文件内存映射 ](/posts/s081-lab10-mmap/)
  * [ [随笔]文件系统上存储哈希对象：哈希算法以及目录结构对性能的影响 ](/posts/storing-hash-objects-on-filesystem/)
  * [ git的前世，和BitKeeper ](/posts/origin-of-git-feat-bitkeeper/)
  * [ 随笔：Golang 循环变量引用问题以及官方语义修复 ](/posts/golang-loop-var-reference-problems-and-semantic-fix/)
  * [ [mit6.s081] 笔记 Lab6: Copy-on-write fork | fork 懒拷贝 ](/posts/s081-lab6-copy-on-write-fork/)

Trending Tags

[ operating system ](/tags/operating-system/) [ Chinese ](/tags/chinese/) [
system design ](/tags/system-design/) [ C++ ](/tags/c/) [ course
recommendation ](/tags/course-recommendation/) [ gRPC ](/tags/grpc/) [
translated ](/tags/translated/) [ announcement ](/tags/announcement/) [ c++
standard ](/tags/c-standard/) [ computer system ](/tags/computer-system/)

Friend Links

  * [ 0xffff.one 搬砖技术社区 ](http://0xffff.one)
  * [ ZGQ's Blog ](https://blog.izgq.net)

Contents

###  Further Reading

[ _Aug 20, 2021_ [StackOverflow] C++ gRPC 异步 API 实例与优势  转自 我的一个 StackOverflow
回答。因为答案比较长，而且感觉比较有意义，就翻译成了中文发了出来。 原问题: 我正在用 gRPC 构建一个要求高吞吐量的服务。但是我现在用 C++ 同步式
gRPC 编写的程序的吞吐量并不高。 我已经读过了 gRPC 文档，但是我并没有找到对于同步/异步 API 的区别的清晰解释。我只知道异步 API
可以控制完成队列（...  ](/posts/cn-so-difference-between-sync-and-async-grpc/)

[ _Feb 24, 2021_ 问题分析：ios_base::fixed 导致输出精度丢失？  这篇文章是来自我在 0xffff.one 上的一个帖子
https://0xffff.one/d/911/ 的回复。 原帖内容：
百度说是这行代码的作用是使用定点输出，同时输出小数点后6位(我试了好多数，仍然表示很迷)
为什么有这行代码有时候求两个数加减乘除的结果就不对，没有这行代码就对呢 比如55.25+11.17有上面那行代码结果是66.419998，没有就是66...
](/posts/cpp-ios-base-fixed-precision-loss/)

[ _Mar 4, 2022_ [SZU] 数据库内核课程 PostgreSQL 12.5 源码安装避坑 guide  课程：2022
年下学期，秦建斌老师的《数据库内核原理与实现》课程。 示例环境：Ubuntu 20.04 LTS PostgreSQL 版本： 12.5 1. 准备
linux 环境/虚拟机/或Windows下使用wsl Linux/Mac 用户可直接编译，Windows 用户自行搜索 wsl 教程配置后，剩余流程同
Linux 用户。 Mac 用户需要用其他方式（homebr...  ](/posts/postgresql-source-compilation-
guide/)

[ [StackOverflow] C++ gRPC 异步 API 实例与优势  ](/posts/cn-so-difference-between-sync-and-async-grpc/) [ [mit6.s081] 笔记 Lab1: Unix utilities | Unix 实用工具  ](/posts/s081-lab1-unix-utilities/)

Trending Tags

[ operating system ](/tags/operating-system/) [ Chinese ](/tags/chinese/) [
system design ](/tags/system-design/) [ C++ ](/tags/c/) [ course
recommendation ](/tags/course-recommendation/) [ gRPC ](/tags/grpc/) [
translated ](/tags/translated/) [ announcement ](/tags/announcement/) [ c++
standard ](/tags/c-standard/) [ computer system ](/tags/computer-system/)

© 2023 [ Miigon ](https://github.com/Miigon) .  Some rights reserved.

Using the [ Jekyll ](https://jekyllrb.com) theme [ Chirpy
](https://github.com/cotes2020/jekyll-theme-chirpy) .

__

×

A new version of content is available.

Update