Build an enterprise Swift app using services  

Build and deploy an enterprise Swift application that uses multiple services and libraries

Last updated

The Swift programming language is a general-purpose language for Apple platforms and Linux. This journey shows you how to build an enterprise Swift application that uses multiple services and libraries when you deploy the app to the Bluemix platform.

By Ricardo Olivieri, Ishan Gulhane


This developer journey shows you how to implement new enterprise capabilities when you deploy your Swift applications to the Bluemix platform. You’ll use the following Bluemix services and libraries for the Swift language:

  • Auto Scaling
  • Alert Notification
  • Circuit Breaker
  • SwiftMetrics

You’ll learn how to scale the application, receive alerts when important events occur, and prevent the application from executing actions that are bound to fail. The application also provides UI widgets for triggering actions that can increase or decrease memory usage, HTTP response time, and the number of HTTP requests per second.


  1. The user configures the setting for the Circuit Breaker library in the code before deploying the application to Bluemix (using their IDE of choice). After deploying the application, the user creates a policy on Bluemix to set up the Auto-Scaling and Alert Notification services. This task is performed using the Bluemix dashboard. The user interacts with the application UI in their browser.
  2. When the user performs any action, the UI calls the Swift application back-end component. When the conditions for the Auto-Scaling policy are satisfied, the application scales in Bluemix. Alert notifications are sent about the current conditions of the application that are triggering the Auto-Scaling rules. When several requests for the endpoint fail, the Circuit Breaker library activates for the configured endpoint.



Automatically increase or decrease the compute capacity of your application.

IBM Alert Notification

Get early notification of application or service issues before they affect your users.

Circuit Breaker

Improve application stability and response time while reducing the number of failing requests.

Application Metrics for Swift

Gain insight into the live performance of your server side Swift applications.

Cloud Foundry

Build, deploy, and run applications on an open source cloud platform.



Collection of fine-grained, loosely coupled services using a lightweight protocol to provide building blocks in modern application composition in the cloud.

Platform as a Service

A platform for Cloud services making it easy to develop, deploy, and manage applications by abstracting the complexity of maintaining the infrastructure required to carry out these activities.

Swift on the Server

Build powerful, fast and secure server side Swift apps for the Cloud

Related Blogs

Related Links


Build fast and secure server-side Swift apps for the cloud.

Swift@IBM: Kitura

A new, modular, package-based web framework written in the Swift language.

IBM Swift Sandbox

An interactive website to write Swift code and execute it in a server environment on top of Linux.