{"id":1923,"date":"2016-10-05T02:02:42","date_gmt":"2016-10-04T17:02:42","guid":{"rendered":"https:\/\/ecpplus.net\/weblog\/?p=1923"},"modified":"2021-07-14T16:25:20","modified_gmt":"2021-07-14T07:25:20","slug":"phoenix-framework-websocket-chat","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/phoenix-framework-websocket-chat\/","title":{"rendered":"Phoenix Framework \u3067 WebSocket \u306e\u30c1\u30e3\u30c3\u30c8"},"content":{"rendered":"<p>WebSocket\u3067\u30c1\u30e3\u30c3\u30c8\u3068\u3044\u3046\u3001\u9060\u3044\u6614\u306b\u6d41\u884c\u3063\u305f\u984c\u6750\u3067\u3001 Phoenix Framework \u3092\u4f7f\u3063\u3066\u30c7\u30d7\u30ed\u30a4\u307e\u3067\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n<h2>URL<\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a Nginx \u306e\u80cc\u5f8c\u306b\u304a\u3044\u3066\u52d5\u304b\u3057\u3066\u307f\u305f\u3002 EC2 \u306e t2.nano \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u52d5\u304b\u3057\u3066\u307f\u3066\u308b\u3002\u5272\u3068\u30b5\u30af\u30b5\u30af\u3057\u3066\u308b\u611f\u3058\u304c\u3057\u307e\u3059\u3002<br \/>\n<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/chat.ecpplus.net\"><a href=\"https:\/\/chat.ecpplus.net\">https:\/\/chat.ecpplus.net<\/a><\/a>  2\u3064\u30d6\u30e9\u30a6\u30b6\u958b\u304f\u304b\u3001PC\u3068\u30b9\u30de\u30db\u3068\u304b\u3067\u898b\u308b\u3068\u901a\u4fe1\u306e\u901f\u5ea6\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883\u69cb\u7bc9<\/h2>\n<h3>elixir<\/h3>\n<p>elixir \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f Homebrew \u3068\u304b\u3067\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash line-numbers\">$ brew install elixir\n$ brew install rebar3 # \u624b\u5143\u3060\u3068\u3001prod \u306e compile \u3067\u5fc5\u8981\u3060\u3063\u305f\n$ elixir -v\nErlang\/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]\n\nElixir 1.3.3\n$ node -v\nv6.6.0\n$ npm -v\n3.10.3\n<\/code><\/pre>\n<h3>vim<\/h3>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/github.com\/elixir-lang\/vim-elixir\">vim-elixir<\/a>, <a class=\"wp-editor-md-post-content-link\" href=\"github.com\/ecpplus\/vim-phoenix\">vim-phoenix<\/a> \u3092\u5165\u308c\u3066\u307f\u305f\u30022\u500b\u76ee\u306fhaml\u5bfe\u5fdc\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3001fork \u3057\u3066\u4f7f\u3063\u305f\u3002 vim-phoenix \u306f\u3001 <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/github.com\/tpope\/vim-projectionist\">vim-projectionist<\/a> \u3067\u4f5c\u3089\u308c\u3066\u308b\u306e\u3067\u3001\u4f7f\u3044\u52dd\u624b\u306f rails.vim \u3068\u4f3c\u305f\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002 rails.vim \u307b\u3069\u306f\u4f5c\u308a\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u3051\u3069\u3001\u5341\u5206\u306a\u611f\u3058\u3002 Rails \u306e\u958b\u767a\u306f\u3001 rails.vim \u306e\u304a\u304b\u3052\u30673\u500d\u304f\u3089\u3044\u901f\u304f\u306a\u3063\u3066\u308b\u6c17\u304c\u3059\u308b\u306e\u3067\u3001 Phoenix Framework \u306e\u30d5\u30a1\u30a4\u30eb\u69cb\u6210\u304c Rails \u306b\u4f3c\u3066\u308b\u306e\u3082\u3042\u3063\u3066\u3001\u6163\u308c\u3066\u304d\u305f\u3089\u306f\u3084\u304f\u66f8\u3051\u305d\u3046\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3092\u3001dein.toml \u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-toml line-numbers\"># Elixir\n[[plugins]]\nrepo = 'elixir-lang\/vim-elixir'\n\n[[plugins]]\nrepo = 'ecpplus\/vim-phoenix'\n<\/code><\/pre>\n<h2>\u958b\u767a\u524d\u306e\u6e96\u5099<\/h2>\n<ul>\n<li>Static Assets \u3092\u30d3\u30eb\u30c9\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c4\u30fc\u30eb\u304c brunch \u306a\u306e\u3060\u304c\u3001\u6163\u308c\u3066\u308b\u306e\u3068\u60c5\u5831\u304c\u591a\u305d\u3046\u306a\u306e\u3067 webpack \u306b\u5909\u66f4<\/li>\n<li>Templates \u3092\u8a18\u8ff0\u3059\u308b\u306e\u304c EEx (like erb)\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306a\u306e\u3060\u304c\u3001\u9589\u3058\u30bf\u30b0\u66f8\u304d\u305f\u304f\u306a\u3044\u306e\u3067 haml \u306b\u5909\u66f4<\/li>\n<\/ul>\n<p>\u3068\u3044\u30462\u70b9\u3092\u3084\u3063\u305f\u3002<\/p>\n<h3>brunch -> webpack<\/h3>\n<h4>package.json<\/h4>\n<p>Delete <code>brunch-config.js<\/code>, <code>package.json<\/code> and initialize <code>package.json<\/code>.<\/p>\n<pre><code class=\"language-zsh line-numbers\">$ rm brunch-config.js package.json\n$ npm init\n<\/code><\/pre>\n<p>Install npm packages. I want to use sass, Bootstrap4, es2015, React but anything is OK.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/5fb460ca88e4fe514aa112388724e162.js\"><\/script><\/p>\n<p>Then I got a <code>package.json<\/code>!<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/2d851f3e7fbc23b8b78267f90fa1effa.js\"><\/script><\/p>\n<h4>webpack.config.js<\/h4>\n<p>When I compile for production, run<\/p>\n<pre><code class=\"line-numbers\">$ NODE_ENV=production node_modules\/webpack\/bin\/webpack.js -p\n<\/code><\/pre>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/c2196381c26d02241bc060ce2a8601da.js\"><\/script><\/p>\n<p>Don&#8217;t forget to put <code>.babelrc<\/code>.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/5e5addf739381d925a67d938412cceb2.js\"><\/script><\/p>\n<h4>config\/dev.exs<\/h4>\n<p>Change watchers from brunch to webpack. <code>npm start<\/code> is defined in package.json. And add .haml to live reloading hook.<\/p>\n<pre><code class=\"language-diff line-numbers\">--- a\/config\/dev.exs\n+++ b\/config\/dev.exs\n@@ -11,9 +11,9 @@ config :chat, Chat.Endpoint,\n   debug_errors: true,\n   code_reloader: true,\n   check_origin: false,\n-  watchers: [node: [\"node_modules\/brunch\/bin\/brunch\", \"watch\", \"--stdin\",\n-                    cd: Path.expand(\"..\/\", __DIR__)]]\n-\n+  watchers: [\n+    npm: [\"start\", cd: Path.expand(\"..\/\", __DIR__)]\n+  ]\n\n # Watch static and templates for browser reloading.\n config :chat, Chat.Endpoint,\n@@ -22,7 +22,7 @@ config :chat, Chat.Endpoint,\n       ~r{priv\/static\/.*(js|css|png|jpeg|jpg|gif|svg)$},\n       ~r{priv\/gettext\/.*(po)$},\n       ~r{web\/views\/.*(ex)$},\n-      ~r{web\/templates\/.*(eex)$}\n+      ~r{web\/templates\/.*(eex|haml)$}\n     ]\n   ]\n<\/code><\/pre>\n<h4>web\/static\/css\/app.sass<\/h4>\n<p>Delete <code>app.css<\/code>, <code>phoenix.css<\/code>(Bootstrap3). Then add <code>app.sass<\/code> like following.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/d83ff68b2c039f2895a7c3709406829d.js\"><\/script><\/p>\n<p>I copied default <code>_variables.scss<\/code> for a template.<\/p>\n<pre><code class=\"line-numbers\">$ cp node_modules\/bootstrap\/scss\/_variables.scss web\/static\/css\/bootstrap_variables.sass\n<\/code><\/pre>\n<p>That&#8217;s it!<\/p>\n<h2>\u5b9f\u88c5<\/h2>\n<p>\u30b3\u30fc\u30c9\u5168\u7136\u6574\u7406\u3055\u308c\u3066\u3044\u306a\u3044\u3051\u308c\u3069\u3082\u3001GitHub \u306b\u30b3\u30fc\u30c9\u3092\u4e0a\u3052\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\n(ecpplus\/phoenix-framework-websocket-chat-example)[<a href=\"https:\/\/github.com\/ecpplus\/phoenix-framework-websocket-chat-example\">https:\/\/github.com\/ecpplus\/phoenix-framework-websocket-chat-example<\/a>]<\/p>\n<h2>\u30c7\u30d7\u30ed\u30a4<\/h2>\n<h3>phoenix.server<\/h3>\n<p>Phoenix Framework \u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u3042\u3063\u305f\u30b3\u30de\u30f3\u30c9\u3092\u307b\u307c\u6301\u3063\u3066\u304d\u305f\u3060\u3051\u3060\u304c\u3001 Ubuntu \u3067 webpack \u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u901a\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001 assets \u3092\u624b\u5143\u3067\u4f5c\u3063\u3066\u304b\u3089\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u3002\u51fa\u6765\u306a\u304b\u3063\u305f\u7406\u7531\u306f\u8ffd\u3063\u3066\u306a\u3044\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/519d226d103a976d1e8b51b20294cc65.js\"><\/script><\/p>\n<pre><code class=\"line-numbers\">$ MIX_ENV=prod mix phoenix.digest\n<\/code><\/pre>\n<p>\u3068\u3044\u3046\u306e\u3067\u3001 assets \u306b hash \u5024\u3092\u3064\u3051\u3066\u304f\u308c\u308b\u6a21\u69d8\u3002 <code>priv\/static\/<\/code> \u4ee5\u4e0b\u306b\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3053\u3092 webroot \u3068\u3057\u3066\u6271\u3048\u3070OK\u306a\u3088\u3046\u3060\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u306f\u3001  <code>MIX_ENV=prod mix phoenix.server<\/code> \u3067\u5341\u5206\u9ad8\u901f\u3068\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u308b\u3002<\/p>\n<pre><code class=\"line-numbers\">$ MIX_ENV=prod mix phoenix.server\n<\/code><\/pre>\n<p>\u3068\u3059\u308b\u3068\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"line-numbers\">$ MIX_ENV=prod PORT=4001 elixir --detached -S mix do compile, phoenix.server\n<\/code><\/pre>\n<p>\u3068\u3059\u308b\u3068\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u591a\u5206 elixir \u3088\u308a\u5805\u7262\u306a supervisor \u3068\u306a\u308b(\u3084\u3084\u3053\u3057\u3044) \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3082\u306a\u3044\u6c17\u3082\u3059\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u3053\u306e\u307e\u307e\u306b\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>nginx<\/h3>\n<p>TLS \u306f Let&#8217;s Encrypt \u3068\u304b\u3067\u30b5\u30af\u30c3\u3068\u7528\u610f\u3057\u3066\u3001\u305d\u308c\u4ee5\u5916\u306e\u8a2d\u5b9a\u3067\u3059\u3002 WebSocket \u306f <code>\/socket<\/code> \u4ee5\u4e0b\u306b\u3064\u306a\u3050\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002 <code>proxy_http_version<\/code> \u306f 1.1 \u306b\u3057\u306a\u3044\u3068 Nginx \u306e\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002Nginx\u3067\u52d5\u304b\u3059\u5834\u5408\u3067\u8abf\u3079\u308b\u3068\u3001\u66f8\u3044\u3066\u308b\u4eba\u307f\u3093\u306a\u540c\u3058\u8a2d\u5b9a\u306a\u306e\u3067\u591a\u5206\u305d\u308c\u3067\u826f\u3044\u306e\u3060\u3068\u601d\u308f\u308c\u308b\u304c\u3001\u3042\u307e\u308a\u8abf\u3079\u3066\u306a\u3044\u3067\u3059\u3002 Static assets \u306f Nginx \u3067\u914d\u4fe1\u3057\u3066\u3001\u305d\u308c\u4ee5\u5916\u3092 phoenix.server \u3068\u3044\u3046\u611f\u3058\u3067\u52d5\u304b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ecpplus\/c36ee913cc2cbfefbd904e9defb48d6d.js\"><\/script><\/p>\n<h2>\u8ca0\u8377\u30c6\u30b9\u30c8<\/h2>\n<p>t2.nano \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3001DB\u30a2\u30af\u30bb\u30b9\u304c\u306a\u3044\u30da\u30fc\u30b8\u306b keepalive \u4ed8\u304d\u3067\u3001100\u4e26\u5217\u306720000\u56de\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u305f\u7d50\u679c\u3067\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u51e6\u7406\u81ea\u4f53\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u30da\u30fc\u30b8\u306a\u306e\u3067\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u5fc5\u305a\u884c\u3046\u51e6\u7406\u306e\u901f\u5ea6\u304c\u3053\u308c\u304f\u3089\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u975e\u529b\u306a\u30b5\u30fc\u30d0\u30671514.92\u30ea\u30af\u30a8\u30b9\u30c8\/\u79d2\u3082\u51e6\u7406\u3067\u304d\u3066\u308b\u306e\u3067\u3001\u3057\u3087\u307c\u3044VPS\u3067\u3082\u5341\u5206\u5b9f\u7528\u7684\u306a\u901f\u5ea6\u304c\u51fa\u305d\u3046\u3002<br \/>\n\u3053\u306e\u51e6\u7406\u306e\u9593\u3067\u3001 beam \u306e\u30d7\u30ed\u30bb\u30b9\u304c CPU60% \u304f\u3089\u3044\u4f7f\u3063\u3066\u307e\u3057\u305f\u3001\u30e1\u30e2\u30ea\u306f\u3042\u307e\u308a\u5909\u308f\u3089\u305a3%\u304f\u3089\u3044\u3067\u3057\u305f\u3002<\/p>\n<pre><code class=\"line-numbers\">$ ab -k -c 100 -n 20000 \"https:\/\/chat.ecpplus.net\/\"\nThis is ApacheBench, Version 2.3 &lt;$Revision: 1706008 $&gt;\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http:\/\/www.zeustech.net\/\nLicensed to The Apache Software Foundation, http:\/\/www.apache.org\/\n\nBenchmarking chat.ecpplus.net (be patient)\nCompleted 2000 requests\nCompleted 4000 requests\nCompleted 6000 requests\nCompleted 8000 requests\nCompleted 10000 requests\nCompleted 12000 requests\nCompleted 14000 requests\nCompleted 16000 requests\nCompleted 18000 requests\nCompleted 20000 requests\nFinished 20000 requests\n\nServer Software:        nginx\nServer Hostname:        chat.ecpplus.net\nServer Port:            443\nSSL\/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128\n\nDocument Path:          \/\nDocument Length:        905 bytes\n\nConcurrency Level:      100\nTime taken for tests:   13.202 seconds\nComplete requests:      20000\nFailed requests:        0\nKeep-Alive requests:    19829\nTotal transferred:      30119145 bytes\nHTML transferred:       18100000 bytes\nRequests per second:    1514.92 [#\/sec] (mean)\nTime per request:       66.010 [ms] (mean)\nTime per request:       0.660 [ms] (mean, across all concurrent requests)\nTransfer rate:          2227.94 [Kbytes\/sec] received\n\nConnection Times (ms)\n              min  mean[+\/-sd] median   max\nConnect:        0    5  53.5      0     915\nProcessing:    42   60  21.9     55     808\nWaiting:       42   59  21.7     55     808\nTotal:         42   65  63.4     55     976\n\nPercentage of the requests served within a certain time (ms)\n  50%     55\n  66%     57\n  75%     59\n  80%     60\n  90%     66\n  95%     89\n  98%    162\n  99%    303\n 100%    976 (longest request)\n<\/code><\/pre>\n<p>keepalive \u306a\u3057\u3060\u3068\u3001\u56de\u7dda\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u554f\u984c\u3067\u3001\u30b5\u30fc\u30d0\u306b\u5168\u7136\u8ca0\u8377\u3092\u304b\u3051\u3089\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\nNginx \u306e CPU \u4f7f\u7528\u304c20%\u304f\u3089\u3044\u3067\u3001beam \u306f\u307b\u3068\u3093\u3069 CPU \u4f7f\u3063\u3066\u306a\u3044\u72b6\u614b\u3067\u3057\u305f\u2026\u3002<\/p>\n<pre><code class=\"line-numbers\">~ \u1405 ab -c 100 -n 20000 \"https:\/\/chat.ecpplus.net\/\"\nThis is ApacheBench, Version 2.3 &lt;$Revision: 1706008 $&gt;\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http:\/\/www.zeustech.net\/\nLicensed to The Apache Software Foundation, http:\/\/www.apache.org\/\n\nBenchmarking chat.ecpplus.net (be patient)\nCompleted 2000 requests\nCompleted 4000 requests\nCompleted 6000 requests\nCompleted 8000 requests\nCompleted 10000 requests\nCompleted 12000 requests\nCompleted 14000 requests\nCompleted 16000 requests\nCompleted 18000 requests\nCompleted 20000 requests\nFinished 20000 requests\n\nServer Software:        nginx\nServer Hostname:        chat.ecpplus.net\nServer Port:            443\nSSL\/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128\n\nDocument Path:          \/\nDocument Length:        905 bytes\n\nConcurrency Level:      100\nTime taken for tests:   263.151 seconds\nComplete requests:      20000\nFailed requests:        0\nTotal transferred:      30020000 bytes\nHTML transferred:       18100000 bytes\nRequests per second:    76.00 [#\/sec] (mean)\nTime per request:       1315.753 [ms] (mean)\nTime per request:       13.158 [ms] (mean, across all concurrent requests)\nTransfer rate:          111.41 [Kbytes\/sec] received\n\nConnection Times (ms)\n              min  mean[+\/-sd] median   max\nConnect:      148 1017 820.6    715   12429\nProcessing:    42  295 391.6    212   14791\nWaiting:       42  235 373.8    160   14791\nTotal:        233 1313 918.9    991   16536\n\nPercentage of the requests served within a certain time (ms)\n  50%    991\n  66%   1230\n  75%   1468\n  80%   1656\n  90%   2233\n  95%   3289\n  98%   4166\n  99%   4885\n 100%  16536 (longest request)\n<\/code><\/pre>\n<p>\u5b9f\u306f ecpplus.net \u306f t2.nano \u306b\u7f6e\u3044\u3066\u308b\u306e\u3067\u3059\u304c\u3001\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5410\u304f\u306e\u6050\u308d\u3057\u3059\u304e\u3066 WordPress \u3084 Sinatra \u3067\u5410\u3044\u3066\u308b HTML \u3082\u5168\u30da\u30fc\u30b8 Nginx \u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3057\u3066\u3066\u3001\u9759\u7684\u306a\u4ee5\u5916\u914d\u4fe1\u3057\u3066\u307e\u305b\u3093\u3002\u304c\u3001 Elixir \u306a\u3089\u5272\u3068\u884c\u3051\u305d\u3046\u306a\u611f\u3058\u3067\u3057\u305f\u3002\u30e1\u30e2\u30ea\u7684\u306b\u3082\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u8d77\u52d5\u3057\u305f\u3060\u3051\u306a\u3089 10MB\u304f\u3089\u3044\u3057\u304b\u6d88\u8cbb\u3057\u307e\u305b\u3093\u3002 Unicorn \u3067\u52d5\u304b\u3057\u3066\u308b\u307b\u307c\u6700\u5c0f\u69cb\u6210\u306a Sinatra \u306f6MB\u304f\u3089\u3044\u306a\u306e\u3067\u3001Phoenix \u304c\u7279\u306b\u5c11\u306a\u3044\u308f\u3051\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u304c\u3002<\/p>\n<h2>\u6b21\u306b\u3084\u308a\u305f\u3044\u3053\u3068<\/h2>\n<ul>\n<li>AWS \u306e\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u3092\u3084\u3063\u3066\u307f\u308b<\/li>\n<li>NoSQL \u3068\u306e\u9023\u643a\u3092\u3084\u3063\u3066\u307f\u308b<\/li>\n<li>\u30c6\u30b9\u30c8\u3092\u66f8\u304f<\/li>\n<li>\u826f\u3044\u30c7\u30d7\u30ed\u30a4\u65b9\u6cd5\u3092\u8abf\u3079\u308b<\/li>\n<li>iOS\u304b\u3089\u53e9\u304f\u4f55\u304b\u306eAPI\u3092\u4f5c\u3063\u3066\u307f\u308b<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WebSocket\u3067\u30c1\u30e3\u30c3\u30c8\u3068\u3044\u3046\u3001\u9060\u3044\u6614\u306b\u6d41\u884c\u3063\u305f\u984c\u6750\u3067\u3001 Phoenix Framework \u3092\u4f7f\u3063\u3066\u30c7\u30d7\u30ed\u30a4\u307e\u3067\u3084\u3063\u3066\u307f\u305f\u3002 URL \u3068\u308a\u3042\u3048\u305a Nginx \u306e\u80cc\u5f8c\u306b\u304a\u3044\u3066\u52d5\u304b\u3057\u3066\u307f\u305f\u3002 EC2 \u306e t2.nano [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[36,39,7,20,37,66,23],"class_list":["post-1923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-elixir","tag-javascript","tag-linux","tag-nginx","tag-phoenixframework","tag-vim","tag-websocket"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/1923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=1923"}],"version-history":[{"count":13,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"predecessor-version":[{"id":4326,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/1923\/revisions\/4326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media\/2059"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}