uncleDecart / nkv

Share your state between services using persisted key value storage with notification option
1 stars 0 forks source link

Restructure binaries #1

Closed deitch closed 1 month ago

deitch commented 1 month ago

Restructures so there is a client and a server binary, and a library for client usage.

deitch commented 1 month ago

OK, rebased. Take a look at the structure @uncleDecart.

You can do:

deitch commented 1 month ago

If you like this, once this is in, we can look at implementing the server side.

uncleDecart commented 1 month ago

Avi, I love it! Do I get it right, that server won't run right now, I mean I can run --bin nkv-server but it won't run per se, cause there's no loop there. Also what's nkv target is for?

I think this is good and we should merge it. Next step would be to remove NATS and use either sockets or zmq. I also think that server would be beneficial in case of clustered EVE, we could synchronise between EVE instances! :D In a reliable way it'll look like synchronising between servers, why not single server instance ? Well that way it's more fault-tolerant!

I think we can put some issues to track things here. I'll do that with switching to zmq or sockets

deitch commented 1 month ago

Correct, it fails. If you start it, it tries to connect to nats server and errors out. We can fix that next stage.

nkv target

The library. Your original example had using it as a client library. That probably will need fixing at some point, but I figure it is good enough for now.

I think this is good and we should merge it

Huzzah!

Next step would be to remove NATS and use either sockets or zmq. I also think that server would be beneficial in case of clustered EVE, we could synchronise between EVE instances! :D In a reliable way it'll look like synchronising between servers, why not single server instance ? Well that way it's more fault-tolerant!

Let's start with single-node and get it working. Then we can think about networking and clustering.

We good to merge?

uncleDecart commented 1 month ago

Created milestone for v.0itworks and gonna look at zmq rn

Edit: see #2