nchan icon indicating copy to clipboard operation
nchan copied to clipboard

foundationDB backend?

Open cloudspeech opened this issue 7 years ago • 2 comments

Hi,

Apple opensourced FoundationDB earlier this year (https://www.foundationdb.org/).

Compared to Redis Cluster, it inspires much more confidence with true transactions, multi-DC distributed operations and testing methodology that dwarfs Jepsen.

Would it therefore be possible to replace Redis (Cluster) with foundationDB?

How strongly is nchan message persistence tied to Redis (e.g. Lua scripting used only for transactionality? Any docs describing what features of Redis are used for what purpose?)?

Cheers, Markus

cloudspeech avatar Nov 28 '18 14:11 cloudspeech

Nchan interacts with Redis almost entirely with Lua scripts. If these can be reproduced as atomic transactions in FoundationDB, I can make this happen.

slact avatar Dec 01 '18 23:12 slact

I took a look at the scripts and saw they're not simple.

Thus I wonder: would the option to make MemoryStore persistent be a better alternative?

We have https://github.com/meln1k/foundationdb-block-device.

Could we perhaps mmap shared memory to a foundationdb-backed file?

Just thinking aloud...

cloudspeech avatar Feb 06 '20 16:02 cloudspeech