RabbitMQ and PowerShell

Have you ever needed to communicate between scripts, perhaps running on different servers and in different languages?  Did you use a non-standard "messaging" solution like the file system or a SQL database? Did you try to avoid this and squeeze everything into a monolithic, delicate script?

RabbitMQ is a solid messaging solution that happens to have a handy REST API and .NET client, which means we can use PowerShell!

Wrote a quick hit on setting up a simple RabbitMQ deployment and using PowerShell to manage the solution and send and receive messages. Thanks go to Mariusz Wojcik and Chris Duck for writing and sharing the PowerShell modules that were tweaked for this article.

Here's an example showing two independent PowerShell sessions talking to each other over a RabbitMQ server:


Is this something you could use in your solutions? Hit the link and check it out - pull requests and input would be welcome.


About the Author

Warren Frame

Systems Engineer with a penchant for PowerShell, science, cooking, information security, family, cookies, and the Oxford comma.