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
0
votes
0 answers

Lambda function has high invocation time if not being frequently invoked

I wonder if someone help me to understand Lambda Xray tracing please? I have a Lambda function with cold start as below. As you can see, theres 699ms cold start. But what I don't understand why it also has high invocation duration. If I repeatedly…
0
votes
0 answers

aws lambda and api gateway timeout only in lambda

I uploaded some functional codes to lambda. Before I upload my code, I checked that my code works pretty good in my local server runs on Django Rest Framework. and on collab environment, It also works. But in lambda, some cases that need more…
이원석
  • 13
  • 4
0
votes
0 answers

What is the correct way to handle cross sectional features in lightFM recommender model

UPDATED QUESTION I am trying to build a hybrid recommender system in python based on the lightFM library. The input data contains information on users, actions (things I am trying to recommend) and binary ratings. I also have user features that are…
bmasri
  • 354
  • 1
  • 11
0
votes
0 answers

AWS Lambda and Layer: how to increase the execution speed?

I'm using an application that uses lambda and API Gateway. Lambda uses a Layer. The app takes a while to launch the first time. This is a cold start problem. How can I increase the execution speed of my application in order to reduce the delay of…
jonathan
  • 105
  • 7
0
votes
0 answers

Firebase Cloud Functions still has cold/slow starts after configuring min instances + init()

I've been facing an annoying issue when calling my firebase cloud functions. They seem to go through cold starts pretty frequently. For context, my stack is the following: Mobile: Flutter Backend: Cloud Functions I've configured every function to…
0
votes
0 answers

What happens with Azure Service Bus when the triggering function is spun down?

We have a regular problem every couple days where some messages we sent to ServiceBus suddenly and rapidly go to the DLQ. We have it configured to try 10 times and suddenly messages across several queues in the same Function Solution (.Net 6) all…
0
votes
1 answer

Android app slow to start (6s to 10s in cold start)

What really kills me, I did changes and changes over again(from layouts ...) to fight against this, what's really strange my app does not do heavy stuff(minimum functionality). I use 7 fragments, and FragmentContainerView , the default fragment…
Yuba Sin
  • 1
  • 2
0
votes
1 answer

How could I fully restart a lambda function runtime without having to make a new deployment?

Currently I'm working on a database migration. We use cloudformation to handle our resources and we have some lambda functions which create direct connections to our current database. We use secrets manager to handle the database credentials…
KenshinApa
  • 13
  • 1
  • 5
0
votes
1 answer

Spring Boot and Mongo DB cold start issue

I have a Spring Boot application with Mongo DB, which is deployed on Azure. Now if I do not call the API for a long time, maybe some hours and call it my first call always fails with the exception attached. But then it starts to work fine. It seems…
user18341619
0
votes
1 answer

Are Azure Functions cold starts for each client?

Azure Functions that run on consumption plan have a cold start when the function has not been run for a while, I think its after 20 minutes. Its an extra latency for the client for about 10-20 seconds. I wonder if this cold start is per each…
Danie
  • 429
  • 6
  • 16
0
votes
0 answers

Auto provisioned Lambda taking Initialization Time

I have a Lambda function inside a VPC to access ElasticSearch Endpoints. The Lambda has been auto provisioned (Provisioned Concurrency). The issue is, whenever the Lambda function executes, there is an Initialization time. I have set up other…
0
votes
2 answers

Sharing "init phase" among many lambda functions

In our stack, we use many separated lambda functions (each function as an HTTP or WS handler), and each of those functions imports utils that are quite large in terms of size. Those required utils also handle the connection to external entities…
0
votes
1 answer

Android cold app start: How to optimise time to Application.onCreate?

My current app takes for a cold start ~8 seconds and I want to optimize that. For that reason I added a log entry in my Application onCreate (Application, not Activity) override fun onCreate() { Log.d("myTag", "Calling Application…
maximilian
  • 35
  • 7
0
votes
1 answer

Get timestamp before cloud function cold start

I use Google Firebase Cloud Function. Just to be clear, I'm ok with cold start and I don't want to reduce the start time. I want to get a timestamp corresponding to when the request is received before the function start. The final goal is to…
rm4
  • 711
  • 4
  • 15
0
votes
1 answer

Multiple packages on Firebase cloud Function project

Is there a way to have a Firebase/Google cloud function with this kind of architecture with cli command (firebase deploy --only functions) ? Expected: . └── functions/ ├── function_using_axios/ │ ├── node_modules/ │ ├── package.json …