What if I want to interact with a kv
What if I want to interact with a kv namespace within a container? Using the rest API doesn't seem to be the most optimal solution
3 Replies
Step one is that: we plan to have a container-to-worker fetch handler.
Where you can set a hostname in your container, and then handle that in Workers-land. And you could just call KV that way. - And might even just have it mount the KV API at that hostname if you specify KV.
But... not out yet.
So you'll prob have to call back to your Worker via the http front door.
That sounds like a nice feature
This is interesting, does the container to worker fetch handler incur egress fees (from container back to worker?)
And might even just have it mount the KV API at that hostname if you specify KV.This is a neat idea, but with products like D1 the rest API doesn't support sessions for example, so does depend if you expose the full feature set, or a crippled rest version.