Swift 服务端发展现状

最近 Swift Workgroup 发布了一则公告:

@IanPartridge and @Chris_Bailey let the group know that following a review by IBM of its open source priorities, it has been decided that they will not be continuing to work on Swift in 2020. As a result, they are both standing down from the workgroup.

@IanPartridge will work to hand over responsibilities for the Swift Docker images and suggested a potential new owner from the community.

The workgroup thanked @IanPartridge, @Chris_Bailey and the rest of the IBM team for their valuable work over the years in getting Swift on server off the ground, and providing the community with reliable solutions during those early days.

大致意思是说,根据 IBM 公司的开源优先级评估后,决定 IanPartridgeChris_Bailey 将于 2020 年不再继续从事 Swift 相关的工作了,同时他们也将退出 workgroup

其中,IanPartridge 将不再负责 Swift Docker images 相关的职责,社区将会有一名新的继承者来接管。

可以看出 IBM 在未来将会一定程度上减少 Swift 服务端的投入,算是 Swift 社区的一个损失。

目前主要由 Apple 官方维护的 Swift 库如下:

Event-driven network application framework for high performance protocol servers & clients, non-blocking.

A Logging API for Swift

A Metrics API for Swift

Metrics backend for swift-metrics that uses the statsd protocol.

目前 Swift 社区主要有如下 Web 框架:

另外,Swift 社区还有很多优秀的开源库,这里就不一一列出来了。

从目前来看,Vapor 框架的受关注度最高,且社区相对比较活跃。而且 Vapor 框架的作者 Logan Wright (@loganwright, Vapor) 和 Tanner Nelson (@tanner0101, Vapor) 均为 SSWG(Swift Server Work Group) 成员,与 Swift 官方组织联系也最为紧密,Vapor 几乎也都是第一时间采用 Swift 官方组件(比如:SwiftNIOSwiftLogSwiftMetrics 等)。

继续阅读“Swift 服务端发展现状”