Free Sample
+ Collection

ZeroMQ

Starting
Faruk Akgul

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
$14.99
$24.99
RRP $14.99
RRP $24.99
eBook
Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782161042
Paperback108 pages

About This Book

  • Learn fundamental message/queue design patterns
  • Work with multi-threaded programs
  • Work with multiple sockets

Who This Book Is For

If you are a C developer who wants to learn about ZeroMQ, this book is for you. It is assumed that the reader has C experience at some level but prior ZeroMQ knowledge is not expected.

Table of Contents

Chapter 1: Getting Started
The beginning
The message queue
Introduction to ZeroMQ
Hello world
Handling strings in C
Checking the ZeroMQ version
Summary
Chapter 2: Introduction to Sockets
The publish-subscribe pattern
The pipeline pattern
Getting ZeroMQ context
Destroying ZeroMQ context
Cleaning up
Detecting memory leaks
Summary
Chapter 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
Summary
Chapter 4: Advanced Patterns
Extending the request-reply pattern
Writing multithreaded applications with ZeroMQ
Wrapping publisher-subscriber messages
High watermark
Reliability
Summary

What You Will Learn

  • Implement the request–reply pattern
  • Implement the pub–sub pattern
  • Work with multiple sockets
  • Work with multithreaded programs
  • Detect memory leaks
  • Route schemes
  • Learn the difference between TCP sockets and ZeroMQ sockets

In Detail

Ø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.

Authors

Read More