Skip to content

Instantly share code, notes, and snippets.

@y-yagi
Created October 15, 2019 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y-yagi/1055222f027966b7274d3913f6f7e6ff to your computer and use it in GitHub Desktop.
Save y-yagi/1055222f027966b7274d3913f6f7e6ff to your computer and use it in GitHub Desktop.

agoo

  • "A High Performance HTTP Server for Ruby"
  • 作者はPeter Ohler(@ohler55)
  • 普通にHTTP Server
    • PumaとかUnicornとかと同じ部類
  • 実装は全部C
  • static assetsの配信もサポートしている
  • ワーカはスレッド / プロセス選択可能
    • デフォルトはスレッド
  • Rack APIもサポートしている
    • ので、Railsも普通に動く
  • WebSocketもサポート
  • HTTP/2は未サポート(対応する予定はあるらしい)

パフォーマンス

GraphQL

  • GraphQLをサポートしている
    • subscriptionsもサポート。connectionは未サポート(サポート予定はあるらしい)。
    • サンプルコード: ohler55/agoo/example/graphql
  • GraphQLのベンチマーク: the-benchmarker/graphql-benchmarks
  • Rubyで定義したクラスからスキーマを生成のような機能は無く、RubyのコードとGraphQLのスキーマは別に定義する必要がある
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment