Home / Companies / Lumigo / Blog / September 2020

September 2020 Summaries

2 posts from Lumigo

Filter
Month: Year:
Post Summaries Back to Blog
Cold starts in AWS Lambda can significantly impact performance, especially for real-time applications. Cold starts occur when a new container is spun up to run the function, which can take longer than expected due to initialization times. The size of the deployment artifact and dependencies can affect cold start duration, with larger artifacts leading to longer latencies. Using Ahead-Of-Time (AOT) compilation can reduce cold start times by compiling code into native binaries before deployment. Keeping Lambda functions warm by periodically invoking them can also help prevent cold starts. Additionally, reducing the number of packages used in the application and using languages like Node.js, Python, or Golang can optimize cold start durations. Monitoring applications to identify how cold starts are affecting performance is crucial to address these issues. Tools like Lumigo can help developers find, fix, and prevent cold starts, providing a serverless monitoring platform with features such as visual debugging, distributed tracing, and smart alerts. By applying these strategies, developers can minimize the impact of cold starts on their applications' performance and latency.
Sep 20, 2020 2,342 words in the original blog post.
AWS Lambda provides automatic scaling of worker instances based on traffic, and by default, functions are deployed to three Availability Zones. API Gateway handles API-level concurrency, simplifying code management. However, understanding the latency in each layer is crucial for identifying performance issues. Telemetry data from AWS services such as CloudWatch and X-Ray can provide insights into latency. DynamoDB's SuccessfulRequestLatency metric reports processing time, but doesn't account for retries or exponential delays. Tracking caller-side latencies using Embedded Metric Format (EMF) helps identify potential causes of slow Lambda response times. Tools like Lumigo offer a more polished developer experience, providing features such as transaction tracing and services latency widgets. These tools help manage complex serverless applications by automating the process of identifying performance issues, debugging slow response times, and optimizing 3rd-party service integrations.
Sep 03, 2020 2,305 words in the original blog post.