I'm currently using Lambda functions to access an EC2 instance in the same region as the Lambda functions (us-east-1). The EC2 instance is currently accessed via a public domain (e.g, mongodb://services.mydomain.com/etc?ssl=true) with SSL enabled. Any database requests must therefore traverse the public internet.
I'm wondering how much I can expect to reduce latency by putting my Lambdas and the EC2 instance in a VPC and then having the Lambdas access the instance purely via private DNS. I would also remove SSL from MongoDB.
Would a private VPC (and SSL removal) reduce latency notably?