uncleDecart / nkv

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

Create traits and create builders for nkv to pass on different drivers #9

Closed uncleDecart closed 1 month ago

uncleDecart commented 2 months ago

Could be strategy, could be builder goal is to have flexible components, server with TCP; server with Unix Domain socket; Persist Value is not stored on a disk, rather send to network, etc. etc. Including flexibility of blocks by design would help people to modify this thing to their particular case, goal of nkv to be generic

uncleDecart commented 1 month ago

For Notifier we should abstract from stream to traits implementing write_all and flush (so that we can provide builders with UnixDomainSocket or Stdout, etc.) basically abstract it to a writer trait

That way we can easily test subscribe/unsubscribe in nkv files

uncleDecart commented 1 month ago

Since #19 is merged I'm closing this