3 ms·
Connecting a DB might be a bad idea only currently, until cloud providers implement some sort of RPC SQL layer. We are successfully running Lambda functions co
by Agebor 8y ago
Connecting a DB might be a bad idea only currently, until cloud providers implement some sort of RPC SQL layer.
We are successfully running Lambda functions connecting to AWS Aurora MySQL using IAM authentication. It has some quirks but after figuring it out, works well.
Just run a connection pool with only 1 connection and expect some additional latency on cold start, though it's negligible compared to loading libraries, runtime, etc.
- zbentley 8y ago> implement some sort of RPC SQL layer > Just run a connection pool You just described the high-level architecture of what I believe is the majority of web application servers and the applications they run: an RPC layer over database accesses that run on persistent connections.