Development Tools

SwiftNIO – event-driven network application framework

SwiftNIO is an asynchronous networking framework for developing high-performance protocol servers and clients. It provides low-level networking abstractions rather than a complete web application framework, enabling developers to implement custom network protocols and build higher-level networking libraries.

Its architecture revolves around event loops, channels and channel pipelines. Event loops coordinate asynchronous operations, channels represent network connections or other sources of events, and pipelines process incoming and outgoing data through sequences of handlers.

SwiftNIO forms the networking foundation of several server-side frameworks, including Vapor and Hummingbird. Its modular design also enables protocol implementations to be tested independently of actual network connections.

This is free and open source software.

Key Features

  • NIOCore provides fundamental networking abstractions, channels, event loops and asynchronous operation types.
  • NIOPosix implements non-blocking networking using operating-system facilities including epoll and kqueue.
  • NIOEmbedded provides controllable channels and event loops for deterministic protocol testing.
  • NIOHTTP1 implements low-level HTTP/1.1 request and response processing.
  • NIOWebSocket provides WebSocket protocol handling.
  • NIOTLS provides abstractions for integrating TLS implementations.
  • NIOConcurrencyHelpers provides low-level synchronisation primitives.
  • NIOFoundationCompat supports interoperability with Foundation data types.
  • ByteBuffer provides efficient binary data storage and manipulation.
  • Supports TCP, UDP and Unix domain socket communication.
  • Provides backpressure mechanisms for controlling network data flow.
  • Supports structured concurrency through asynchronous channel interfaces.
  • Companion libraries provide HTTP/2, TLS encryption and integration with Apple’s Network framework.
  • Provides utilities for testing network protocol implementations.
  • Cross-platform support – runs on Linux and macOS.

Website: github.com/apple/swift-nio
Support:
Developer: Apple Inc.
License: Apache License 2.0

SwiftNIO is written in Swift. Learn Swift with our recommended free books and free tutorials.


Related Software

Swift Web Frameworks
VaporHugely popular server-side Swift HTTP web framework
SwiftNIOAsynchronous event-driven network application framework
KituraWeb framework and web server created for web services written in Swift
HummingbirdLightweight, flexible server framework
PerfectWeb server and toolkit. Development effectively ceased in 2016
MacroExpressSmall, asynchronous web framework
ChaqmoqNon-blocking server-side web framework

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted