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
149
votes
18 answers

Android - Prevent white screen at startup

As we all know, many Android apps display a white screen very briefly before their first Activity comes into focus. This problem is observed in the following cases: Android apps that extend the global Application class and perform major…
Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
65
votes
3 answers

Android emulator - Don't save state by default

In the latest update for Android studio, the emulator has started saving snapshots of the current state of the device by default and going back to that snapshot when reopened, which is not the behavior that I want. How can I disable that and go back…
25
votes
4 answers

Is there a way to assign a Static IP to a AWS Lambda without VPC?

I am looking to assign a static IP to my Lambda which is being invoked via the API gateway. This is required because, the downstream system that i invoke from this lambda accepts web requests only from a Whitelisted IP. I am successful in achieving…
22
votes
3 answers

AWS Lambda: Identifying cold starts

Is there a clear way to identify "cold starts"? Either in runtime in the Lambda itself, or via the logs? I know that cold starts are characterized by longer runtimes, which I can actually see, but I'm looking for a clear cut way. I'm using Node.js…
Bachman
  • 701
  • 1
  • 6
  • 25
19
votes
5 answers

How to keep desired amount of AWS Lambda function containers warm

On my project there is REST API which implemented on AWS API Gateway and AWS Lambda. As AWS Lambda functions are serverless and stateless while we make a call to it, AWS starts a container with code of the Lambda function which process our call.…
Hleb
  • 7,037
  • 12
  • 58
  • 117
14
votes
2 answers

Lightfm: handling user and item cold-start

I remember one of the strong points of lightfm is that the model does not suffer from cold start problem, both user and item cold start: lightfm original paper However, I still don't understand how to use lightfm to address the cold start problem.…
bohr
  • 631
  • 2
  • 9
  • 29
12
votes
1 answer

AWS SAM Local Lambda invocations slow

I'm trying to test my lambda functions locally using the SAM local CLI. I start the API with this command: sam local start-api --template ./sam-template.yml --host 0.0.0.0 --port 4001 However, every time I call the API the lambda invocation takes a…
alayor
  • 4,537
  • 6
  • 27
  • 47
12
votes
2 answers

Would this be an effective way to improve cold-start delays in .NET?

The following code (by Vitaliy Liptchinsky) goes through all types in an assembly and calls PrepareMethod on all methods. Would this improve cold-start delays? Thread jitter = new Thread(() => { foreach (var type in…
Craig Johnston
  • 7,467
  • 16
  • 40
  • 47
7
votes
1 answer

Firebase Cloud Functions min-instances setting seems to be ignored

Firebase has announced in September 2021 that it is possible now to configure its cloud function autoscaling in a way, so that a certain number of instances will always be running…
7
votes
2 answers

Android: how to determine cold start

When app being launched, how to determine it is cold start or not? By cold start, I mean the app launched from the very beginning, instead of just resumed from a previous state. :Edit: elaborate my question: I'm trying to find the app's launch mode:…
Jason Yu
  • 73
  • 1
  • 1
  • 5
5
votes
1 answer

Optimizing firebase functions cold start with expressjs

I was trying to figure out how I could optimize cold start times for my firebase functions. After reading this article, I wanted to try it out but I realized that the article specifically targets the base usage of the http onRequest function and…
5
votes
4 answers

why my .net application horribly slow to start after the machine is rebooted?

Does anyone know why it is so horribly slow to start a .net application after the machine is rebooted(i.e cold start) ? After researching in google I found some clues for speeding it up i.e. Merging assemblies Setting resource language NGEN GAC…
SharpUrBrain
  • 3,180
  • 5
  • 38
  • 56
5
votes
6 answers

How do I adapt my recommendation engine to cold starts?

I am curious what are the methods / approaches to overcome the "cold start" problem where when a new user or an item enters the system, due to lack of info about this new entity, making recommendation is a problem. I can think of doing some…
Hellnar
  • 62,315
  • 79
  • 204
  • 279
4
votes
0 answers

Why doesn't the ALB health check take care of cold starts on Lambdas?

I have an ALB that is performing a health check every 30 seconds on a Target Group (Lambda endpoint in this case). Despite this, any time I query my API for the first time in several minutes or longer it goes through a cold start. What could be the…
4
votes
1 answer

How to keep lambda warm using zappa python

I have an API function in python and deployed it on aws lambda using zappa. When I am hitting my API after 15 minutes time its taking atleast 5 to 10 seconds to respond (which is too long for my API) for first request. I have came to know about cold…
1
2 3 4 5 6 7 8