The goal is to make the C++ REST SDK a truly cross-platform library that can unlock the true potential of native code in the cloud. The initial release is a client-side, cross-platform library to access REST services. It aims to provide developers with tools and APIs that solve day-to-day problems of moving native code to the cloud. The C++ REST SDK ( bit.ly/VI67I5) is Microsoft’s first foray into enabling native code to move to the cloud environment. One of the primary reasons cited for this apparent failure is the lack of a cross-platform, high-performance, efficiently scalable library that would enable a C++ developer to seamlessly integrate existing C and C++ code into the cloud environment.
When it comes to cloud computing, though, C++ seemingly doesn’t deliver on its full potential. In his paper, “Welcome to the Jungle” ( bit.ly/uhfrzH), Herb Sutter unambiguously describes the mainstream move to elastic, distributed computing as a natural evolution of the same scale and performance trends that have driven multicore and heterogeneous computing into the mainstream.Ĭ++ is the preferred programming language when cross-platform code sharing and performance are design considerations. In other cases, specialized libraries might be utilized to perform server-side computing, processing, and analysis, and return a response to the client app. Some, such as PHP, C#, and Java, are by default Web-enabled and might meet the needs of some of the common scenarios for sharing and consuming data. Developers are tasked with creating seamless experiences in those apps to facilitate sharing, organizing and viewing data-and to delight users.Īpps are written in a variety of programming languages. These apps share and consume data through this mishmash of devices and services and provide rich, immersive experiences for end users. These users are increasingly using apps installed on their personal devices (smartphones, tablets, PCs and other similar devices). The world of connected devices is increasingly moving into a heterogeneous mixture of native apps, Web apps and Web sites all connecting to a mix of cloud- and non-cloud-based services.
In this article I’ll show how to use the C++ REST SDK to build a simple Windows-based client application that uploads a file to Dropbox, along with a standard C++ class that supports OAuth. Volume 28 Number 8 C++ - Bringing RESTful Services to C++ Developers