Message-Oriented Pattern for Elastic Design
In this section Iâll introduce the Message-Oriented Pattern for Elastic Design (MOPED), a software engineering pattern for ÃMQ architectures. It was either âMOPEDâ or âBIKE,â the Backronym-Induced Kinetic Effect. Thatâs short for âBICICLE,â the Backronym-Inflated See if I Care Less Effect. In life, one learns to go with the least embarrassing choice.
If youâve been reading the book carefully, youâll have seen MOPED in action already. The development of the Majordomo pattern in Chapter 4 is a near-perfect case. But cute names are worth a thousand words.
The goal of MOPED is to define a process by which we can take a rough use case for a new distributed application, and go from âHello Worldâ to fully working prototype in any language in under a week.
Using MOPED, you grow, more than build, a working ÃMQ architecture from the ground up with minimal risk of failure. By focusing on the contracts rather than the implementations, you avoid the risk of premature optimization. By driving the design process through ultra-short test-based cycles, you can be more certain that what you have works before you add more.
We can turn this into five real steps:
Internalize the ÃMQ semantics.
Draw a rough architecture.
Decide on the contracts.
Make a minimal end-to-end solution.
Solve one problem and repeat.
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.