initialize supabase client once (cached) or multiple times?

Lets say on the server, i have an API handler that needs to return user data using supabase. Should i call createClient during each request? Or should I only call it once and then cache the object for further use in subsequent requests? I guess this is meant for non-serverless setups where each request is handled on same process.
Was this page helpful?