Slide 1

Slide 1 text

Using the New Network Load Balancer with Amazon ECS

Slide 2

Slide 2 text

Agenda • Which load balancer is right for me? • How to use Network Load Balancer with ECS • How to configure tasks to take advantage of NLB

Slide 3

Slide 3 text

What is a load balancer?

Slide 4

Slide 4 text

Application Load Balancer Network Load Balancer Load balancers can operate at different levels of the network stack

Slide 5

Slide 5 text

GET /hello-world.html HTTP/1.1 Host: www.test.com Accept: text/html, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

010001110100010101010100001000000010111101101000011001010110110001101100011011110 010110101110111011011110111001001101100011001000010111001101000011101000110110101 101100001000000100100001010100010101000101000000101111001100010010111000110001000 011010000101001001000011011110111001101110100001110100010000001110111011101110111 011100101110011101000110010101110011011101000010111001100011011011110110110100001 101000010100100000101100011011000110110010101110000011101000011101000100000011101 000110010101111000011101000010111101101000011101000110110101101100001011000010000 000101010001011110010101000001101000010100100000101100011011000110110010101110000 011101000010110101001100011000010110111001100111011101010110000101100111011001010 011101000100000011001010110111000101101011101010111001100001101000010100100000101 100011011000110110010101110000011101000010110101000101011011100110001101101111011 001000110100101101110011001110011101000100000011001110111101001101001011100000010 110000100000011001000110010101100110011011000110000101110100011001010000110100001 010010101010111001101100101011100100010110101000001011001110110010101101110011101 000011101000100000010011010110111101111010011010010110110001101100011000010010111 100110100001011100011000000100000001010000110001101101111011011010111000001100001 011101000110100101100010011011000110010100111011001000000100110101010011010010010 100010100100000001101100010111000110000001110110010000001010111011010010110111001 100100011011110111011101110011001000000100111001010100001000000011010100101110001 1000100101001

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

GET /hello-world.html HTTP/1.1 Host: www.test.com Accept: text/html, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Slide 12

Slide 12 text

A load balancer is more than just this...

Slide 13

Slide 13 text

Layer 7 Load Balancer Layer 4 Load Balancer Beneath the hood

Slide 14

Slide 14 text

Layer 7 Load Balancer SSL Termination Layer 7 Load Balancer SSL in Transit

Slide 15

Slide 15 text

Layer 4 Load Balancer End to end SSL

Slide 16

Slide 16 text

HTTP Routing

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Static Ports

Slide 19

Slide 19 text

Dynamic Port Mapping

Slide 20

Slide 20 text

Dynamic Port Routing

Slide 21

Slide 21 text

Application Code Task Definition

Slide 22

Slide 22 text

Task Definition Live Tasks On Instance

Slide 23

Slide 23 text

Live Tasks On Instance Target Group

Slide 24

Slide 24 text

Target Group Service

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Tips & Tricks

Slide 27

Slide 27 text

For low latency, don't double your SSL overhead

Slide 28

Slide 28 text

Terminate SSL at the load balancer... ...or, send SSL all the way to the app server

Slide 29

Slide 29 text

Use dynamic ports, rather than static ports: