sologenic / sologenic-xrpl-stream-js

Persistent transaction handling for the XRP Ledger
MIT License
18 stars 11 forks source link

Make Redis optional (Bounty: 550 SOLO) #1

Closed bashash closed 4 years ago

bashash commented 4 years ago

Summary: In the XRPL Stream Redis is currently mandatory. We use a custom transaction management on Redis called Sologenic Transaction Management & Queue (stmxq) https://github.com/sologenic/sologenic-xrpl-stream-js/blob/master/src/lib/stxmq.ts

Usecase Since this library is designed to be used by many services, it should be optional to use Redis in the ecosystem. Managing a Redis server is sometimes expensive and resource-consuming for some users. Also, some clients may just want to use this system and don't worry about recovery and failovers.

bashash commented 4 years ago

This would require to clone stxmq.ts and make it independent from Redis (e.g map, array, etc) and allow the library just to call the correct mq based on what configuration for Redis is provided. If non-existent, then use the in-memory, if it exists then use Redis.

okanaganrusty commented 4 years ago

I'm working on this now.

bashash commented 4 years ago

merged 3a6a3c9