interconnect: java, node.js and swift - which, why and when

147
InterConnect 2017 5118: Java, Node.js and Swift: Which, When and Why Chris Bailey STSM, Technical Architect Java, Node.js and Swift Gary Cernosek, Offering Manager Application Runtimes & Frameworks 1 1/17/17

Upload: chris-bailey

Post on 05-Apr-2017

270 views

Category:

Software


1 download

TRANSCRIPT

Page 1: InterConnect: Java, Node.js and Swift - Which, Why and When

InterConnect2017

5118: Java, Node.js and Swift: Which, When and Why

Chris BaileySTSM, Technical Architect Java, Node.js and Swift

Gary Cernosek, Offering ManagerApplication Runtimes & Frameworks

1 1/17/17

Page 2: InterConnect: Java, Node.js and Swift - Which, Why and When
Page 3: InterConnect: Java, Node.js and Swift - Which, Why and When
Page 4: InterConnect: Java, Node.js and Swift - Which, Why and When
Page 5: InterConnect: Java, Node.js and Swift - Which, Why and When
Page 6: InterConnect: Java, Node.js and Swift - Which, Why and When

6 1/17/17

Page 7: InterConnect: Java, Node.js and Swift - Which, Why and When

7 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Application Tier Database Tier

Page 8: InterConnect: Java, Node.js and Swift - Which, Why and When

8 1/17/17

Page 9: InterConnect: Java, Node.js and Swift - Which, Why and When

9 1/17/17

Page 10: InterConnect: Java, Node.js and Swift - Which, Why and When

0

10

20

30

40

50

60

01/02/12

01/08/12

01/02/13

01/08/13

01/02/14

01/08/14

01/02/15

01/08/15

01/02/16

01/08/16

Java

JavaScript

10 1/17/17Redmonk Programming Languages Rankings

http://redmonk.com/sogrady/category/programming-languages/

Page 11: InterConnect: Java, Node.js and Swift - Which, Why and When

0

10

20

30

40

50

60

01/02/12

01/08/12

01/02/13

01/08/13

01/02/14

01/08/14

01/02/15

01/08/15

01/02/16

01/08/16

Java

JavaScript

11 1/17/17Redmonk Programming Languages Rankings

http://redmonk.com/sogrady/category/programming-languages/

Page 12: InterConnect: Java, Node.js and Swift - Which, Why and When

0

10

20

30

40

50

60

01/02/12

01/08/12

01/02/13

01/08/13

01/02/14

01/08/14

01/02/15

01/08/15

01/02/16

01/08/16

Java

JavaScript

Swi5

12 1/17/17Redmonk Programming Languages Rankings

http://redmonk.com/sogrady/category/programming-languages/

Page 13: InterConnect: Java, Node.js and Swift - Which, Why and When

13 1/17/17PopularitY of Programming Language (PYPL)

http://pypl.github.io/PYPL.html

Page 14: InterConnect: Java, Node.js and Swift - Which, Why and When

14 1/17/17GitHut 2.0

https://madnight.github.io/githut/

Page 15: InterConnect: Java, Node.js and Swift - Which, Why and When

15TIOBE Index

https://www.tiobe.com/tiobe-index/

Page 16: InterConnect: Java, Node.js and Swift - Which, Why and When

16

Page 17: InterConnect: Java, Node.js and Swift - Which, Why and When

17

Runtime Language

Page 18: InterConnect: Java, Node.js and Swift - Which, Why and When

18

Scripting LanguageRuntime Language

Page 19: InterConnect: Java, Node.js and Swift - Which, Why and When

19

Scripting Language Modern Native LanguageRuntime Language

Page 20: InterConnect: Java, Node.js and Swift - Which, Why and When

20

Type Safe Type Safe, with InferenceDynamically Typed

Scripting Language Modern Native LanguageRuntime Language

Page 21: InterConnect: Java, Node.js and Swift - Which, Why and When

21

Type Safe Type Safe, with InferenceDynamically Typed

Scripting Language Modern Native LanguageRuntime Language

Bytecode and JIT Compiled JIT Compiled Pre-Compiled

Page 22: InterConnect: Java, Node.js and Swift - Which, Why and When

22

Type Safe Type Safe, with InferenceDynamically Typed

Garbage Collected

Scripting Language Modern Native LanguageRuntime Language

Garbage Collected Reference Counted

