I am using the binding API. I would also
I am using the binding API. I would also like to add that it's not only latency. For me in some cases the values are never written.
4 Replies
Ah, thanks for letting me know, I'll pass that on. Are there any other details (anything unusual, the time at which you started noticing, etc) you can provide? It might expedite identifying a problem
I'm not such an experienced developer therefore I am not sure what the best practices for error handling are when it comes to writing to the KV.
I did try to implement the try catch as in the example from the docs, but it seems like there is no error, and my code just continues regardless of if the write was successful or not.
Now that I think about it, I am not writing a new value but updating an old one in most cases
Therefore
value === null
from the example above isn't really a good indicator of if the write didn't workAh yeah, the example shown in the doc is quite minimal (I suppose it's only trying to explain the overall gist)