Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hexi

 Hexi

Hexsticker as a Service

Yosuke Furukawa
PRO

April 14, 2015
Tweet

More Decks by Yosuke Furukawa

Other Decks in Programming

Transcript

  1. Hexi @yosuke_furukawa

  2. Hexsticker as a Service

  3. None
  4. JavaScript users love hexagonal stickers !!

  5. None
  6. +4FSTEFpOF4UJDLFST4UBOEBSE

  7. Hexi internal

  8. Hexi internal • Nginx (SPDY/3.1) • ngx_small_light • io.js only

    1 process • AWS RDS • AWS S3
  9. performance

  10. h2load $ h2load -n1000 -c100 -m100 -pspdy/3.1 https://hexi.pics/ finished in

    4.44s, 225 req/s, 2.02MB/s requests: 1000 total, 1000 started, 1000 done, 1000 succeeded, 0 failed, 0 errored status codes: 1000 2xx, 0 3xx, 0 4xx, 0 5xx traffic: 9393534 bytes total, 437250 bytes headers, 9013000 bytes data min max mean sd +/- sd time for request: 973.15ms 3.74s 2.47s 737.45ms 63.90%
  11. https without SPDY

  12. https without SPDY TFDPOET

  13. https with SPDY

  14. https with SPDY TFDPOETTFDPOET

  15. SPDY pros • No concat JS/CSS • No CSS sprite

    • No domain sharding
  16. SPDY pros • No concat JS/CSS • No CSS sprite

    • No domain sharding CFUUFSF⒎FDUXJUINJOJNVNF⒎PSU
  17. SPDY cons • ELB does not support (?) • SPDY

    is dead long live HTTP2
  18. DEMO

  19. future

  20. Hexi future • http2 (nghttp2 or h2o) 
 (new!) •

    io.js only 1 process • AWS RDS • AWS S3 • AWS Lambda (new!)
  21. http2 sticker is now available

  22. https://hexi.pics/items/a8f92e622f85374e41dde6c5d5505750