ZeroMQ – How To Apply Different Message Patterns Book TOC – Free Books Download PDF

ZeroMQ – How To Apply Different Message Patterns Book TOC – Free Books Download PDF
Download PDF Click Here

Chapter  1: Getting Started

The beginning

The message queue

Introduction to ZeroMQ

Simplicity

Performance

The brokerless design

Hello world

The request-reply pattern

Reply

Request

Sending the message

Handling strings in C

Checking the ZeroMQ version

Summary

Chapter  2: Introduction to Sockets

The publish-subscribe pattern

Filtering out messages

The socket options

Subscription

Unsubscription

Notes on the publisher-subscriber pattern

The pipeline pattern

The divide and conquer strategy

The ZMQ_PULL socket

The ZMQ_PUSH socket

Getting ZeroMQ context

Destroying ZeroMQ context

Cleaning up

Detecting memory leaks

Introduction to V algrind

Summary

Chapter  3: Using Socket Topology

What a socket is

Types of Internet sockets

Transmission Control Protocol (TCP)

The three-way handshake protocol

TCP header

TCP lags

Properties of TCP

ZeroMQ sockets

Differences between TCP sockets and ZeroMQ sockets

Routing schemes

Unicast

Setting I/O threads and limiting the number of sockets

Working with multiple sockets

Working with multi-part messages

How to handle interruptions

Introduction to CZMQ

zctx

zstr_send

zloop

zmsg

zile

zile_mkdir

zhash

zlist

zclock

zthread

Summary

Chapter  4: Advanced Patterns

Extending the request-reply pattern

Writing multithreaded applications with ZeroMQ

Wrapping publisher-subscriber messages

High watermark

Reliability

Slow subscribers in a publish-subscribe pattern