In a previous post I showed how to drain a queue but during some work I needed to publish some test messages so I added a new mode to publish as well. In rabbitmq you don’t publish to a queue though but to an exchange which will route the message to the appropriate queue. The new publish mode has been added to the drainer which is a bit odd however as well as accepting a cli option to switch mode a new cli script qfiller has been added to compliment qdrainer which is added to the path as part in npm -g install.
It is really easy to create a new Jekyll blog post - create a new markdown file with a kebab file name consisting of the date and post title plus the metadata at the top e.g. 2020-05-02-generating-a-jekyll-post-with-yeoman.md
---
layout: post
title: Generating a Jekyll post with Yeoman
comments: false
tags: jekyll
---
One thing that I find that we always need to do when developing with message queues is to occassionally remove, purge or drain all the messages from a queue. More often than not this is after some testing and the messages are not not being acked and removed in the usual way but it might be that we just want to test publishing to a queue and need to verify that the messages are sent.
It turns out I have lost the email notifications my Synology NAS had been sending
me - specifically the monthly disk checks. The issue seems to be due to the way
Google changed Gmail SMTP authentication i.e. my NAS uses Gmail to send the email
and at some point this changed to support 2 factor authentication and stopped working.