Hey, in a Next.js app running on Cloudflare Workers, what are the trade-offs between accessing a KV

Hey, in a Next.js app running on Cloudflare Workers, what are the trade-offs between accessing a KV namespace directly using getRequestContext().env.MY_KV versus accessing it through a fetch request to the Cloudflare API, considering mostly performance? This api : https://developers.cloudflare.com/api/operations/workers-kv-namespace-read-the-metadata-for-a-key
Interact with Cloudflare's products and services via the Cloudflare API
Was this page helpful?