Ask HN: Books on network programming patterns?
Hello, HN!
I've recently been getting deeper into node.js for things other than your typical web app, and have encountered a topic I'm not familiar with: network programming. I am completely ignorant on the topic and seek some guidance.
Can anyone recommend any high-level books (or other resources) on network programming? For example, something that covers patterns like PUB/SUB, REQ/RES, Router/Dealer, etc.
Thanks in advanced!
10 comments
[ 3.1 ms ] story [ 33.5 ms ] threadYou can also draw a lot of inspiration from the Erlang literature, and CTM.
http://beej.us/guide/bgnet/
https://www.youtube.com/watch?v=jytJXjI0oQU https://speakerdeck.com/seancribbs/just-open-a-socket-connec...
Other talks from ricon.io and the various Erlang conferences are great too, but those are more about distributed systems and not primarily network programming. But since you mentioned the ZeroMQ patterns that should be just what you want.
http://thinkdistributed.io/ http://ricon.io/ https://www.youtube.com/user/ErlangSolutions/videos
[0] http://www.amazon.com/Network-Programming-Volume-Mastering-C...
[1] http://www.amazon.com/Network-Programming-Volume-Systematic-...
[2] http://en.wikipedia.org/wiki/Adaptive_Communication_Environm...
http://www.amazon.com/Enterprise-Integration-Patterns-Design...
http://www.eaipatterns.com/
Covers stuff like: RPC, messages, channels, etc.
TCP/IP Illustrated, Volume 1: The Protocols http://www.amazon.com/TCP-Illustrated-Volume-Addison-Wesley-...
TCP/IP Illustrated, Volume 2: The Implementation http://www.amazon.com/TCP-IP-Illustrated-Implementation-Vol/...
TCP/IP Illustrated, Volume 3: TCP for Transactions, HTTP, NNTP, and the UNIX Domain Protocols http://www.amazon.com/TCP-Illustrated-Vol-Transactions-Proto...
While they start at much lower level than generic patterns, they build the basis to understand the core of networking, and the the later books go into details about effective usage of the protocols.