The challenges with serverless architecture are as follows:
- Vendor-based limitation: Various vendors can have limitations imposed when they provide functions as a service. For example, with Amazon, the maximum duration a server can execute for is five minutes. So, if you need to create a function that is doing heavy processing and can take more time than the limit imposed, Lambda functions may not be for you.
- Managing distributed architecture: Maintaining a large number of functions can get tricky. You need to keep a track of all the implemented functions and make sure an upgrade in one function API does not break other calling functions.