Apple announces SwiftNIO, an open source framework for network applications

Apple has announced its latest foray into open source software, this time with SwiftNIO, a new framework for writing network applications using the Swift programming language. Both the framework and its open source nature were announced by Apple software engineer Norman Maurer at the try! Swift Conference.

The framework is now available on Apple's GitHub page. Here's what the company has to say about SwiftNIO:

SwiftNIO is fundamentally a low-level tool for building high-performance networking applications in Swift. It particularly targets those use-cases where using a "thread-per-connection" model of concurrency is inefficient or untenable. This is a common limitation when building servers that use a large number of relatively low-utilisation connections, such as HTTP servers.

For those familiar with the Netty framework, Apple also describes SwiftNIO as "like Netty, but written for Swift."

The documentation for SwiftNIO notes that the framework is not geared towards building web applications, but rather for providing underlying network support for those applications. Currently, SwiftNIO supports macOS 10.12 or higher and Ubuntu 14.04 or higher.

Joseph Keller

Joseph Keller is the former Editor in Chief of iMore. An Apple user for almost 20 years, he spends his time learning the ins and outs of iOS and macOS, always finding ways of getting the most out of his iPhone, iPad, Apple Watch, and Mac.