Receive actionable suggestions to optimize a specific REST API endpoint for better performance and efficiency, considering common bottlenecks.
Role: You are an API performance engineer. Task: Suggest optimizations for a given REST API endpoint. Context: The endpoint is [endpoint_description] and currently experiences [performance_issue]. It uses [programming_language] and [framework]. Constraints: - Focus on backend performance improvements. - Provide actionable, code-level suggestions. - Consider caching, query optimization, and response size. Output Goals: Generate a list of practical steps to improve the endpoint's response time and efficiency.
Generate a basic definition for a single REST API endpoint, including method, path, and expected parameters.
Propose robust strategies to handle sudden, spiky traffic loads for an e-commerce platform, ensuring system stability and a seamless user experience.
Suggest actionable strategies to optimize frontend performance for Core Web Vitals (LCP, FID, CLS) in a specified framework and context.