Bytecode and JIT Compiled JIT Compiled Pre-Compiled

Page 23: InterConnect: Java, Node.js and Swift - Which, Why and When

23

Type Safe Type Safe, with InferenceDynamically Typed

Concurrent Threaded

Garbage Collected

Scripting Language Modern Native LanguageRuntime Language

Garbage Collected Reference Counted

Single Thread Concurrent Work Pool

Bytecode and JIT Compiled JIT Compiled Pre-Compiled

Page 24: InterConnect: Java, Node.js and Swift - Which, Why and When

24

Type Safe Type Safe, with InferenceDynamically Typed

Concurrent Threaded

Garbage Collected

Scripting Language Modern Native LanguageRuntime Language

Garbage Collected Reference Counted

Single Thread Concurrent Work Pool

Bytecode and JIT Compiled JIT Compiled Pre-Compiled

All Platforms All Platforms Apple Platforms and Linux

Page 25: InterConnect: Java, Node.js and Swift - Which, Why and When

25

Type Safety

Page 26: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

Swift Node.js

Page 27: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

Swift Node.js

Page 28: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

Swift Node.js

Page 29: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

Swift Node.js

Page 30: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = 5; var b = 3;

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = 5 let b = 3

Swift Node.js

Page 31: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = 5; var b = 3;

add(a, b);

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = 5 let b = 3

add(a, to: b)

Swift Node.js

Page 32: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = 5; var b = 3;

add(a, b);

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = 5 let b = 3

add(a, to: b)

> swiftc main.swift

Swift Node.js

Page 33: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = 5; var b = 3;

add(a, b);

> node app.js

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = 5 let b = 3

add(a, to: b)

> swiftc main.swift

> main

Swift Node.js

Page 34: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = 5; var b = 3;

add(a, b);

> node app.js 8

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = 5 let b = 3

add(a, to: b)

> swiftc main.swift

> main 8

Swift Node.js

Page 35: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = '5'; var b = 3;

add(a, b);

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = ”5” let b = 3

add(a, to: b)

Swift Node.js

Page 36: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = '5'; var b = 3;

add(a, b);

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = ”5” let b = 3

add(a, to: b)

> swiftc main.swift

Swift Node.js

Page 37: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = '5'; var b = 3;

add(a, b);

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = ”5” let b = 3

add(a, to: b)

> swiftc main.swift

> Error line 6: Cannot convert value of type ‘String’ into argument of type ‘Int’

Swift Node.js

Page 38: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

var add = function (a, b) { console.log(a + b); }

var a = '5'; var b = 3;

add(a, b);

> node app.js

> 53

func add(_ a: Int, to b: Int) -> Void { print(a + b) }

let a = ”5” let b = 3

add(a, to: b)

> swiftc main.swift > Error line 6: Cannot convert value of type ‘String’ into argument of type ‘Int’

Swift Node.js

Page 39: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

console.log('Hello' + + 'World')

Node.js

Page 40: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

console.log('Hello' + + 'World')

> 'HelloNaN'

Node.js

Page 41: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

console.log('Hello' + + 'World')

> 'HelloNaN'

var x = 3 console.log('5' - x + x)

Node.js

Page 42: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

console.log('Hello' + + 'World')

> 'HelloNaN'

var x = 3 console.log('5' - x + x)

> 5

Node.js

Page 43: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

console.log('Hello' + + 'World')

> 'HelloNaN'

var x = 3 console.log('5' - x + x)

> 5

var x = 3 console.log('5' + x - x)

Node.js

Page 44: InterConnect: Java, Node.js and Swift - Which, Why and When

Swift @ IBM

console.log('Hello' + + 'World')

> 'HelloNaN'

var x = 3 console.log('5' - x + x)

> 5

var x = 3 console.log('5' + x - x)

> 50

Node.js

Page 45: InterConnect: Java, Node.js and Swift - Which, Why and When

45

Performance

Page 46: InterConnect: Java, Node.js and Swift - Which, Why and When

Runtime cost of dynamic typing

func add(_ a: Int, to b: Int) -> Int { return(a + b) }

Page 47: InterConnect: Java, Node.js and Swift - Which, Why and When

Runtime cost of dynamic typing

func add(_ a: Int, to b: Int) -> Int { return(a + b) }

Page 48: InterConnect: Java, Node.js and Swift - Which, Why and When

