book-of-examples icon indicating copy to clipboard operation
book-of-examples copied to clipboard

topic proposal: Redis-like key value store with write-ahead log

Open stuarth opened this issue 1 year ago • 7 comments

@gvwilson had suggested this, and I'd be very interested in writing it. That said, I don't believe it'd fit in an existing platform and would likely require something like a basic-tcp. Thoughts @rtfeldman or others?

stuarth avatar Mar 13 '24 19:03 stuarth

This sounds very cool! Could the additional TCP primitives be added to basic-cli to accomplish it?

isaacvando avatar Mar 29 '24 03:03 isaacvando

What would need to be added? Current TCP features for reference.

Anton-4 avatar Mar 30 '24 14:03 Anton-4

@Anton-4 we'd need to be be able to receive connections, a la basic-webserver but a TcpStream instead of an http request

stuarth avatar Mar 30 '24 16:03 stuarth

Yeah, that seems like it would be out of scope for basic-cli. I would go with a dedicated tcp platform, I'll make a post about it on zulip to get some input.

Anton-4 avatar Mar 30 '24 18:03 Anton-4

https://roc.zulipchat.com/#narrow/stream/304641-ideas/topic/dedicated.20TCP.20platform/near/430409848

Anton-4 avatar Mar 30 '24 18:03 Anton-4

Can it be done as a pure library, i.e., skip the socket stuff and show how to build the data store? (that might help keep the size down)

gvwilson avatar Apr 18 '24 15:04 gvwilson

Maaaaybe. Let me sketch out a potential lesson plan with it @gvwilson and we'll see how it feels. my initial impression is that it's quite a bit less compelling without the network aspect

stuarth avatar Apr 23 '24 20:04 stuarth