The hidden cost of serverless function execution time
I noticed my hosting bill spiked this month. It turns out a simple serverless function I use to fetch a third-party API was waiting 8 seconds for that API to respond. Since serverless bills by gigabyte-seconds of execution time, that slow API is costing me actual money. Is there a way to aggressively set a timeout so the function dies after 2 seconds instead?