上QQ阅读APP看书,第一时间看更新
Feature sets
Performance is not the only factor we should consider. A production release of web application includes a complete set of robust features. Swift server-side frameworks often offer many useful functions that are common to most applications. Some common feature sets for Swift frameworks are listed as follows:
- CLI tool: Offers tools for generating boilerplates, building, and deploying an application
- Templating engine: Supports templating language for web content
- Networking I/O: Facilitates the handling of requests over the network
- Database ORM: Simplifies the querying for the back-end database
- Logging framework: Helps catch useful information during runtime
- Test framework: Creates unit tests for testing the web application
- Authentication: Provides authentication features, such as user login or social login
- Security framework: Adds encryption to communication and messaging pipelines, and sockets
- Monitoring and diagnostics: Offers real-time monitoring and diagnostics
- User session management: Manages a user's session after login
- Cloud deployment: Helps deploy a server application in an automated way
- Swift support: Updates to the latest Swift version quickly
When choosing the right server-side framework, we will need to check whether any of the features mentioned have already been integrated in the framework, or if integration of third-party libraries that implement such features are easy and straightforward.