I'm thinking of writing something similar in C# since it's relatively simple. I'll just create a local queue, which shouldn’t be an issue given the language's performance. Have you exposed your thing over wss:// or is it kept internal?
I just left the POST and removed all of the WSS code, since I only need to post from the workers. If you are interested, I can invite you to the repo (I kept it private so I don’t expose account id)