Network Programming in Elixir and ERLANG: Write High-Performance, Scalable, and Reliable Apps with TCP and Udp
暫譯: Elixir 與 ERLANG 的網路程式設計:使用 TCP 和 UDP 撰寫高效能、可擴展且可靠的應用程式

Leopardi, Andrea

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2025-09-23
  • 售價: $2,210
  • 貴賓價: 9.5$2,100
  • 語言: 英文
  • 頁數: 272
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798888651056
  • ISBN-13: 9798888651056
  • 相關分類: 系統開發
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

TCP, UDP, DNS, HTTP, and more: these are the network protocols that make up the fabric of the Internet. Erlang and Elixir are the perfect fit for building network-intensive applications--the BEAM's actor model perfectly mirrors the way nodes operate in a network. Learn about networking and the power of the BEAM to write performant and reliable network applications. Create systems that are scalable, resilient, and efficient, thanks to language primitives and OTP. Take advantage of an ecosystem that has been solving network problems for more than thirty years. Learn about design patterns and common pitfalls for network applications on the BEAM.


From smart appliances to gigantic data centers, from phones to satellites, networks are the way computers talk to each other. Learn how to use network protocols, choose or design serialization protocols, and architect systems with servers and clients.

Start with the most widely-used protocol on the Internet: TCP. Build a chat server where multiple clients can chat in real time. Explore client-side TCP by building a client for Redis. Scale and harden server and client, thanks to features of the BEAM. Then dig into UDP, TCP's "looser" sibling. Code a system for reporting metrics capable of rivaling hardened software like StatsD. Learn about DNS, which powers domain resolution for the Internet. Next, secure your TCP traffic with TLS. Lastly, explore HTTP, the protocol that even your microwave could be using. Build a JSON API, client, and server. Learn the differences between HTTP/1.1 and HTTP/2, and add real-time features via WebSockets.

The BEAM was built for networks and has been honed for more than three decades. It's the perfect fit. Leverage years of real-world experience building network-intensive applications from a member of the Elixir core team, and become an expert at network programming in Elixir and Erlang.

What You Need:

You'll need a computer running a standard distribution of Erlang/OTP, and optionally Elixir. Any recent version of OTP (22 or later) and Elixir (1.11 or later) is fine. For some parts of the book, you'll also need a working Internet connection.

商品描述(中文翻譯)

TCP、UDP、DNS、HTTP 等等:這些是構成互聯網基礎的網路協議。Erlang 和 Elixir 非常適合用於構建網路密集型應用程式——BEAM 的 Actor 模型完美地反映了節點在網路中的運作方式。了解網路和 BEAM 的強大功能,以編寫高效且可靠的網路應用程式。利用語言原始功能和 OTP 創建可擴展、具韌性和高效的系統。利用這個已經解決網路問題超過三十年的生態系統。了解 BEAM 上網路應用程式的設計模式和常見陷阱。

從智慧家電到龐大的數據中心,從手機到衛星,網路是電腦彼此溝通的方式。學習如何使用網路協議,選擇或設計序列化協議,並架構具有伺服器和客戶端的系統。

從互聯網上最廣泛使用的協議開始:TCP。構建一個聊天伺服器,讓多個客戶端可以實時聊天。通過為 Redis 構建客戶端來探索客戶端 TCP。利用 BEAM 的特性擴展和加固伺服器和客戶端。然後深入了解 UDP,TCP 的「鬆散」兄弟。編寫一個報告指標的系統,能夠與像 StatsD 這樣的加固軟體相媲美。了解 DNS,它為互聯網提供域名解析。接下來,使用 TLS 保護你的 TCP 流量。最後,探索 HTTP,這是連你的微波爐都可能在使用的協議。構建一個 JSON API、客戶端和伺服器。了解 HTTP/1.1 和 HTTP/2 之間的差異,並通過 WebSockets 添加實時功能。

BEAM 是為網路而建,並經過三十多年的精雕細琢。它是完美的選擇。利用來自 Elixir 核心團隊成員的多年實際經驗,構建網路密集型應用程式,並成為 Elixir 和 Erlang 網路編程的專家。

你需要的:
你需要一台運行標準 Erlang/OTP 發行版的電腦,並可選擇安裝 Elixir。任何最近版本的 OTP(22 或更高)和 Elixir(1.11 或更高)都可以。對於書中的某些部分,你還需要一個可用的網際網路連接。