Redis Backplane for Hubots
7 days ago
- #Redis
- #Chatbots
- #Hubot
- hubot-redis-backplane uses Redis Streams to create a distributed backplane for Hubot.
- It functions as a Hubot Adapter, connecting to Redis and processing messages from an 'inbox' stream.
- Messages can be manually added via Redis CLI, with responses sent to an 'outbox' stream.
- Supports multiple Consumer Groups, typically one per codebase with unique consumer IDs.
- Hubot instances can connect to chat platforms (e.g., Slack, Discord) and forward messages to Redis streams.
- Setup involves installing the package and adding 'hubot-redis-backplane/inbox.mjs' to external-scripts.json.
- Scales horizontally by distributing Hubot Consumers across processes or servers.
- Requires a Redis server and specific environment variables for configuration.
- Example setup includes defining Redis URLs, stream names, and consumer group details.
- Hubot name must be set either in the start script or via command line for chat interactions.