Slide 1

Slide 1 text

@yosuke_furukawa Hexagonal Sticker as a Service

Slide 2

Slide 2 text

Hexi @yosuke_furukawa

Slide 3

Slide 3 text

@yosuke_furukawa

Slide 4

Slide 4 text

Japan Node.js User Group Leader

Slide 5

Slide 5 text

Frontend Engineer (using React) at DeNA

Slide 6

Slide 6 text

Congrats!!!!

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Hex Sticker

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

8F)FYTUJDLFST%

Slide 14

Slide 14 text

And

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

8FIBWFTUBOEBSETQFDGPSTUJDLFST

Slide 17

Slide 17 text

So. My motivation is …

Slide 18

Slide 18 text

Let’s make Hexagonal Stickers https://hexi.pics

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Hexi inside

Slide 21

Slide 21 text

Hexi inside • HTTP/2 (NGINX patch) • io.js (Express) • AWS Lambda (image resizer) • AWS RDS (MySQL) • AWS S3 (image storage)

Slide 22

Slide 22 text

Hexi inside • HTTP/2 (NGINX patch) • io.js (Express) • AWS Lambda (image resizer) • AWS RDS (MySQL) • AWS S3 (image storage)

Slide 23

Slide 23 text

HTTP/2

Slide 24

Slide 24 text

HTTP/2 • features • multi-requests per 1 connection • binary header (HPACK) • Server push / prioritized asset requests (not implemented yet in nginx patch)

Slide 25

Slide 25 text

performance

Slide 26

Slide 26 text

https (HTTP1.1)

Slide 27

Slide 27 text

https (HTTP1.1) TFDPOET

Slide 28

Slide 28 text

https (HTTP2)

Slide 29

Slide 29 text

https (HTTP2) TFDPOETTFDPOET

Slide 30

Slide 30 text

https (HTTP 1.1 vs HTTP2)

Slide 31

Slide 31 text

HTTP2 pros • No concat JS/CSS, No CSS Sprite • No domain sharding

Slide 32

Slide 32 text

HTTP2 pros • No concat JS/CSS, No CSS Sprite • No domain sharding /POFFEUPSFEVDFOVNCFSTPGSFRVFTU

Slide 33

Slide 33 text

Hexi inside • HTTP/2 (NGINX patch) • io.js (Express) • AWS Lambda (image resizer) • AWS RDS (MySQL) • AWS S3 (image storage)

Slide 34

Slide 34 text

io.js features • ES6 friendly (these features are using in Hexi) • class • template string literals • block scope • Better performance than Node.js v0.12 • almost 5% faster

Slide 35

Slide 35 text

GBTUFSUIBO/PEFKTW

Slide 36

Slide 36 text

AWS Lambda features • Hook Amazon resource actions • S3 PUT/DELETE • Invoke Node.js functions • resize image (using imagemagick) • PUT resized image to S3

Slide 37

Slide 37 text

1. PUT initial image to S3 2. invoke lambda functions 3. resize image 4. PUT resized images

Slide 38

Slide 38 text

1. PUT initial image to S3 2. invoke lambda functions 3. resize image 4. PUT resized images DSFBUFXPSLFSTFBTJMZ

Slide 39

Slide 39 text

okrabyte • NOTE: EXPERIMENTAL okrabyte extract characters Tokyo Node Festival 2015

Slide 40

Slide 40 text

DEMO okrabyte

Slide 41

Slide 41 text

conclusion

Slide 42

Slide 42 text

Hexi is … • Hexagonal Stickers as a Service • We can provide stickers world-wide. • Stickers can be created by mobile phone :)

Slide 43

Slide 43 text

Hexi has new technologies /POFFEUPVTFIBDLUP SFEVDF)551SFRVFTUT &4GSJFOEMZ 1FSGPSNBODFJNQSPWFE DSFBUFXPSLFST FBTJMZ

Slide 44

Slide 44 text

one more thing http://nodefest.jp/

Slide 45

Slide 45 text

NodeFest 2015

Slide 46

Slide 46 text

Thank you !!!! @yosuke_furukawa