Less frequently used endpoints are more exposed to...
# help
t
Less frequently used endpoints are more exposed to cold starts when not using a monolith
r
True but it’s worth asking oneself if this is really an issue for one’s use case - some metrics here https://mikhail.io/serverless/coldstarts/aws/languages/
t
Its not just pure coldstart it's also establishing a database connection pool. It's not a complete deal breaker but I am really focused on building a snappy application and it hurts when a user perceives lag
r
Could RDS Proxy help you there?
(Assuming you’re using RDS 😄 )
t
Don't think it'll change the fact my application has to make connections to something
r
Yes, but the proxy will handle the pooling of connections, you’re just requesting the allocation of a pre-existing connection, rather instantiating a connection (or a connection pool) within your lambda
I’m not certain this would improve things, just meant it’s worth a bit of investigation
p
this one is the best article I know on cold starts when building big lambda functions (= lots of dependencies)