For C developers who want a comprehensive introduction to ZeroMQ, this is the perfect tutorial. With a user-friendly approach and practical examples, it covers everything from fundamental message patterns to working with multiple sockets.
- Learn fundamental message/queue design patterns
- Work with multi-threaded programs
- Work with multiple sockets
ØMQ (also spelled ZeroMQ, 0MQ, or ZMQ) is a high-performance asynchronous messaging library aimed at use in scalable distributed or concurrent applications. It provides a message queue, but unlike message-oriented middleware, a ØMQ system can run without a dedicated message broker. The library is designed to have a familiar socket-style API.
"ZeroMQ" teaches you to use ZeroMQ through examples in C programming language. You will learn how to use fundamental patterns of message/queuing with a step-by-step tutorial approach and how to apply them. Then, you’ll learn how to use high level APIs and to work with multiple sockets and multithreaded programs through many examples.
This book looks at how message/queue works in general and what kinds of problems it solves. Then, it explains how ZeroMQ works and how it differs from other message/queue libraries and how it can be used in different scenarios.
You will also learn how to apply essential message/queue design patterns in different scenarios, and how they differ from each other. It shows you practical examples you can apply. You will also learn how to work with multiple sockets.
You will learn the basics of ZeroMQ as well as how to use different patterns.
Table of Contents
- Table of Contents
- About the Author
- About the Reviewers
- 1. Getting Started
2. Introduction to Sockets
- The publish-subscribe pattern
- The pipeline pattern
- Getting ZeroMQ context
- Destroying ZeroMQ context
- Cleaning up
- Detecting memory leaks
3. Using Socket Topology
- What a socket is
- Types of Internet sockets
- Transmission Control Protocol (TCP)
- TCP header
- ZeroMQ sockets
- Routing schemes
- Working with multiple sockets
- Working with multi-part messages
- How to handle interruptions
- Introduction to CZMQ
- 4. Advanced Patterns
- A. Appendix
- Title: ZeroMQ
- Release date: March 2013
- Publisher(s): Packt Publishing
- ISBN: 9781782161042