Missing Message Problem Solver

As you build applications with ØMQ, you will come across this problem more than once: losing messages that you expect to receive. We have put together a diagram (Figure 2-17) that walks through the most common causes for this.

If you’re using ØMQ in a context where failures are expensive, you’ll want to plan properly. First, build prototypes that let you learn and test the different aspects of your design. Stress them until they break, so that you know exactly how strong your designs are. Second, invest in testing. This means building test frameworks, ensuring you have access to realistic setups with sufficient computer power, and taking the time or getting help to actually test seriously. Ideally, one team writes the code and a second team tries to break it. Lastly, do get your organization to contact iMatix to discuss how we can help to make sure things work properly, and can be fixed rapidly if they break.

In short, if you have not proven that an architecture works in realistic conditions, it will most likely break at the worst possible moment.

Missing message problem solver

Figure 2-17. Missing message problem solver

Get ZeroMQ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.