ZeroMQ

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
Preview in Mapt

ZeroMQ

Faruk Akgul

1 customer reviews
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
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
Print + eBook
$24.99
RRP $24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$24.99
$29.99p/m after trial
RRP $14.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


ZeroMQ Book Cover
ZeroMQ
$ 14.99
$ 10.50
Raspberry Pi Zero W Wireless Projects Book Cover
Raspberry Pi Zero W Wireless Projects
$ 27.99
$ 19.60
Buy 2 for $28.00
Save $14.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781782161042
Paperback108 pages

Book Description

Ø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

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

Authors

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

Book Details

ISBN 139781782161042
Paperback108 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Mastering Object-oriented Python Book Cover
Mastering Object-oriented Python
$ 26.99
$ 18.90
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00