Bill MacKenty

  Home     Computing     Teaching     Bushcraft     Games     Writing     About  

Redis, message queues and the Producer-Consumer Model

Posted in Blogging Personal Text-based gaming on 23 - March 2025 at 03:15 PM (2 months ago). 172 views.

Building a space system for pennmush is way more fun than it should be, and I'm ignoring other work I should be doing. I'm also learning about redis....

I'm in early days of architecting a 3D space system for pennmush. The design documents are here and I'm greatly enjoying simply hacking about.

I've never used redis before, so I'm learning quite a bit about the server, the diagnostic and performance tools and the "gotcha's". The basic idea is pennmush (a server for text-based games) sends a message to redis message queue which is then read by the space engine (written in rust) which then sends a message back to pennmush via redis. The space engine will update position of space objects, manage combat, trading, etc... Pennmush will manage interface and out-of-space story. Really fun stuff