Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Software Architecture with C++
  • Table Of Contents Toc
Software Architecture with C++

Software Architecture with C++ - Second Edition

By : Andrey Gavrilin, Adrian Ostrowski, Piotr Gaczkowski
close
close
Software Architecture with C++

Software Architecture with C++

By: Andrey Gavrilin, Adrian Ostrowski, Piotr Gaczkowski

Overview of this book

Designing scalable and maintainable software with C++ requires more than language expertise—it demands strong architectural thinking. This practical guide equips you with the skills to design and build robust, distributed systems using modern C++. Starting with fundamental architectural principles and design philosophies, the book walks you through practical approaches to designing and deploying reliable systems. This edition contains significant updates across the book, including new chapters on observability, package management, and C++ modules to address real-world software challenges. You will explore software decomposition strategies, design and system patterns, fault tolerance, API management, and testability—all applied with C++. Additionally, the book covers modern CI/CD pipelines, cloud-native design, microservices, and modular development, helping developers navigate today's fast-evolving software landscape. With updated examples and a renewed emphasis on maintainable and observable architectures, this edition equips C++ professionals to architect modern systems. By the end of this book, you will be able to design, build, test, and deploy well-architected solutions using modern C++ and proven architectural techniques. *Email sign-up and proof of purchase required
Table of Contents (27 chapters)
close
close
1
Concepts and Components of Software Architecture
5
The Design and Development of C++ Software
12
Architectural Quality Attributes
17
Cloud-Native Design Principles
26
Index

Compile-time testing techniques

Template metaprogramming allows us to write C++ code that is executed during compile-time as opposed to the usual runtime execution. The constexpr keyword, which was added in C++11, allows us to make more extensive use of compile-time logic, and the consteval keyword from C++20 aims to give us greater control over the way the code is evaluated during compilation.

One of the problems with compile-time programming is that there is no easy way to test it. While unit testing frameworks for execution time code are abundant (as we just saw), there are not that many resources regarding compile-time programming. Part of this may stem from the fact that compile-time programming is still considered complicated and only aimed at experts.

However, just because something isn’t easy doesn’t mean it is impossible. Just like execution time tests rely on assertions being checked during runtime, you can check your compile-time code for correct behavior...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Software Architecture with C++
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon