大切なことはここにすべて載っています。 Working With TCP Socketsを読んだ - $shibayu36->blog; これも読みました。 電子書籍「irbから学ぶRubyの並列処理 ~ forkからWebSocketまで」EPUB版をGumroadから出版しました! 100円で完結にまとめられていて最高でした。 コード参考 EventMachine: scalable non-blocking i/o in ruby send(2)のマニュアルページ http://linuxjm.sourceforge.jp/html/LDP_man-pages/man2/sendmsg.2.html ソケットの流れ socket(2) ソケットの生成 bind(2) ソケットとポートの結合 listen(2) 接続キューの作成(サーバ) accept(2) 接続受け入れ(サーバ) s
EventMachine is a Ruby library that implements non-blocking I/O using the reactor pattern similar to Python's Twisted. It allows Ruby applications to handle thousands of concurrent connections using a single process by avoiding blocking on I/O and using callbacks. EventMachine works across various Ruby implementations like MRI, YARV, Rubinius, and JRuby using different underlying reactors. It is c
Working with TCP Socketsを読みました。 [asin:B00BPYT6PK:detail] これまでネットワークプログラミングの基礎みたいなことをあまり考えたことなかったので、結構勉強になりました。 次のようなことが勉強になりました。 serverやclientが通信を行うときにどのようなlifecycleをたどるのか bind, listen, connectなど 通信を効率的に行うために、kernelがどのようなことをするか buffer層みたいなところで何をするか サイズ指定のreadを実行した時にkernelはどのような領域を確保するか 普通にnetcatとかlsofが便利とか Network Architecture Patternsの基本形とか 基本的なことを簡単に解説するという感じだったので、webサーバとかnginxのproxyとか普通に使ってるけど、
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く