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

ElixirでNode.jsを倒す

 ElixirでNode.jsを倒す

4b071f90c5d9c0a58e2d9076460b7be4?s=128

さっちゃん

May 10, 2017
Tweet

Transcript

  1. ElixirでNode.jsを倒す

  2. .。oO(さっちゃんですよヾ(〃l _ l)ノ゙☆)

  3. .。oO(さっちゃんですよヾ(〃l _ l)ノ゙☆)

  4. Chat

  5. We ♥ chat & we ♥ ChatOps.

  6. Weʼll make bots.

  7. Elixir has Hedwig.

  8. Elixir has Hedwig. defmodule HedwigDemo.Responders.Ping do @moduledoc ””” ping-pong ”””

    use Hedwig.Responder hear ~r/ping/i, msg do reply msg, “pong” end end
  9. Compare Hedwig with another chat-bot framework.

  10. Compare Hedwig with another chat-bot framework. Botkit !

  11. Botkit Hedwig

  12. Botkit Hedwig

  13. single thread event loop callback

  14. single thread event loop callback fail!

  15. single thread event loop callback fail! System down!

  16. sup process process process

  17. sup process process process fail!

  18. sup process process process fail! process re-spawn!

  19. Demo client 接 續 接 續 接 續 bot ping

    pong ping pong ping pong
  20. Demo client 接 續 接 續 接 續 proc proc

    proc
  21. Demo client 接 續 接 續 接 續 proc

  22. Demo `make pressure` ne-sachirou/exconfjp2017

  23. Benchmark

  24. Benchmark

  25. Benchmark

  26. Botkit Hedwig 速い 竝列に動く エラーからの恢復が遲い 速い 竝列に動く+竝⾏に動く エラーから素早く恢復する