Runtime cost of dynamic typing

func add(_ a: Int, to b: Int) -> Int { return(a + b) }

addi

Page 49: InterConnect: Java, Node.js and Swift - Which, Why and When

Runtime cost of dynamic typing

var add = function (a, b) { return(a + b); }

Page 50: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

var add = function (a, b) { return(a + b); }

Page 51: InterConnect: Java, Node.js and Swift - Which, Why and When

Runtime cost of dynamic typing

Check type of A

String

var add = function (a, b) { return(a + b); }

Page 52: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringCheck type of B

var add = function (a, b) { return(a + b); }

Page 53: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate Check type of B

String

var add = function (a, b) { return(a + b); }

Page 54: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

String

Number

Concatenate Check type of B

String

Convert Number to String

var add = function (a, b) { return(a + b); }

Page 55: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

String

Number

Concatenate Check type of B

String

Convert Number to String

Concatenate

var add = function (a, b) { return(a + b); }

Page 56: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate Check type of B

String Number

Number

Convert Number to String

Concatenate

var add = function (a, b) { return(a + b); }

Page 57: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate Check type of B

Check type of B

String Number

Number

Convert Number to String

Concatenate

var add = function (a, b) { return(a + b); }

Page 58: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate Check type of B

Check type of B

StringString Number

Number

Convert Number to String

Concatenate

Convert Number to String

var add = function (a, b) { return(a + b); }

Page 59: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate Check type of B

Check type of B

StringString Number

Number

Convert Number to String

Concatenate

Convert Number to String

Concatenate

var add = function (a, b) { return(a + b); }

Page 60: InterConnect: Java, Node.js and Swift - Which, Why and When

Convert Number to StringCheck type of

AStringConcatenate Check type of

BCheck type of

BStringString Number

Number

Convert Number to String

Concatenate

ConcatenateNumber

var add = function (a, b) { return(a + b); }

Page 61: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate

FloatingPoint or Normal

Check type of B

Check type of B

StringString Number

Number

Convert Number to String

Concatenate

ConcatenateNumber

Convert Number to String

var add = function (a, b) { return(a + b); }

Page 62: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate

FloatingPoint or Normal

Float Calculation

Check type of B

Check type of B

StringString

Float

Number

Number

Convert Number to String

Concatenate

ConcatenateNumber

Convert Number to String

var add = function (a, b) { return(a + b); }

Page 63: InterConnect: Java, Node.js and Swift - Which, Why and When

Check type of A

StringConcatenate

FloatingPoint or Normal

Normal Add InstructionFloat Calculation

Check type of B

Check type of B

StringString

Float

Number

Number

Convert Number to String

Concatenate

ConcatenateNumber

Convert Number to String

var add = function (a, b) { return(a + b); }

Page 64: InterConnect: Java, Node.js and Swift - Which, Why and When

0

2

4

6

8

10

12

14

16

18

Dur

atio

n (s

) (lo

wer

is b

ette

r)

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Performance

Page 65: InterConnect: Java, Node.js and Swift - Which, Why and When

4

0

2

4

6

8

10

12

14

16

18

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Performance

Dur

atio

n (s

) (lo

wer

is b

ette

r)

Page 66: InterConnect: Java, Node.js and Swift - Which, Why and When

4 4.3

0

2

4

6

8

10

12

14

16

18

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Performance

Dur

atio

n (s

) (lo

wer

is b

ette

r)

Page 67: InterConnect: Java, Node.js and Swift - Which, Why and When

4 4.3

15.8

0

2

4

6

8

10

12

14

16

18

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Performance

Dur

atio

n (s

) (lo

wer

is b

ette

r)

Page 68: InterConnect: Java, Node.js and Swift - Which, Why and When

0

20

40

60

80

100

120

JSONSerializa2on SingleQuery DataUpdates

TechEmpowerPerformance(%ageofbest-higherisbe0er)

More Computation

More I/O

Page 69: InterConnect: Java, Node.js and Swift - Which, Why and When

0

20

40

60

80

100

120

JSONSerializa2on SingleQuery DataUpdates

TechEmpowerPerformance(%ageofbest-higherisbe0er)

More Computation

More I/O

Page 70: InterConnect: Java, Node.js and Swift - Which, Why and When

0

20

40

60

80

100

120

JSONSerializa2on SingleQuery DataUpdates

