I want to connect to dgraph running on ec2, from lambda functions. Lambda functions can scale to up to 1000 functions in parallel (scaling lambda). Since connection pooling is not possible in lambda, this can lead to 1000 connections to dgraph at the same time.
Is creating a new db connection expensive in dgraph? Will using http api (using dgraph-js-http) solve the issue, assuming the api takes care of creating connection pools behind the api?