altconf 2017: full stack swift in 30 minutes
TRANSCRIPT
Swift @ IBM Engineering TeamChris Bailey(@Chris__Bailey)
June 6th, 2017
Full-Stack Swift in 30 Minutes
Swift @ IBM
December 3rd, 2015
Apache 2.0 Software Licence
Linux Platforms Darwin Platforms
Swift on Linux
Swift @ IBM
Swift
StandardLibrary Foundation Dispatch
Swift
StandardLibrary Foundation Dispatch
Consistent Runtime across Platforms
Why Swift on the Server?
4.0
0.0
20.0
40.0
60.0
80.0
100.0
120.0
Performant Applications
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Dur
atio
n (s
) (lo
wer
is b
ette
r)
4.0 4.3
0.0
20.0
40.0
60.0
80.0
100.0
120.0
Performant Applications
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Dur
atio
n (s
) (lo
wer
is b
ette
r)
4.0 4.315.8
0.0
20.0
40.0
60.0
80.0
100.0
120.0
Performant Applications
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Dur
atio
n (s
) (lo
wer
is b
ette
r)
Performant Applications
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
4.0 4.315.8
134.2
0.0
20.0
40.0
60.0
80.0
100.0
120.0
Dur
atio
n (s
) (lo
wer
is b
ette
r)
15.0
0.0
10.0
20.0
30.0
40.0
50.0
60.0
Low Memory
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Mem
ory
Usa
ge (M
B)
(low
er is
bet
ter)
15.0
32.2
0.0
10.0
20.0
30.0
40.0
50.0
60.0
Low Memory
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Mem
ory
Usa
ge (M
B)
(low
er is
bet
ter)
15.0
32.2
25.3
0.0
10.0
20.0
30.0
40.0
50.0
60.0
Low Memory
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Mem
ory
Usa
ge (M
B)
(low
er is
bet
ter)
15.0
32.2
25.3
54.6
0.0
10.0
20.0
30.0
40.0
50.0
60.0
Low Memory
http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm
Mem
ory
Usa
ge (M
B)
(low
er is
bet
ter)
Swift is ideal for Cloud
Data from Jens Ravens @jenravens
Data from Jens Ravens @jenravens
Data from Jens Ravens @jenravens
Data from Jens Ravens @jenravens
Data from Jens Ravens @jenravens
$0.07 GB/Hr
256 MB 128 MB
$613.20 GB/Year
x2
= $306.60
x2
= $153.3
Swift is fast enough. We should focus on developer productivity instead
Data from Jens Ravens @jenravens
faster development = more revenue
Swift is fast enough. We should focus on developer productivity instead
Data from Jens Ravens @jenravens
Productivity is Key
Frontend Web Developer
0 17.5 35 52.5 70
11.9
Data from StackOverflow Survey 2017https://insights.stackoverflow.com/survey/2017
Backend Web Developer
Frontend Web Developer
0 17.5 35 52.5 70
11.9
24.4
Data from StackOverflow Survey 2017https://insights.stackoverflow.com/survey/2017
Full Stack Web Developer
Backend Web Developer
Frontend Web Developer
0 17.5 35 52.5 70
11.9
24.4
63.7
Data from StackOverflow Survey 2017https://insights.stackoverflow.com/survey/2017
Web Developers are Full Stack
Full Stack Swiftfor higher productivity
Full Stack Swiftfor higher productivity
(and lower cost)
iOS APP
iOS APP
Hosted Services
DATA
SOCIAL
COGNATIVE
iOS APP
Hosted ServicesGATEWAY
PUBLIC NETWORK CLOUD NETWORK
DATA
SOCIAL
COGNATIVE
iOS APP
Hosted ServicesGATEWAY
PUBLIC NETWORK CLOUD NETWORK
DATA
SOCIAL
COGNATIVE
iOS APP
Hosted ServicesGATEWAY
PUBLIC NETWORK CLOUD NETWORK
SWAGGER DATA
SOCIAL
COGNATIVE
iOS APP
Hosted ServicesGATEWAY
PUBLIC NETWORK CLOUD NETWORK
SWAGGER DATA
PUSH ANALYTICS
SOCIAL
COGNATIVE
AUTH
iOS APP
Hosted ServicesGATEWAY
PUBLIC NETWORK CLOUD NETWORK
SWAGGER DATA
PUSH ANALYTICS
DEVOPS AVAILABILITY MONITORINGSCALING
SOCIAL
COGNATIVE
AUTH
iOS APP
Hosted ServicesGATEWAY
PUBLIC NETWORK CLOUD NETWORK
SWAGGER DATA
PUSH ANALYTICS
DEVOPS AVAILABILITY MONITORINGSCALING
SOCIAL
COGNATIVE
AUTH
WEB APP
Full Stack in 30 Minuteshttps://github.com/seabaylea/FoodTrackerBackend-Workshop
Become a SwiftStack Developer Today
kitura.iogithub.com/ibm-swift swift-at-ibm-slack .mybluemix.net