TechEmpowerPerformance(%ageofbest-higherisbe0er)

More Computation

More I/O

Page 71: InterConnect: Java, Node.js and Swift - Which, Why and When

More Computation

More I/O

0

20

40

60

80

100

120

JSONSerializa2on SingleQuery DataUpdates

TechEmpowerPerformance(%ageofbest-higherisbe0er)

Page 72: InterConnect: Java, Node.js and Swift - Which, Why and When

72

DeveloperProductivity

Page 73: InterConnect: Java, Node.js and Swift - Which, Why and When

0

100

200

300

400

500

600

700

800

900

1000Vo

lum

e of

Cod

e (lo

wer

is b

ette

r)

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Developer Productivity

Page 74: InterConnect: Java, Node.js and Swift - Which, Why and When

601

0

100

200

300

400

500

600

700

800

900

1000

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Developer Productivity

Volu

me

of C

ode

(low

er is

bet

ter)

Volu

me

of C

ode

(low

er is

bet

ter)

Page 75: InterConnect: Java, Node.js and Swift - Which, Why and When

601

950

0

100

200

300

400

500

600

700

800

900

1000

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Developer Productivity

Volu

me

of C

ode

(low

er is

bet

ter)

Volu

me

of C

ode

(low

er is

bet

ter)

Page 76: InterConnect: Java, Node.js and Swift - Which, Why and When

601

950

413

0

100

200

300

400

500

600

700

800

900

1000

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Typed vs Untyped Developer Productivity

Volu

me

of C

ode

(low

er is

bet

ter)

Volu

me

of C

ode

(low

er is

bet

ter)

Page 77: InterConnect: Java, Node.js and Swift - Which, Why and When

77

Memory Management

Page 78: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Heap Size

Page 79: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Live in-use data(Retained Set)

Heap Size

Page 80: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Live in-use data(Retained Set)

Heap Size

Temporary Data(Garbage)

Temporary Data(Garbage)

Page 81: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Live in-use data(Retained Set)

Heap Size

Temporary Data(Garbage)

Temporary Data(Garbage)

Page 82: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Live in-use data(Retained Set)

Heap Size

Temporary Data(Garbage)

Temporary Data(Garbage)

Page 83: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Live in-use data(Retained Set)

Heap Size

Temporary Data(Garbage)

Temporary Data(Garbage)

40 to 70%

Page 84: InterConnect: Java, Node.js and Swift - Which, Why and When

Mem

ory

Live in-use data(Retained Set)

Heap Size

Temporary Data(Garbage)

Temporary Data(Garbage)

40 to 70%

~2X additional memory for additional performance

Page 85: InterConnect: Java, Node.js and Swift - Which, Why and When

0

5

10

15

20

25

30

35

ARC vs Garage Collection

Mem

ory

Usa

ge (M

B)

(low

er is

bet

ter)

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Page 86: InterConnect: Java, Node.js and Swift - Which, Why and When

15

0

5

10

15

20

25

30

35

ARC vs Garage Collection

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Mem

ory

Usa

ge (M

B)

(low

er is

bet

ter)

Page 87: InterConnect: Java, Node.js and Swift - Which, Why and When

15

32.2

0

5

10

15

20

25

30

35

ARC vs Garage Collection

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Mem

ory

Usa

ge (M

B)

(low

er is

bet

ter)

Page 88: InterConnect: Java, Node.js and Swift - Which, Why and When

15

32.2

25.3

0

5

10

15

20

25

30

35

ARC vs Garage Collection

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=spectralnorm

Mem

ory

Usa

ge (M

B)

(low

er is

bet

ter)

Page 89: InterConnect: Java, Node.js and Swift - Which, Why and When

Cloud CostsProvider Type Memory CPUs Cost/month

Amazon EC2 Linux t2.nano 512MB 1 vCPU $4.68

Digital Ocean Standard 512MB 1 Core Processor $5.00

Pivotal Cloud Foundry

App Instance 512MB 4 vCPUs $10.80

Heroku Standard 1x 512MB 1 Share $25.00

IBM Bluemix Instant Runtimes

512MB 4 vCPUs $24.15

Containers 512MB 4 vCPUs $10.22

Page 90: InterConnect: Java, Node.js and Swift - Which, Why and When

Cloud CostsProvider Type Memory CPUs Cost/month

