Thursday, May 12, 2016

How to integrate a Ruby script into ZeroMQ

Hey there!

I'm going to walk you through the steps of integrating a basic Ruby script into a microservice architecture.

Microservices are typically managed via REST HTTP calls or a message queue.

In this example, I'll be using ZeroMQ a speedy message queue.

Be sure to understand what microservices are before we get too far into it!

First, let's make an example Ruby script to integrate.

This is an hello world example taken from the ZeroMQ documentation.

Here's the corresponding server side response.

As you can see, there's little overhead that you must include for a functioning message queue operating a simple request response pattern.

Give it a try, and let me know your thoughts!