Create cloud services with Swift

Run performant services on Linux and deploy to the cloud

  • Performant With incredible memory efficiency, Swift operates without a garbage collector, running with predictable speed while using fewer resources.
  • Lightweight Swift has minimal warm-up operations, making it an ideal fit for running cloud services, which are often rescheduled onto virtual machines and containers.
  • Scalable Powering internet-scale cloud services that handle billions of requests a day, Swift is capable of running large production workloads.
Get Started

Low memory footprint. Massive performance.

Cultured Code migrated the services that support Things to Swift and saw a massive reduction in both cost and response time.

By leveraging Swift’s built-in features and server-oriented packages, they were able to thoroughly test and rapidly improve their customer experience.

Read more

Leverage web frameworks

  • Vapor logo
    Vapor Vapor provides a safe, performant and easy to use foundation to build HTTP servers, backends and APIs in Swift. Vapor
  • Hummingbird logo
    Hummingbird Hummingbird is a lightweight, flexible modern web application framework that runs on top of a SwiftNIO based server implementation. Hummingbird

Explore cloud native packages

  • Swift Prometheus Client for the Prometheus monitoring system, supporting counters, gauges and histograms. View on GitHub
  • gRPC Swift The Swift language implementation of gRPC. View on GitHub
  • Swift OPA Evaluate Open Policy Agent IR Plans compiled from Rego declarative policy. (pre-1.0 release) View on GitHub
  • Swift OTel OpenTelemetry client built for Swift observability libraries. (pre-1.0 release) View on GitHub

Build & publish containers natively

Container images are the standard way to package cloud software today. Once you've packaged your server in a container image, you can deploy it on any container-based public or private cloud service, or run it locally using a desktop container runtime.

Swift Container Plugin allows you to build and publish container images for your Swift services in one streamlined workflow with Swift Package Manager.

Swift Container Plugin

Develop and deploy to the cloud

$ docker pull swift

Swift publishes official container images for multiple architectures, making it easy to develop on Linux and to deploy to production. Ready-to-use guides are available for deploying to environments like Kubernetes, AWS, GCP, Digital Ocean, and many others.

Explore more server packages

  • Swift OpenAPI Generator Generate Swift client and server code from an OpenAPI document. View on GitHub
  • SwiftNIO Cross-platform asynchronous event-driven network application framework. View on GitHub
  • PostgresNIO Non-blocking, event-driven Swift client for PostgreSQL. View on GitHub
  • Async HTTP Client Provides an HTTP Client library built on top of SwiftNIO. View on GitHub
Explore more packages on Swift Package Index