Amazon EC2 Linux t2.nano 512MB 1 vCPU $4.68Linux t2.micro 1GB 1 vCPU $9.36

Digital Ocean Standard 512MB 1 Core Processor $5.00Standard 1GB 1 Core Processor $10.00

Pivotal Cloud Foundry

App Instance 512MB 4 vCPUs $10.80App Instance 1GB 4 vCPUs $21.60

Heroku Standard 1x 512MB 1 Share $25.00Standard 2x 1GB 2 Shares $50.00

IBM Bluemix Instant Runtimes

512MB 4 vCPUs $24.15Instant

Runtimes1GB 4 vCPUs $49.35

Containers 512MB 4 vCPUs $10.22Containers 1GB 4 vCPUs $20.59

Page 91: InterConnect: Java, Node.js and Swift - Which, Why and When

Cloud CostsProvider Type Memory CPUs Cost/month

Amazon EC2 Linux t2.nano 512MB 1 vCPU $4.68Linux t2.micro 1GB 1 vCPU $9.36Linux t2.small 2GB 1 vCPU $18.72

Digital Ocean Standard 512MB 1 Core Processor $5.00Standard 1GB 1 Core Processor $10.00Standard 2GB 2 Core

Processors$20.00

Pivotal Cloud Foundry

App Instance 512MB 4 vCPUs $10.80App Instance 1GB 4 vCPUs $21.60App Instance 2GB 4 vCPUs $43.20

Heroku Standard 1x 512MB 1 Share $25.00Standard 2x 1GB 2 Shares $50.00

IBM Bluemix Instant Runtimes

512MB 4 vCPUs $24.15Instant

Runtimes1GB 4 vCPUs $49.35

Containers 512MB 4 vCPUs $10.22Containers 1GB 4 vCPUs $20.59

Page 92: InterConnect: Java, Node.js and Swift - Which, Why and When

Cloud CostsProvider Type Memory CPUs Cost/month

Amazon EC2 Linux t2.nano 512MB 1 vCPU $4.68Linux t2.micro 1GB 1 vCPU $9.36Linux t2.small 2GB 1 vCPU $18.72

Linux t2.medium 4GB 2 vCPUs $37.44Digital Ocean Standard 512MB 1 Core Processor $5.00

Standard 1GB 1 Core Processor $10.00Standard 2GB 2 Core

Processors$20.00

Pivotal Cloud Foundry

App Instance 512MB 4 vCPUs $10.80App Instance 1GB 4 vCPUs $21.60App Instance 2GB 4 vCPUs $43.20

Heroku Standard 1x 512MB 1 Share $25.00Standard 2x 1GB 2 Shares $50.00

IBM Bluemix Instant Runtimes

512MB 4 vCPUs $24.15Instant

Runtimes1GB 4 vCPUs $49.35

Containers 512MB 4 vCPUs $10.22Containers 1GB 4 vCPUs $20.59

Page 93: InterConnect: Java, Node.js and Swift - Which, Why and When

93

Full Stack Development

Page 94: InterConnect: Java, Node.js and Swift - Which, Why and When

94 1/17/17

Page 95: InterConnect: Java, Node.js and Swift - Which, Why and When

95

Unless it is absolutely necessary to run Java in web browsers, disable it as described below, even after updating to 7u11. This will help mitigate other Java vulnerabilities that may be discovered in the future.

This and previous Java vulnerabilities have been widely targeted by attackers, and new Java vulnerabilities are likely to be discovered. To defend against this and future Java vulnerabilities, consider disabling Java in web browsers…

Page 96: InterConnect: Java, Node.js and Swift - Which, Why and When

96

Unless it is absolutely necessary to run Java in web browsers, disable it as described below, even after updating to 7u11. This will help mitigate other Java vulnerabilities that may be discovered in the future.

This and previous Java vulnerabilities have been widely targeted by attackers, and new Java vulnerabilities are likely to be discovered. To defend against this and future Java vulnerabilities, consider disabling Java in web browsers…

Page 97: InterConnect: Java, Node.js and Swift - Which, Why and When

97

Page 98: InterConnect: Java, Node.js and Swift - Which, Why and When

98

Page 99: InterConnect: Java, Node.js and Swift - Which, Why and When

99

•Reuse of code components •Write One Run Anywhere

•Sharing of data models •Less maintenance

•Server-side rendering •Pre-Initialise UI on the server •Improves first paint time •Enables search indexing

