user12007608
user12007608

Reputation:

Can Google Cloud App Engine HTTP request have multiple 'responses'?

I want to deploy a program that might exceed the 24 hours response limit.

My initial solution is Cloud Function. But Cloud function has an execution timeout of 9 mins.

Then I found App Engine doesn't have execution timeout but has a 24 hours response limit.

Can Google Cloud App Engine HTTP request have multiple 'responses'? so I can keep the program running longer. Can the code be executed after the program sends a response?

Upvotes: 0

Views: 267

Answers (1)

Samuel Romero
Samuel Romero

Reputation: 1263

Let me know if I am understanding well your question but I think this could be very helpful for you.

App Engine runs multiple instances of your application, and each instance has its own web server for handling requests. Any request can be routed to any instance and any instance can handle multiple request concurrently. You are able to adjust the number of instances in your the app.yaml. At this link you can find more details about it.

On the other hand, App engine standard with basic scaling allows you up 24 hours for HTTP request and task queue tasks. So, I think that you can use Cloud Tasks to execute the code as you mentioned. As you can see here, "Task queues let applications perform work, called tasks, asynchronously outside of a user request". The Task Queue service is designed for asynchronous work.

Upvotes: 0

Related Questions