Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6758553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:48:28+00:00 2026-05-26T13:48:28+00:00

Say, I have two web apps: The first one just waits for 10 seconds

  • 0

Say, I have two web apps:

The first one just waits for 10 seconds and exits (like, time.sleep(10)).

The second one is checking the time in the loop, working extensively and when it sees that 10 second have passed it quits.

Will both my apps be billed for the same amount of CPU time or the second will be much more expensive?

In other words – does “CPU time” in GAE means the actual amount of work of the instance during request or it represents the total time of instance being in memory from launch to exit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:48:28+00:00Added an answer on May 26, 2026 at 1:48 pm

    Note that App Engine is moving away from CPU-hour billing towards instance-hour billing. 10 seconds of sleep and 10 seconds of activity incur the same cost in instance hours.

    If your second app is “working extensively”, you’re probably using APIs and consuming additional forms of quota, making the second request more expensive.

    If you’re using the 2.7 runtime, you can take advantage of threading. time.sleep releases the GIL, so your instance can serve other threads while your first thread is sleeping.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have two separate web-apps, say 'retailUI' and 'bulkUI'. These two are basically two
Say I have two web servers, one local development and one live. Under SVN
I have a web application containing two web services, let's say PublicHello.asmx and RestrictedHello.asmx
Background information Let's say I have two database servers, both SQL Server 2008. One
I'm trying to get my head around this one: Say you have two models
Let's say you have a project that will involve two web applications (that will
First, a little background. I have two ASP.NET web applications that use SQLServer session
i have two web projects authenticating the user using configuration. let say web1,web2 once
Let's say I have two assemblies: BusinessLogic and Web. BusinessLogic has an application setting
I have two separate web applications, both in the same intranet. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.