Skip to content

Conversation

@G8XSU
Copy link
Contributor

@G8XSU G8XSU commented Sep 14, 2023

Motivation: Such checks are best performed in backend than having client checking empty or null value. This is also in-line with more critical requirement for functioning of NotFound introduced by MonitorUpdatingPersister Design.
Even though there are some popular KVStore's which do not throw such exception on keyNotFound such as AWS-DDB (arguably the most popular one), we can still figure out that key didn't exist if value was returned as null or by similar means in other stores.

@G8XSU G8XSU requested a review from jkczyz September 14, 2023 21:27
@G8XSU
Copy link
Contributor Author

G8XSU commented Sep 15, 2023

If vss-server#22 is approved, i will also include those changes in this.

@G8XSU G8XSU requested a review from jkczyz September 18, 2023 17:08
Motivation: Such checks are best performed in backend than
having client checking empty or null value. This is also in-line
with more critical requirement for functioning of NotFound
introduced by MonitorUpdatingPersister Design.
Even though there are some popular KVStore's which do not throw
such exception on keyNotFound such as AWS-DDB (arguably the most popular one),
we can still figure out that key didn't exist if value was
returned as null or by similar means in other stores.
@G8XSU
Copy link
Contributor Author

G8XSU commented Sep 19, 2023

Fixed doc nits again, squashed changes.

@G8XSU G8XSU merged commit 5fd1e91 into lightningdevkit:main Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants