Questions tagged [cold-start]

In general, a cold start is the start-up of a recently unused ("cold") application, typically incurring an above average start-up time. In contrast, a recently used application is considered "warm."

107 questions
4
votes
1 answer

How to force a reload for lambda function's global variables?

I'm planning to move my lambda function configuration from environment variables to DynamoDb since my lambda functions share configurations and also I don't want to redeploy my lambda functions each time a configuration changes (my config changes…
Mehran
  • 15,593
  • 27
  • 122
  • 221
4
votes
1 answer

How to reduce the time taken to launch the app in cold start

I'm trying to optimize my app. We have launch Interstitial Ad in our app. When there is a Ad, app takes around 7-8 seconds to start the home screen. When Ad is not available, it takes 3 seconds to launch the home screen. Problem is with the cold…
3
votes
0 answers

Delay between app process start and Application onCreate

I'm working on an application with large codebase. The problem is that when I launch the app from cold start state, It takes a lot of time to show the first screen of the app. Based on here I checked the TTID for the app and it was terrifying:…
Saman Sattari
  • 3,322
  • 6
  • 30
  • 46
3
votes
2 answers

Google Cloud Function with minimum instances: cold start after every deployment?

To minimize cold starts, I've set a minimum instance for my Google Cloud Function. I actually do it with the firebase admin SDK like this: functions.runWith({ minInstances: 1 }) ...but I can see it confirmed in Google Cloud Console: I'm noticing…
3
votes
4 answers

How to improve performance of initial calls to AWS services from an AWS Lambda (Java)?

I recently tried to analyze some performance issues on a service hosted in AWS Lambda. Breaking down the issue, I realized that it was only on the first calls on each container. When isolating the issue, I found myself creating a new test project to…
3
votes
2 answers

Get overview of cold starts in AWS Lambda

Is it possible to get an overview of AWS Lambda cold starts, i.e. how many there were and how long they took? I know there are solutions for cold starts, and I know I could log something on a cold start, but that is not what I need. I want an…
Peter
  • 13,733
  • 11
  • 75
  • 122
3
votes
0 answers

Python script to warm AWS lambda for cold start problem

I followed the lambda-warmer https://github.com/jeremydaly/lambda-warmer for NodeJS to create a similar script for python: Warm the lambda function every a few minutes Warm more than one lambda functions if I set up the concurrency parameters Here…
simonhb1990
  • 143
  • 3
  • 11
3
votes
1 answer

How to Measure Azure Function Cold Start Time

I've been doing research lately around Azure Function cold start time that can occur with a consumption-based plan. I understand the concepts, but how do I actually measure the cold start time of my Azure Functions? I can't seem to find any good…
ElliotSchmelliot
  • 7,322
  • 4
  • 41
  • 64
3
votes
1 answer

Azure Functions language and runtime version choice to minimize cold-start time

I'm starting a new project that has strict requirements that the cold-start time has to be minimal. We are talking about sub-second response-time. I haven't found any comparison of the cold-start times by language and runtime version. Does anyone…
2
votes
1 answer

Do serverless functions install modules every time they are called?

Do server-less functions install modules every time they are called? I am trying to understand how serverless functions really work. I understand that serverfull is basically a computer that executes code and that the server code runs on it 24/7…
2
votes
2 answers

AWS Lambda | lambda cold start

I have a lambda that keep experiencing cold start. I configured the lambda to have 5 provisioned concurrency, as it was suggested as a possible solution, but the lambda still have cold starts. What might be a possible explanation? Maybe 5…
2
votes
2 answers

How dependencies affect Firebase Functions cold start?

Background: I have about 20 Firebase Cloud Functions and they are stored under the default reporoot/functions/src/ folder, which was created when I first init the Firebase project. Each Cloud Function could have its own unique dependencies and all…
2
votes
2 answers

Measuring cold start time in google cloud metrics explorer

We are working on some optimizations to decrease cold start time in our firebase cloud functions. As a result of this we'd like to compare the execution times before and after these changes were implemented. Is there a reliable way to measure cold…
2
votes
1 answer

How could I reduce the long cold start time when doing SSR from Lambda

I have an SSR server for React.JS app made with CRA, ConnectedRouter, Redux and Saga. I am trying to host this server under AWS Lambda using the below code: const serverlessExpress = require('@vendia/serverless-express'); const app =…
2
votes
2 answers

Does the size of the node_modules folder matters during cold starts for cloud functions?

I know that you should only import the required modules inside the index file's global scope to reduce the time of the cold starts. But I haven't yet found out that if the size of the node_modules folder (or the length of the dependencies property…