Uploaded July 2024 | Updated December 2026, 3 hours ago
cppnow.org
---
C++ Coroutines at Scale - Implementation Choices at Google - Aaron Jacobs - C++Now 2024
---
Google is now using C++ coroutines to process billions of requests per second. This talk presents trade-offs and novel choices made in developing our coroutines library, and integrating it into the Google production environment. The talk covers both performance and semantic questions that affect usability and software engineering at scale.
Topics include:
- The importance of mandatory support for cancellation.
- Library and compiler support making it feasible to safely accept reference parameters in coroutines.
- The benefits and limitations of structured concurrency APIs.
- Unifying deadlines and cancellation.
- Stack-efficient async programming, including techniques for stack-efficient cancellation, and where the language is still missing features.
- Trade-offs between API usability and bounded parallelism executors.
- Propagation of "context" information like tracing and security credentials.
- Using coroutines to improve the usability of APIs for making and receiving streaming RPCs.
---
Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Coroutines_at_scale.pdf
---
Aaron Jacobs
Aaron is a senior staff software engineer who has been at Google since 2008. He has worked on several large storage systems, and is particularly interested in async programming in C++. Outside of work he holds a private pilot license with aerobatics and spinning endorsements, and enjoys turning light airplanes upside down.
---
C++Now 2025 - 28th April - 2nd May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech
---
Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---
#boost #cpp #programming #softwareengineering #google
cppnow.org
---
C++ Coroutines at Scale - Implementation Choices at Google - Aaron Jacobs - C++Now 2024
---
Google is now using C++ coroutines to process billions of requests per second. This talk presents trade-offs and novel choices made in developing our coroutines library, and integrating it into the Google production environment. The talk covers both performance and semantic questions that affect usability and software engineering at scale.
Topics include:
- The importance of mandatory support for cancellation.
- Library and compiler support making it feasible to safely accept reference parameters in coroutines.
- The benefits and limitations of structured concurrency APIs.
- Unifying deadlines and cancellation.
- Stack-efficient async programming, including techniques for stack-efficient cancellation, and where the language is still missing features.
- Trade-offs between API usability and bounded parallelism executors.
- Propagation of "context" information like tracing and security credentials.
- Using coroutines to improve the usability of APIs for making and receiving streaming RPCs.
---
Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Coroutines_at_scale.pdf
---
Aaron Jacobs
Aaron is a senior staff software engineer who has been at Google since 2008. He has worked on several large storage systems, and is particularly interested in async programming in C++. Outside of work he holds a private pilot license with aerobatics and spinning endorsements, and enjoys turning light airplanes upside down.
---
C++Now 2025 - 28th April - 2nd May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech
---
Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---
#boost #cpp #programming #softwareengineering #google










