Summary
In this chapter, we covered how the Rx programming model can be used to write reactive microservices using C++. As part of the process, we introduced you to the Microsoft C++ REST SDK and its programming model. The C++ REST SDK follows an asynchronous programming model based on a technique called task continuation style, while writing client-side code. To write REST clients, we leveraged Kirk Shoop's RxCurl
library, with some modifications to support the PUT
and DELETE
verbs. Finally, we wrote a REST server and consumed it in a reactive manner.In the next chapter, we will learn how to handle errors and exceptions using constructs available in the RxCpp library.