O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Swift in the Cloud

Book Description

Write and run Swift language programs in the Cloud

Written by the team of developers that has helped bring the Swift language to Cloud computing, this is the definitive guide to writing and running Swift language programs for cloud environment. In Swift in the Cloud, 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.

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.

  • Create server applications using Swift and run them on pay-as-you-go cloud infrastructure
  • Quickly write and test Swift code snippets in your own cloud sandbox
  • Use Docker containers to deploy Swift applications into multiple cloud environments without having to change code
  • Grasp the elements and structure of the Swift.org open technology project
  • Find out how to avoid the complexities of runtime configuration by using Cloud Foundry buildpacks for Swift
  • Build high performing web applications and REST APIs with an open source Swift based web server framework
  • Scale up your cloud services by running Swift modules in an asynchronous, open source, 'serverless' cloud environment

Whether you are already using Swift to build mobile applications or a seasoned web developer, Swift in the Cloud will help you leverage server-side Swift to power your next generation of applications.

Table of Contents

  1. About the Authors
  2. About the Technical Editor
  3. Credits
  4. Acknowledgments
  5. Introduction
    1. IBM, Apple, and Swift
    2. Scope of This Book
  6. Chapter 1 Swift.org, the Open Source Project
    1. What’s Included
    2. How to Get Involved
    3. Swift Evolution and Roadmap
    4. Binary Downloads
    5. Summary
    6. Notes
  7. Chapter 2 A Swift Sandbox in the Cloud
    1. The IBM Cloud Platform
    2. Getting Started
    3. IBM Swift Package Catalog and Sandbox
    4. Summary
  8. Chapter 3 A Basic Introduction to Swift
    1. Background
    2. Let’s Get Coding!
    3. The Language Landscape
    4. Language Timeline
    5. Summary
  9. Chapter 4 The IBM Bluemix Buildpack for Swift
    1. Cloud Foundry Buildpacks
    2. Working with the IBM Bluemix Buildpack for Swift
    3. Examples of Using the IBM Bluemix Buildpack for Swift
    4. Using the Latest Code of the IBM Bluemix Buildpack for Swift
    5. Summary
  10. Chapter 5 Using Containers on Bluemix to Run Swift Code
    1. Docker Images for Swift
    2. Installing Docker
    3. Using Docker as a Development Tool
    4. Why Use Containers on Bluemix?
    5. Running Your Docker Image in the Bluemix Cloud
    6. High Availability in Kubernetes Clusters
    7. Binding Bluemix Services to IBM Containers
    8. Summary
  11. Chapter 6 Swift Package Management
    1. Swift Package Manager
    2. Swift Package Catalog
    3. Summary
  12. Chapter 7 Swift and Kitura for Web Applications
    1. Kitura
    2. Kitura and Data Access
    3. Summary
    4. Notes
  13. Chapter 8 Serverless Programming with Swift
    1. Microservices and Serverless Computing
    2. Swift and OpenWhisk
    3. Summary
  14. Chapter 9 Over the Horizon: Where Do We Go from Here?
    1. Bringing Swift to the Server
    2. Expanding the Range of Swift
    3. Swift DevOps
    4. Summary
  15. EULA