Details

Swift in the Cloud


Swift in the Cloud


1. Aufl.

von: Leigh Williamson, John Ponzo, Patrick Bohrer, Ricardo Olivieri, Karl Weinmeister, Samuel Kallner

30,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 04.08.2017
ISBN/EAN: 9781119368533
Sprache: englisch
Anzahl Seiten: 264

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Write and run Swift language programs in the Cloud</b> <p>Written by the team of developers that has helped bring the Swift language to Cloud computing, this is <i>the</i> definitive guide to writing and running Swift language programs for cloud environment. In <i>Swift in the Cloud</i>, you'll find full coverage of all aspects of creating and running Swift language applications in Cloud computing environments, complete with examples of real code that you can start running and experimenting with today. <p>Since Apple introduced the Swift language in 2014, it has become one of the most rapidly adopted computer programming languages in history—and now you too can start benefitting from using the same programming language for all components of a scalable, robust business software solution. <ul> <li>Create server applications using Swift and run them on pay-as-you-go cloud infrastructure</li> <li>Quickly write and test Swift code snippets in your own cloud sandbox</li> <li>Use Docker containers to deploy Swift applications into multiple cloud environments without having to change code</li> <li>Grasp the elements and structure of the Swift.org open technology project</li> <li>Find out how to avoid the complexities of runtime configuration by using Cloud Foundry buildpacks for Swift</li> <li>Build high performing web applications and REST APIs with an open source Swift based web server framework</li> <li>Scale up your cloud services by running Swift modules in an asynchronous, open source, 'serverless' cloud environment</li> </ul> <p>Whether you are already using Swift to build mobile applications or a seasoned web developer, <i>Swift in the Cloud</i> will help you leverage server-side Swift to power your next generation of applications.
<p>Introduction xxiii</p> <p><b>1 Swift.org, the Open Source Project 1</b></p> <p>What’s Included 1</p> <p>Source Code Repositories 2</p> <p>How to Get Involved  5</p> <p>Mailing Lists 7</p> <p>Bug Tracking 8</p> <p>Swift Evolution and Roadmap 12</p> <p>Priorities for the Swift 4.0 Major Release 14</p> <p>Binary Downloads  14</p> <p>MacOS Binaries  15</p> <p>Linux Binaries  16</p> <p>Swiftenv, Swift Version Manager  17</p> <p>Summary 17</p> <p><b>2 A Swift Sandbox in the Cloud 19</b></p> <p>The IBM Cloud Platform 19</p> <p>Getting Started 26</p> <p>Sign Me Up!.  26</p> <p>Saving and Sharing Code Samples  28</p> <p>Selecting Swift Versions and More  30</p> <p>Have You Run on a Mainframe Lately? 30</p> <p>IBM Swift Package Catalog and Sandbox 32</p> <p>Summary 33</p> <p><b>3 A Basic Introduction to Swift 35</b></p> <p>Background 35</p> <p>Let’s Get Coding!  35</p> <p>Swift Standard Library 35</p> <p>Swift Foundation Library 37</p> <p>C Library Interoperability 39</p> <p>Concurrency Library 41</p> <p>Memory Management 43</p> <p>The Language Landscape 48</p> <p>Language Groupings 48</p> <p>Language Timeline  50</p> <p>Summary 51</p> <p><b>4 The IBM Bluemix Buildpack for Swift 53</b></p> <p>Cloud Foundry Buildpacks 53</p> <p>Buildpack Phases  54</p> <p>Working with the IBM Bluemix Buildpack for Swift 55</p> <p>Where Is the Source Code Hosted?  55</p> <p>What Version of the Buildpack Is Currently Installed?  56</p> <p>File Artifacts Required for Provisioning Your Application on Bluemix 58</p> <p>Installing Additional System-Level Dependencies 61</p> <p>Downloading Closed Source Dependencies 68</p> <p>Examples of Using the IBM Bluemix Buildpack for Swift  69</p> <p>Swift HelloWorld  69</p> <p>Kitura Starter  74</p> <p>BluePic 77</p> <p>Using the Latest Code of the IBM Bluemix Buildpack for Swift 87</p> <p>Summary 88</p> <p><b>5 Using Containers on Bluemix to Run Swift Code 91</b></p> <p>What Are Docker Containers? 91</p> <p>Docker Images for Swift 92</p> <p>Installing Docker.  93</p> <p>Using Docker as a Development Tool  94</p> <p>Exposing Your Swift Application’s Port to the Host System 96</p> <p>Using docker-compose 96</p> <p>Why Use Containers on Bluemix? 98</p> <p>Containers for Packaging and Deployment of Swift Applications  99</p> <p>The Kubernetes Platform 99</p> <p>Running Your Docker Image in the Bluemix Cloud 100</p> <p>Install the Kubernetes Command Line 100</p> <p>Install the Bluemix Command Line. 100</p> <p>Install the IBM Container Registry Plug-In 102</p> <p>Install the IBM Container Service Plug-In 102</p> <p>Create a Runtime Image for Swift Applications 103</p> <p>Tag a Docker Image 106</p> <p>Push a Docker Image to Bluemix  107</p> <p>Create a Kubernetes Cluster on Bluemix 108</p> <p>High Availability in Kubernetes Clusters 112</p> <p>Binding Bluemix Services to IBM Containers. 113</p> <p>Summary 116</p> <p><b>6 Swift Package Management 119</b></p> <p>Swift Package Manager 119</p> <p>Using Swift Package Manager  120</p> <p>Commands  121</p> <p>Package.Swift Details 123</p> <p>Swift Package Catalog 123</p> <p>Browsing 123</p> <p>Searching 124</p> <p>Package Details  126</p> <p>Dependency Visualization 127</p> <p>Trying Out a Package in the Sandbox 128</p> <p>Summary 130</p> <p><b>7 Swift and Kitura for Web Applications 131</b></p> <p>Kitura 133</p> <p>Sending Simple Responses to Requests 136</p> <p>A Real-World Library Example  137</p> <p>Accessing Information Sent in Requests 138</p> <p>Starting the Library Application  140</p> <p>Working with Various HTTP Features Using Kitura  149</p> <p>Other Ways of Serving Content Using Kitura 155</p> <p>Other Useful Kitura Middleware  157</p> <p>Authentication Using the Kitura-Credentials Framework 159</p> <p>The Library Sample with Authentication 160</p> <p>Kitura and Data Access 163</p> <p>Swift-Kuery  163</p> <p>Kitura-redis  170</p> <p>Summary 173</p> <p><b>8 Serverless Programming with Swift 175</b></p> <p>Microservices and Serverless Computing 175</p> <p>Serverless Computing Concepts  177</p> <p>OpenWhisk  179</p> <p>Swift and OpenWhisk 182</p> <p>Using the Web-Based OpenWhisk Tools 183</p> <p>Command Line OpenWhisk 189</p> <p>A More Involved Example 195</p> <p>Summary 201</p> <p><b>9 Over the Horizon: Where Do We Go from Here? 203</b></p> <p>Bringing Swift to the Server 203</p> <p>IBM Cloud Tools for Swift 204</p> <p>Server-Side Frameworks 210</p> <p>Expanding the Range of Swift 215</p> <p>Swift Support for Linux 215</p> <p>The Internet of Swift Things 215</p> <p>Big Iron Swift  216</p> <p>Swift DevOps 218</p> <p>Summary 219</p> <p>Index  221</p>
<p><b>LEIGH WILLIAMSON</b> is a technical leader in the IBM Cloud team who aids clients with cloud computing strategy and execution.</p> <p><b>JOHN PONZO</b> is an IBM Fellow and the primary technical collaborator between Apple and IBM in refining Swift for both mobile client and cloud services development.</p> <p><b>PATRICK BOHRER</b> is technical lead for IBM's global efforts around Swift@IBM Engineering.</p> <p><b>RICARDO OLIVIERI</b> is an expert in the adoption of the Swift language on the server and the IBM cloud.</p> <p><b>KARL WEINMEISTER</b> helped extend Swift from its mobile roots to become a full-stack language ecosystem.</p> <p><b>SAMUEL KALLNER</b> is technical lead of the Kitura project at the IBM Research Lab in Haifa, Israel.</p>
<p><b>Your one-stop guide to creating and running Swift applications in the cloud</b> <p>Since its introduction in 2014, the Swift language has become one of the most rapidly adopted programming languages in history. In <i>Swift in the Cloud,</i> the team responsible for bringing Swift to the cloud environment walks you through every step needed to create code that runs in massively scalable cloud environments. You will learn both the concepts involved and examples of real code you can start using today. <p>These experts introduce you to the Swift language and its features as well as the elements and structure of the Swift.org open technology project. From there, you will learn to create server applications that run on the pay-as-you-go cloud infrastructure, how to write and test Swift code snippets in your own cloud sandbox, and how to use the Cloud Foundry Buildpack for Swift to avoid the complexities of runtime configuration. You will be able to build high-performing web applications and REST APIs with a Swift-based web server framework and run Swift modules in an asynchronous, open source, "serverless" cloud environment. Swift enables you to build all components of a scalable, robust business software solution using the same programming language. <b> <p><i>Swift in the Cloud</i> introduces you to: <ul> <li>IBM's Cloud Platform-as-a-Service environment</li> <li>Using Docker containers to run Swift</li> <li>Swift packages and the Package Manager</li> <li>Using Swift and Kitura for web applications</li> <li>Event-driven programming using OpenWhisk</li> <li>Plenty of examples and code samples you can use now</li> </ul> </b>

Diese Produkte könnten Sie auch interessieren:

Symbian OS Explained
Symbian OS Explained
von: Jo Stichbury
PDF ebook
32,99 €
Symbian OS Internals
Symbian OS Internals
von: Jane Sales
PDF ebook
56,99 €
Parallel Combinatorial Optimization
Parallel Combinatorial Optimization
von: El-Ghazali Talbi
PDF ebook
120,99 €