Hi guys. I am planning to use supabase db from my ...
# off-topic
n
Hi guys. I am planning to use supabase db from my AWS Lambda functions. I want to avoid opening too many connections to the db. What is the recommended way of connecting to the db? REST API?
m
@moein created this aws boilerplate. His example might help you with your implementation. https://github.com/moein/supabase-aws-boilerplate
m
Thanks @User for mentioning the repo 😃 @User The rest api is the correct way If you really need to use a connection they you will need an instance of a proxy that does connection pooling for you which generally is not worth it.
n
Thank you!