The great thing about software development is that there is always something new to learn! The terrible thing about software development is that there is always something new to learn! Luckily, there are tons of wonderful people sharing their knowledge every week in helpful and entertaining newsletters … and unfortunately, it can be really easy...
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.
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
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.
- 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.
- 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.