Page 100: InterConnect: Java, Node.js and Swift - Which, Why and When

100

+

Page 101: InterConnect: Java, Node.js and Swift - Which, Why and When

101

+

Page 102: InterConnect: Java, Node.js and Swift - Which, Why and When

102

+

Page 103: InterConnect: Java, Node.js and Swift - Which, Why and When

103 1/17/17

Page 104: InterConnect: Java, Node.js and Swift - Which, Why and When

104

Page 105: InterConnect: Java, Node.js and Swift - Which, Why and When

105

Page 106: InterConnect: Java, Node.js and Swift - Which, Why and When

106

Page 107: InterConnect: Java, Node.js and Swift - Which, Why and When

107

+

Page 108: InterConnect: Java, Node.js and Swift - Which, Why and When

108

+

Page 109: InterConnect: Java, Node.js and Swift - Which, Why and When

109

Which, Where, When?

Page 110: InterConnect: Java, Node.js and Swift - Which, Why and When

110

Node.js SwiftJava

Page 111: InterConnect: Java, Node.js and Swift - Which, Why and When

111

High Processing Performance

Transaction Processing Frameworks

Node.js SwiftJava

Type Safety for Calculations

Page 112: InterConnect: Java, Node.js and Swift - Which, Why and When

112

High Processing Performance

Transaction Processing Frameworks

Node.js SwiftJava

Type Safety for Calculations

Business Logic Performance Critical

Batch Processing

Page 113: InterConnect: Java, Node.js and Swift - Which, Why and When

113

High Processing Performance High IO Performance

Transaction Processing Frameworks

Node.js SwiftJava

Fullstack Web Development

Type Safety for Calculations Async Programming for Scale

Business Logic Performance Critical

Batch Processing

Page 114: InterConnect: Java, Node.js and Swift - Which, Why and When

114

High Processing Performance High IO Performance

Transaction Processing Frameworks

Node.js SwiftJava

Fullstack Web Development

Type Safety for Calculations Async Programming for Scale

Business Logic Performance Critical

Batch Processing

Delivery Tier Enterprise Modernisation

Page 115: InterConnect: Java, Node.js and Swift - Which, Why and When

115

High Processing Performance High IO Performance

Transaction Processing Frameworks

Node.js SwiftJava

Fullstack Web Development

Type Safety for Calculations Async Programming for Scale ?Business Logic

Performance Critical Batch Processing

Delivery Tier Enterprise Modernisation

Page 116: InterConnect: Java, Node.js and Swift - Which, Why and When

116

Emerging Architectures

Page 117: InterConnect: Java, Node.js and Swift - Which, Why and When

117 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Application Tier Database Tier

Page 118: InterConnect: Java, Node.js and Swift - Which, Why and When

118 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Service Tier Database Tier

Page 119: InterConnect: Java, Node.js and Swift - Which, Why and When

119 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Service Tier Database TierDelivery Tier

Page 120: InterConnect: Java, Node.js and Swift - Which, Why and When

120 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Service Tier Hosted ServicesDelivery Tier

Page 121: InterConnect: Java, Node.js and Swift - Which, Why and When

121 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 122: InterConnect: Java, Node.js and Swift - Which, Why and When

122 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 123: InterConnect: Java, Node.js and Swift - Which, Why and When

123 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 124: InterConnect: Java, Node.js and Swift - Which, Why and When

124 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 125: InterConnect: Java, Node.js and Swift - Which, Why and When

125 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

API Team

Page 126: InterConnect: Java, Node.js and Swift - Which, Why and When

126 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

API Team

Web Team

Android Team

iOS Team

Page 127: InterConnect: Java, Node.js and Swift - Which, Why and When

127

Server Side Rendering

First Paint Time

Search Engine Optimisation

Network Payload Size

CPU Usage

Request Frequency

Battery UsageMemory Usage

Page 128: InterConnect: Java, Node.js and Swift - Which, Why and When

128

Page 129: InterConnect: Java, Node.js and Swift - Which, Why and When

129

Page 130: InterConnect: Java, Node.js and Swift - Which, Why and When

130

Page 131: InterConnect: Java, Node.js and Swift - Which, Why and When

131 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

API Team

Web Team

Android Team

iOS Team

Page 132: InterConnect: Java, Node.js and Swift - Which, Why and When

