altconf 2017: full stack swift in 30 minutes

37
Swift @ IBM Engineering Team Chris Bailey(@Chris__Bailey) June 6th, 2017 Full-Stack Swift in 30 Minutes Swift @ IBM

Upload: chris-bailey

Post on 22-Jan-2018

300 views

Category:

Software


1 download

TRANSCRIPT

Page 1: AltConf 2017: Full Stack Swift in 30 Minutes

Swift @ IBM Engineering TeamChris Bailey(@Chris__Bailey)

June 6th, 2017

Full-Stack Swift in 30 Minutes

Swift @ IBM

Page 2: AltConf 2017: Full Stack Swift in 30 Minutes

December 3rd, 2015

Apache 2.0 Software Licence

Page 3: AltConf 2017: Full Stack Swift in 30 Minutes
Page 4: AltConf 2017: Full Stack Swift in 30 Minutes

Linux Platforms Darwin Platforms

Swift on Linux

Swift @ IBM

Swift

StandardLibrary Foundation Dispatch

Swift

StandardLibrary Foundation Dispatch

Consistent Runtime across Platforms

Page 5: AltConf 2017: Full Stack Swift in 30 Minutes

Why Swift on the Server?

Page 6: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 7: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 8: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 9: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 10: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 11: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 12: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 13: AltConf 2017: Full Stack Swift in 30 Minutes

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)

Page 14: AltConf 2017: Full Stack Swift in 30 Minutes

Swift is ideal for Cloud

Page 15: AltConf 2017: Full Stack Swift in 30 Minutes

Data from Jens Ravens @jenravens

Page 16: AltConf 2017: Full Stack Swift in 30 Minutes

Data from Jens Ravens @jenravens

Page 17: AltConf 2017: Full Stack Swift in 30 Minutes

Data from Jens Ravens @jenravens

Page 18: AltConf 2017: Full Stack Swift in 30 Minutes

Data from Jens Ravens @jenravens

Page 19: AltConf 2017: Full Stack Swift in 30 Minutes

Data from Jens Ravens @jenravens

$0.07 GB/Hr

256 MB 128 MB

$613.20 GB/Year

x2

= $306.60

x2

= $153.3

Page 20: AltConf 2017: Full Stack Swift in 30 Minutes

Swift is fast enough. We should focus on developer productivity instead

Data from Jens Ravens @jenravens

Page 21: AltConf 2017: Full Stack Swift in 30 Minutes

faster development = more revenue

Swift is fast enough. We should focus on developer productivity instead

Data from Jens Ravens @jenravens

Page 22: AltConf 2017: Full Stack Swift in 30 Minutes

Productivity is Key

Page 23: AltConf 2017: Full Stack Swift in 30 Minutes

Frontend Web Developer

0 17.5 35 52.5 70

11.9

Data from StackOverflow Survey 2017https://insights.stackoverflow.com/survey/2017

Page 24: AltConf 2017: Full Stack Swift in 30 Minutes

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

Page 25: AltConf 2017: Full Stack Swift in 30 Minutes

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

Page 26: AltConf 2017: Full Stack Swift in 30 Minutes

Full Stack Swiftfor higher productivity

Page 27: AltConf 2017: Full Stack Swift in 30 Minutes

Full Stack Swiftfor higher productivity

(and lower cost)

Page 28: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Page 29: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted Services

DATA

SOCIAL

COGNATIVE

Page 30: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted ServicesGATEWAY

PUBLIC NETWORK CLOUD NETWORK

DATA

SOCIAL

COGNATIVE

Page 31: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted ServicesGATEWAY

PUBLIC NETWORK CLOUD NETWORK

DATA

SOCIAL

COGNATIVE

Page 32: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted ServicesGATEWAY

PUBLIC NETWORK CLOUD NETWORK

SWAGGER DATA

SOCIAL

COGNATIVE

Page 33: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted ServicesGATEWAY

PUBLIC NETWORK CLOUD NETWORK

SWAGGER DATA

PUSH ANALYTICS

SOCIAL

COGNATIVE

AUTH

Page 34: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted ServicesGATEWAY

PUBLIC NETWORK CLOUD NETWORK

SWAGGER DATA

PUSH ANALYTICS

DEVOPS AVAILABILITY MONITORINGSCALING

SOCIAL

COGNATIVE

AUTH

Page 35: AltConf 2017: Full Stack Swift in 30 Minutes

iOS APP

Hosted ServicesGATEWAY

PUBLIC NETWORK CLOUD NETWORK

SWAGGER DATA

PUSH ANALYTICS

DEVOPS AVAILABILITY MONITORINGSCALING

SOCIAL

COGNATIVE

AUTH

WEB APP

Page 36: AltConf 2017: Full Stack Swift in 30 Minutes

Full Stack in 30 Minuteshttps://github.com/seabaylea/FoodTrackerBackend-Workshop

Page 37: AltConf 2017: Full Stack Swift in 30 Minutes

Become a SwiftStack Developer Today

kitura.iogithub.com/ibm-swift swift-at-ibm-slack .mybluemix.net