You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2025-09-22-swift-on-the-server-ecosystem.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: [0xTim]
7
7
category: "Community"
8
8
---
9
9
10
-
Nearly ten years ago, Swift was open sourced and an official runtime for Linux was released. I've been involved with Swift on the server since almost the very beginning, originally picking it up as a way to use a language I really enjoyed for backend development. In that time Swift has come a long way, with stability across platforms, a burgeoning ecosystem and many success stories. It's matured into a great option for highly-scalable server applications, websites and lambdas. In this post, I'll cover how Swift:
10
+
Nearly ten years ago, Swift was open sourced and an official runtime for Linux was released. I've been involved with Swift on the server since almost the very beginning, originally picking it up as a way to use a language I really enjoyed for backend development. In that time Swift has come a long way, with stability across platforms, a burgeoning ecosystem and many success stories. It's matured into a great option for highly-scalable server applications, websites, and lambdas. In this post, I'll cover how Swift:
11
11
12
12
* is seeing a number of success stories of running critical production workloads
13
13
* has evolved to be a powerful language for server development
@@ -18,13 +18,13 @@ Nearly ten years ago, Swift was open sourced and an official runtime for Linux w
18
18
19
19
There have been some really awesome success stories emerge over the last few years, reinforcing the strength of Swift on the server. The award-winning Things app [explained how they migrated their backend](/blog/how-swifts-server-support-powers-things-cloud/) from Python to Swift, seeing a 4x increase in performance, whilst costing a third of the original price!
20
20
21
-
Apple's Password Monitoring Service also [underwent a similar transition](/blog/swift-at-apple-migrating-the-password-monitoring-service-from-java/) migrating from Java to Swift. As well as an improved codebase from Swift's ergonomics, they saw similar gains with a 40% increase in throughput, a 50% reduction in hardware utilization and a **90% decrease** in memory usage, freeing up server capacity for other workloads.
21
+
Apple's Password Monitoring Service also [underwent a similar transition](/blog/swift-at-apple-migrating-the-password-monitoring-service-from-java/) migrating from Java to Swift. As well as an improved codebase from Swift's ergonomics, they saw similar gains with a 40% increase in throughput, a 50% reduction in hardware utilization, and a **90% decrease** in memory usage that freed up server capacity for other workloads.
22
22
23
23
From my vantage point working on Vapor, I've seen more and more companies adopt Swift on the server. I no longer get asked if Swift is "ready for production?". All the questions are about what can it do and "how can I use Swift for my use case?", which is fantastic to see. There are even a number of talks lined up for this year's server conference with success stories of running Swift on the server.
24
24
25
25
## Language strengths and improvements
26
26
27
-
Swift has grown a lot since Swift 3! The language has seen a huge number of changes heavily adopted, and in some cases driven, by the server world. Native UTF-8 strings, `Codable`, keypaths and property wrappers all saw quick adoption by server packages. Swift Concurrency has been a game changer, making it significantly easier for developers to write asynchronous code, which is especially helpful in an environment where almost everything is asynchronous! Task local values make it simple to introduce distributed tracing to applications without the need to pass contexts around everywhere. More recently, features such as package traits, build plugins and macros have already started to be adopted by server libraries, to provide more performant and efficient code to end users.
27
+
Swift has grown a lot since Swift 3! The language has seen a huge number of changes heavily adopted, and in some cases driven, by the server world. Native UTF-8 strings, `Codable`, keypaths, and property wrappers all saw quick adoption by server packages. Swift Concurrency has been a game changer, making it significantly easier for developers to write asynchronous code, which is especially helpful in an environment where almost everything is asynchronous! Task local values make it simple to introduce distributed tracing to applications without the need to pass contexts around everywhere. More recently, features such as package traits, build plugins, and macros have already started to be adopted by server libraries that provide more performant and efficient code to end users.
28
28
29
29
One of the big changes in recent years is the introduction of [`Sendable`](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency#Sendable-Types), which has eliminated many cases of data race issues. A great showcase of this is Vapor, which used to see one or two issues created a month reporting data race crashes that were impossible to reproduce and extremely hard to resolve. Since Vapor adopted `Sendable` there hasn't been **a single report** of a data race crash! This just goes to show how using Swift makes it easier to write safe server applications.
30
30
@@ -34,7 +34,7 @@ Swift was introduced with great C interoperability and has since expanded to inc
34
34
35
35
The new Swift Java interop also makes it possible to work with existing Java libraries in Swift projects and begin to incrementally migrate large, existing Java codebases to Swift, without the need for major rewrites that are often risky. This was spoken about at the package's introduction at [ServerSide.swift 2024](https://www.youtube.com/watch?v=wn6C_XEv1Mo).
36
36
37
-
Overall, Swift has evolved to be a great language for server development. Have a look at the [Cloud Services page](/get-started/cloud-services/) on swift.org for getting started tutorials, language benefits and more information about the server ecosystem.
37
+
Overall, Swift has evolved to be a great language for server development. Have a look at the [Cloud Services page](/get-started/cloud-services/) on swift.org for getting started tutorials, language benefits, and more information about the server ecosystem.
38
38
39
39
## The Ecosystem
40
40
@@ -52,7 +52,7 @@ The ecosystem continues to be an early adopter of Swift technologies. gRPC Swift
52
52
53
53
The last ten years has seen the community grow and grow at an ever accelerating pace and it feels great to know that the next ten years will be even more exciting and see an even bigger community.
54
54
55
-
There's even a dedicated conference! The [ServerSide.swift conference](https://www.serversideswift.info) I organize, is hosting its 5th year this year in London. The schedule has recently been announced and it's packed with amazing talks on gRPC, containers, concurrency and success stories. Previous years have seen really great talks, such as the [success story of using Swift on the server](https://www.youtube.com/watch?v=oJArLZIQF8w) by Cultured Code, the company behind Things. Other standout sessions include talks on [the OpenAPI generator](https://www.youtube.com/watch?v=n1PRYVveLd0), the announcement of the new [Swift Foundation](https://www.youtube.com/watch?v=EUKSZiOaWKk) and technical language talks on [structured concurrency](https://www.youtube.com/watch?v=JmrnE7HUaDE).
55
+
There's even a dedicated conference! The [ServerSide.swift conference](https://www.serversideswift.info) I organize, is hosting its 5th year this year in London. The schedule has recently been announced and it's packed with amazing talks on gRPC, containers, concurrency, and success stories. Previous years have seen really great talks, such as the [success story of using Swift on the server](https://www.youtube.com/watch?v=oJArLZIQF8w) by Cultured Code, the company behind Things. Other standout sessions include talks on [the OpenAPI generator](https://www.youtube.com/watch?v=n1PRYVveLd0), the announcement of the new [Swift Foundation](https://www.youtube.com/watch?v=EUKSZiOaWKk), and technical language talks on [structured concurrency](https://www.youtube.com/watch?v=JmrnE7HUaDE).
56
56
57
57
Tickets for this year's conference are still available on the [website](https://www.serversideswift.info). We even have a day of workshops, including a workshop from expert developers from Apple on how to get started with Swift on the server, which is a great opportunity for anyone wanting to learn more.
0 commit comments