ZeroMQ - Pieter Hintjens

ZeroMQ

Messaging for Many Applications

(Autor)

Buch | Softcover
516 Seiten
2013
O'Reilly Media, Inc, USA (Verlag)
978-1-4493-3406-2 (ISBN)
44,85 inkl. MwSt
Dive into ØMQ (aka ZeroMQ), the smart socket library that gives you fast, easy, message-based concurrency for your applications. With this quick-paced guide, you’ll learn hands-on how to use this scalable, lightweight, and highly flexible networking tool for exchanging messages among clusters, the cloud, and other multi-system environments.

ØMQ maintainer Pieter Hintjens takes you on a tour of real-world applications, using extended examples in C to help you work with ØMQ’s API, sockets, and patterns. Learn how to use specific ØMQ programming techniques, build multithreaded applications, and create your own messaging architectures. You’ll discover how ØMQ works with several programming languages and most operating systems—with little or no cost.
  • Learn ØMQ’s main patterns: request-reply, publish-subscribe, and pipeline
  • Work with ØMQ sockets and patterns by building several small applications
  • Explore advanced uses of ØMQ’s request-reply pattern through working examples
  • Build reliable request-reply patterns that keep working when code or hardware fails
  • Extend ØMQ’s core pub-sub patterns for performance, reliability, state distribution, and monitoring
  • Learn techniques for building a distributed architecture with ØMQ
  • Discover what’s required to build a general-purpose framework for distributed applications

Pieter Hintjens started his first business making video games 30 years ago and has been building software products since then. Taking as his principle, »the real physics of software is the physics of people«, he focuses now on building communities through »Social Architecture«, writing, and helping others use ZeroMQ profitably. For two years he was president of the FFII, a large NGO fighting software patents. He was CEO of Wikidot, founder of the European Patent Conference, and founder of the Digital Standards Organization. Pieter speaks English, French, Dutch, and bits and pieces of a dozen other languages. He plays with a West African drum group in Brussels and is becoming a licensed NRA pistol instructor in Texas. Pieter lives with his beautiful wife and three lovely children in Brussels, Belgium and travels extensively.

Learning to Work with ØMQ
Chapter 1 Basics
Fixing the World
Audience for This Book
Getting the Examples
Ask and Ye Shall Receive
A Minor Note on Strings
Version Reporting
Getting the Message Out
Divide and Conquer
Programming with ØMQ
Why We Needed ØMQ
Socket Scalability
Upgrading from ØMQ v2.2 to ØMQ v3.2
Warning: Unstable Paradigms!
Chapter 2 Sockets and Patterns
The Socket API
Messaging Patterns
Handling Errors and ETERM
Handling Interrupt Signals
Detecting Memory Leaks
Multithreading with ØMQ
Signaling Between Threads (PAIR Sockets)
Node Coordination
Zero-Copy
Pub-Sub Message Envelopes
High-Water Marks
Missing Message Problem Solver
Chapter 3 Advanced Request-Reply Patterns
The Request-Reply Mechanisms
Request-Reply Combinations
Exploring ROUTER Sockets
The Load-Balancing Pattern
A High-Level API for ØMQ
The Asynchronous Client/Server Pattern
Worked Example: Inter-Broker Routing
Chapter 4 Reliable Request-Reply Patterns
What Is “Reliability”?
Designing Reliability
Client-Side Reliability (Lazy Pirate Pattern)
Basic Reliable Queuing (Simple Pirate Pattern)
Robust Reliable Queuing (Paranoid Pirate Pattern)
Heartbeating
Contracts and Protocols
Service-Oriented Reliable Queuing (Majordomo Pattern)
Asynchronous Majordomo Pattern
Service Discovery
Idempotent Services
Disconnected Reliability (Titanic Pattern)
High-Availability Pair (Binary Star Pattern)
Brokerless Reliability (Freelance Pattern)
Conclusion
Chapter 5 Advanced Publish-Subscribe Patterns
Pros and Cons of Publish-Subscribe
Pub-Sub Tracing (Espresso Pattern)
Last Value Caching
Slow Subscriber Detection (Suicidal Snail Pattern)
High-Speed Subscribers (Black Box Pattern)
Reliable Publish-Subscribe (Clone Pattern)
Software Engineering Using ØMQ
Chapter 6 The ØMQ Community
Architecture of the ØMQ Community
How to Make Really Large Architectures
The ØMQ Process: C4
A Real-Life Example
Git Branches Considered Harmful
Designing for Innovation
Burnout
Patterns for Success
Chapter 7 Advanced Architecture Using ØMQ
Message-Oriented Pattern for Elastic Design
Unprotocols
Serializing Your Data
Transferring Files
State Machines
Authentication Using SASL
Large-Scale File Publishing: FileMQ
Getting an Official Port Number
Chapter 8 A Framework for Distributed Computing
Design for the Real World
The Secret Life of WiFi
Discovery
Spinning Off a Library Project
Point-to-Point Messaging
Group Messaging
Testing and Simulation
Distributed Logging and Monitoring
Content Distribution
Writing the Unprotocol
Conclusions
Chapter 9 Postface
Tales from Out There
How This Book Happened
Removing Friction
Licensing
Colophon

Erscheint lt. Verlag 30.4.2013
Zusatzinfo illustrations
Verlagsort Sebastopol
Sprache englisch
Maße 178 x 233 mm
Gewicht 807 g
Einbandart kartoniert
Themenwelt Informatik Software Entwicklung Objektorientierung
ISBN-10 1-4493-3406-7 / 1449334067
ISBN-13 978-1-4493-3406-2 / 9781449334062
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich