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

Hexi hexi.pics

Hexi hexi.pics

Hexi talks in NodeConfEU
Hexi uses HTTP/2, io.js, AWS Lambda.

Yosuke Furukawa

September 09, 2015
Tweet

More Decks by Yosuke Furukawa

Other Decks in Programming

Transcript

  1. And

  2. Hexi inside • HTTP/2 (NGINX patch) • io.js (Express) •

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

    AWS Lambda (image resizer) • AWS RDS (MySQL) • AWS S3 (image storage)
  4. HTTP/2 • features • multi-requests per 1 connection • binary

    header (HPACK) • Server push / prioritized asset requests (not implemented yet in nginx patch)
  5. HTTP2 pros • No concat JS/CSS, No CSS Sprite •

    No domain sharding /POFFEUPSFEVDFOVNCFSTPGSFRVFTU
  6. Hexi inside • HTTP/2 (NGINX patch) • io.js (Express) •

    AWS Lambda (image resizer) • AWS RDS (MySQL) • AWS S3 (image storage)
  7. 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
  8. AWS Lambda features • Hook Amazon resource actions • S3

    PUT/DELETE • Invoke Node.js functions • resize image (using imagemagick) • PUT resized image to S3
  9. 1. PUT initial image to S3 2. invoke lambda functions

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

    3. resize image 4. PUT resized images DSFBUFXPSLFSTFBTJMZ
  11. Hexi is … • Hexagonal Stickers as a Service •

    We can provide stickers world-wide. • Stickers can be created by mobile phone :)