Different Functions for Different Endpoints

Setting up Netlify Functions to proxy API calls - most of the tuts I find show separate Functions for each endpoint (one for create, one for read, etc.). Is this really the way to do things? Seems like there should be an easier way.

Since the lambda functions only have a 10 second runtime limit, splitting up your functions into specific tasks makes is less likely for the function to timeout since each function’s function is simpler.

1 Like