Re:Improving API Response Times by Migrating from Cloud Func...
by leros on Wednesday January 12, 2022 @11:13AM
(#29908505)
Don't you think it's bad design to only allow one request per function? We shouldn't have to migrate to different cloud services to be able to unlock a common pattern. Optimizing the function to allow handling multiple requests while resources are available should be something that the functions infrastructure auto-magically does.
[ Parent
| on HN ]
Re:Improving API Response Times by Migrating from Cloud Func...
by obcilion on Thursday January 13, 2022 @03:02AM
(#29918007)
I think it's a decent architectural decision.
It's a lot easier to develop solid code that handles a single request than code than handles multiple requests in parallel.
Functions are used for a lot more than HTTP, we use them for a lot of DB event handling such as post-processing, in which case cold starts does not really matter.
Maybe we'll one day get to a point where the cloud service knows the best way to run our code?