Wrapping Up
It took some time to cover all the pieces of a TCP server, but we wrote everything from scratch, using only standard-library components. We now have a resilient, concurrent system with a relatively small amount of code. That is a remarkable feat of the BEAM.
Awesome job getting to the end of our journey across TCP servers! We started the previous chapter with an overview of different kinds of network protocols, focusing on the difference between binary and textual protocols, then coming up with a protocol of our own. We then wrote a TCP-based chat server using only tools from the Elixir and Erlang standard libraries, and we threw together a client for that as well. In this chapter, we made our server more scalable by building a TCP ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access