Skip to content

Latest commit

 

History

History
 
 

examples

Examples

Request-Response Pattern (REQ-REP)

Stream

Exclusive-Pair Pattern (PAIR)

Future

  • echo-pair.rs - Sending and receiving simple messages with futures.

    A PAIR of sockets is created. The sender socket sends a message, and the receiver gets it.

  • echo-push-pull-multipart - Sending and receiving multi-part messages with futures.

    This time we use PUSH and PULL sockets to move multi-part messages.

    Remember that ZMQ will either send all parts or none at all. Save goes for receiving.

Pipeline Pattern (PUSH-PULL)

Future

Publish/Subscribe (PUB-SUB)

Transport

  • echo-pub-sub - Manual use of tokio tranports with Sink and Stream

    This time, we use PUB-SUB sockets to send and receive a message.