132 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 133: InterConnect: Java, Node.js and Swift - Which, Why and When

133 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 134: InterConnect: Java, Node.js and Swift - Which, Why and When

134 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted ServicesDelivery Tier

ROUTING PROXY

Micro-Services

Page 135: InterConnect: Java, Node.js and Swift - Which, Why and When

135 1/17/17

GATEWAY

PUBLIC NETWORK CLOUD NETWORK

Client Devices Hosted Services

ROUTING PROXY

Micro-ServicesBackend For Frontend(BFF)

Page 136: InterConnect: Java, Node.js and Swift - Which, Why and When

136

Project Generation Infra

Local PluginBl

uem

ix CL

I

Bluemix Dashboard

1. Starts with…

Bluemix

Codes …

Check in to…

App

DevOps Open Toolchains

Github

Kicks off…

Builds & Deploys…

Project Plugin

Developer

Calls …Generates …

Source Code

IDE Orion, VSCode, Atom,

Xcode…

Autoscale Logmet BAM

Integrates with …

Provisions …

Local ContainerLocal container generation and management Local build and debug

Project scaffolding SDK gen Service provisioning API Model generation Swagger generation

Page 137: InterConnect: Java, Node.js and Swift - Which, Why and When

137

Page 138: InterConnect: Java, Node.js and Swift - Which, Why and When

138

Page 139: InterConnect: Java, Node.js and Swift - Which, Why and When

139

Page 140: InterConnect: Java, Node.js and Swift - Which, Why and When

140

Page 141: InterConnect: Java, Node.js and Swift - Which, Why and When

141

http://developer.ibm.com/cloud-native

Page 142: InterConnect: Java, Node.js and Swift - Which, Why and When

Bluemix Mobile & Omni-Channel!BMO-6321: Patterns in Omni-Channel Cloud Application Development

Containers & Microservices!BMC-2173: Introduction to Docker Containers and Microservices

Visit the DevZone in the Concourse for open Hello World labs and Ask Me Anything booths!

Wednesday, 11:15 AM - 12:00 PM | South Pacific C | Session ID: 6321A

Tuesday, 4:45 PM - 5:30 PM | South Pacific A | Session ID: 2173A

Tuesday, 11:00 AM - 12:45 PM | DevZone Ask Me Anything # 2 | Session ID: 7087AAsk Me Anything: Bluemix Cloud-Native Development

Ask Me Anything: Server-Side Swift DevelopmentWednesday, 2:30 PM - 5:00 PM | DevZone Ask Me Anything # 6 | Session ID: 7088A

Node.js & LoopBackBAP-1117: Introduction to LoopBackNode.js Framework

Liberty & MicroservicesBAP - 5081: Microservices with IBM WebSphere Liberty:What, Why and When?

Wednesday, 11:15 AM - 12:00 PM | Islander F | Session ID: 1117A

Tuesday, 7:00 PM - 7:20 PM | Engagement Theater Booth #319 | Session ID: 5081A

Page 143: InterConnect: Java, Node.js and Swift - Which, Why and When

143

Questions?

Page 144: InterConnect: Java, Node.js and Swift - Which, Why and When

144 1/17/17

Please noteIBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion.

Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision.

The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract.

The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming inthe user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.

Page 145: InterConnect: Java, Node.js and Swift - Which, Why and When

145 1/17/17

Notices and disclaimersCopyright © 2017 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM.

U.S. Government Users Restricted Rights — use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM.

Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. This document is distributed “as is” without any warranty, either express or implied. In no event shall IBM be liable for any damage arising from the use of this information, including but not limited to, loss of data, business interruption, loss of profit or loss of opportunity. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided.

IBM products are manufactured from new parts or new and used parts. In some cases, a product may not be new and may have been previously installed. Regardless, our warranty terms apply.”

Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice.

Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary.

References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business.

Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation.

It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law.

Page 146: InterConnect: Java, Node.js and Swift - Which, Why and When

146 1/17/17

Notices and disclaimers continuedInformation concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM expressly disclaims all warranties, expressed or implied, including but not limited to, the implied warranties of merchantability and fitness for a particular, purpose.

The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or other intellectual property right.

IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management System™, FASP®, FileNet®, Global Business Services®,Global Technology Services®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli® Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.

Page 147: InterConnect: Java, Node.js and Swift - Which, Why and When

InterConnect2017

147 1/17/17