Click here to load reader
Upload
marcio-klepacz
View
39
Download
0
Embed Size (px)
Citation preview
Creating a Micro Web Server in Swift 🖥
1# Swift SP @ ACESSO 5/4/17 - São Paulo Brazil
Agenda• Why Swift on server side?
• Existing frameworks
• Why you should know how to build?
• The steps to build / DEMO
• Conclusion
Why Swift on Server Side?
Why Swift on Server Side?• One language for both ends, client & sever can
decrease the complexity on your project
• Share frameworks
• Can communicate with other languages
• Swift is safe
• Swift is fast!
What does Apple has to say?
“Swift has amazing potential on the server, and to be an even better language for server-side development Swift needs great low-level APIs common among server frameworks…” — Apple
swift.org/server-apis/
Existing Frameworks
Existing Frameworks• IBM Kitura
• Vapor
• Zewo
• Swifter
• Many others…
Why you should know how to build?
“I hear and I forget.”
“I see and I remember.”
https://ruslanspivak.com/lsbaws-part1/
“I do and I understand.”
https://ruslanspivak.com/lsbaws-part1/
Conclusion
• Don’t need to be a network expert to build a web server on Swift
• Knowing how to build one will give you an understanding on how the popular frameworks works
• Swift it’s still crawling on network APIs
References
• https://ruslanspivak.com/lsbaws-part1/
• https://github.com/httpswift/swifter
• Katan: github.com/marciok/katan
• Twitter: @marciok