Slide 1

Slide 1 text

Kitura - What’s Next? David Okun, Developer Evangelist, IBM 1 @dokun24

Slide 2

Slide 2 text

Agenda • Server Side Swift State of the Union • What is Kitura & how has it grown? • Kuery Demo • WebSockets Demo • ????????????? Demo • Fin @dokun24 2

Slide 3

Slide 3 text

AboutMe.swift • Joined IBM November 2016 • Learned about Kitura February 2016 • Previously worked on Mobile Tech at IDscan Biometrics Ltd. (London, UK) • Introduced to server work by Parse @dokun24 of 17 3

Slide 4

Slide 4 text

RESTful APIs @dokun24 4

Slide 5

Slide 5 text

2015 - Open Source Swift @dokun24 5

Slide 6

Slide 6 text

6

Slide 7

Slide 7 text

Introducing…Kitura • Kitura is a RESTful API framework written in Swift • Open sourced February 2016 • v1.0 in September 2016 • Also introduced Bluemix Swift Runtime 7 @dokun24

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

OMG IT ME

Slide 11

Slide 11 text

…and Kitura now • Stability alongside Swift 3, Foundation and LibDispatch • Support for most major DataStores • WebSockets • Protocol Buffers • Native Querying Language (Kuery) 11 @dokun24

Slide 12

Slide 12 text

12

Slide 13

Slide 13 text

Swift-Kuery • Kuery is a pluggable SQL database driver • Focus on making the API “Swifty” • Great to support an ORM buildout 13 @dokun24

Slide 14

Slide 14 text

Currently supported DBs 14 @dokun24

Slide 15

Slide 15 text

Before we start • PostgreSQL running locally on machine • Accessible at localhost:5432 15 @dokun24

Slide 16

Slide 16 text

Pre-loaded table 16 @dokun24

Slide 17

Slide 17 text

Demo - Kuery 17 @dokun24

Slide 18

Slide 18 text

WebSocket Connections • Allows asynchronous sending and receiving of data packets through an opened connection • RFC 6455 18 @dokun24

Slide 19

Slide 19 text

Before we start • http://www.websocket.org/ echo.html • Everything you had before 19 @dokun24

Slide 20

Slide 20 text

Demo - WebSockets 20 @dokun24

Slide 21

Slide 21 text

Serverless Swift!!! • Yep! • Uses Apache OpenWhisk, which just so happens to be deployed on… 21 @dokun24

Slide 22

Slide 22 text

22 @dokun24

Slide 23

Slide 23 text

Before we start • Open an account on Bluemix 23 @dokun24 https://console.ng.bluemix.net/registration

Slide 24

Slide 24 text

Live Demo - OpenWhisk 24 @dokun24

Slide 25

Slide 25 text

Recap • Swift is maturing super fast • For Kitura: long term support = use your existing knowledge • https://www.github.com/dokun1 • http://www.kitura.io • https://console.ng.bluemix.net/registration 25 @dokun24

Slide 26

Slide 26 text

26 @dokun24 • T-shirts!!! • Stickers!!! • JS Developers!!! • Paul Hudson!!! While I’m here…

Slide 27

Slide 27 text

Thank you!!!! @dokun24 27 @dokun24