Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/randomhashtags/destiny

Standalone Lightweight HTTP Server using Swift Macros for routing.
https://github.com/randomhashtags/destiny

http http-server server server-side-swift swift swift-macro swift-macros web-server

Last synced: 5 days ago
JSON representation

Standalone Lightweight HTTP Server using Swift Macros for routing.

Awesome Lists containing this project

README

        

# Destiny
Requires at least Swift 5.9 Apache 2.0 License

Destiny is a standalone lightweight web server that makes use of the latest Swift features to push performance to the absolute limits of the Swift Language, and designed to require the minimum amount of dependencies.

It provides middleware and routers, which are written using Swift Macros, for processing requests.

Features like native compression, CORS, embedded support, TLS, Web Sockets, and HTTP2 are coming soon.

## Getting started
coming soon...

## Benchmarks
- Libraries tested
- [RandomHashTags/destiny](https://github.com/RandomHashTags/destiny) v0.1.0 (this library)
- [hummingbird-project/hummingbird](https://github.com/hummingbird-project/hummingbird) v2.1.0
- [vapor/vapor](https://github.com/vapor/vapor) v4.106.0

### Static
Initial testing of a basic HTML response shows that this library has the lowest server latency and most consistent timings **when serving the same content**.
### Dynamic
coming soon...

### Conclusion
This library is the clear leader in reliability, performance and efficiency. Static content offer the best performance, while dynamic content still tops the charts.

## Contributing
Create a PR.