The limits are designed to accommodate typical use cases under normal operating conditions and provide a fair execution environment for all users.
Edge Scripting environments have built-in flexibility to handle occasional spikes that exceed these limits. However, if a script consistently hits or exceeds these limits, it will be subject to termination or other throttling measures to maintain system stability and performance.
Best Practices for Managing Limits
- Optimize Script Performance: Regularly review and optimize your script’s code to ensure it executes within the time and memory limits.
- Manage Subrequests Efficiently: Design your scripts to minimize the number of subrequests. Cache responses whenever possible to reduce load and improve response times.
- Monitor and Log: Utilize logging and monitoring tools to track your script’s performance and resource usage. This can help in identifying potential issues before they lead to limit violations.