Sunday, May 3, 2009

The per page-view cost of hosting a resonably efficient GAE/J application

The new CPU and bandwidth free quota levels that will be put in place on May 25, 2009 will be:
  • Bandwidth: 1 GB of data transferred in per day, and 1 GB out per day.
  • CPU time: 6.5 hours of CPU time per day (measured in 1.2 GHz Intel x86 CPU time)
According to calculations done by the Google App Engine team the new free quota levels will serve around 5M page-views per month for a "reasonably efficient application".

What's the per page-view assumptions behind these calculations?

Let's start with the bandwidth:

It is safe to assume that the amount of consumed outgoing bandwidth is much larger than the amount of incoming bandwidth consumed (average size of HTTP-request < average size of HTTP-response). 1 GB per day should serve at least 5M page-views per month. Assuming 30 days per month:
  • (30 days * 1 073 741 824 bytes/day) / 5 000 000 page-views = 6442 bytes of outgoing bandwidth per page-view
And the CPU time:

6.5 CPU-hours per day should be enough to serve at least 5M page-views per month. Again assuming 30 days per month:th:
  • (30 days * 6.5 CPU-hours/day * 3600 CPU-seconds/CPU-hour) / 5 000 000 page-views = 0.1404 CPU-seconds per page-view
When doing back-of-the-envelope calculations for estimating the resource usage for a "normal" GAE/J application, use the following numbers:
  • Outgoing bandwidth: 6442 bytes per page-view
  • CPU time: 0.1404 CPU-seconds per page-view
Using the same assumptions - what's the per page-view cost of hosting an application using Google App Engine?

The current per unit price of billable Google App Engine resources:
  • Outgoing bandwidth: 0.12 USD per gigabyte
  • Incoming bandwidth: 0.10 USD per gigabyte
  • CPU time: 0.10 USD per CPU-hour
    (measured in 1.2 GHz Intel x86 CPU time)
  • Stored data: 0.15 USD per GB and month
  • E-mail recipients: 0.0001 USD per recipient
The per page-view cost can be estimated as:
  • Bandwidth cost for 6442 bytes: 6442 bytes * 0.12 USD per GB / 1073741824 bytes per GB = 0.0000007199 USD per page-view
  • CPU cost for 0.1404 CPU-seconds: 0.1404 CPU-seconds * 0.10 USD per CPU-hour / 3600 CPU-seconds per CPU-hour = 0.0000039000 USD per page-view
Which gives a total of 0.0000046199 USD per page-view.

So in summary - the per page-view cost of hosting a resonably efficient GAE/J application is roughly 0.0000046199 USD per page-view. This is equivalent to 4.62 USD per million page-views.


  1. Great series of posts, really enjoying this blog.

    Could you investigate gzip compression? There is a trade-off between bandwidth and cpu usage when gzip compression is used for dynamic pages.

    Paul Buchheit (GMail creator) says that this trade-off favours using cpu for gzip over bandwidth:

    However, for Appengine/Python, although static resources like css and javascript are automatically served compressed, dynamic pages aren't, and you cannot do it manually as Content-Encoding response headers are stripped by the server.

    The Appengine/J docs don't make the distinction between compressing dynamic/static content, but they imply that dynamic content is compressed.

    Is this the case? Does Appengine/J compress dynamic content and how does that change the budget for cpu/bandwidth allowance and price per request?

  2. 140ms (1.2GHZ CPU) per request.

    But what can you do with 140cpums? How many cpums for a simple servlet which returns 6,400 bytes. How many cpums for a single datastore call which finds a single entity?

    If the datastore is busy then your process spin/waits and you are charged for the cpu time.

    What I am wondering is, what can a 'reasonably efficient' web app achieve in 140cpu-ms, and is that reasonable?

  3. A good informative post that you have shared and thankful your work for sharing the information. Got some appealing information and would like to give it a try. Applaud your work and keep sharing your information.Really impressed! Everything is very open and very clear clarification of issues.
    Call Option || Option Tips || Stock Option Tips || Options || Nifty Options

  4. Wow, awesome blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is great, let alone the content!
    Ncdex Tips || Indian Stock Market || Bullion Tips || Nifty Future Tips || Nifty Option Tips || Future Tips

  5. Thank you for the update. I will use for sure your resources in the near future.
    Commodity tips
    Stock Market
    Share Market
    Nse Tips
    Bse Tips

  6. Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post.
    Intraday Nifty Future Tips
    Share market tips
    Share and Earn.

  7. This is a magnificent post The per page-view cost of hosting a resonably efficient GAE/J application . I benefit from the knowledge lot. I will bookmark this page. show gratitude’s for sharing this knowledge.

    finance dissertation structure

  8. I am very glad that I find your regular post here. Which seems to be very important and it made good time pass for me. I will always give a nice thrust look in to you from my bookmark feed, HP0-J60, 200-001, CLAD, Fantastic blog! I don't think I’ve seen all the angles of this subject the way you have pointed them out. You are a true star, a rock star man.

  9. Thank you for another essential blog. Where else could anyone get that kind of information in such a complete way of writing? I have a presentation incoming week, and I am on the lookout for such information, , and more detail.

  10. fter identifying the opportunities and strengths of your idea, we recommend you to short listing about five vendors after searching app development companies in Los Angeles with different search terms of mobile application development.

  11. A tiny pool of experienced and reliable mobile app development Los Angeles makes it next to impossible for a common web surfer to find a suitable app development company. Finding an app developer in Los Angeles with an ability and willingness to work on complex projects within the constraints of time and budget can be achieved by following these simple steps.s

  12. Indian Escorts in Dubai +971552300726 Top Escorts Dubai have Lot of Indian Model escorts in Dubai & Student Escorts in Dubai Indian Escorts Perfect Match for your Romantic Meting.

  13. If you found the Indian escorts in Dubai or Indian model escorts in Dubai then you go to TOP ESCORTS DUBAI which have also student escorts in Dubai which is perfect for romantic meeting.

  14. Indian Escorts in Dubai +971552300726 Top Escorts Dubai have Lot of Indian Model escorts in Dubai & Student Escorts in Dubai Indian Escorts Perfect Match for your Romantic Meting.

  15. Dubai Indian Call Girls +971 52 2495990 -Indian Call Girls In Dubai
    I am a Indian sexy girls in Abu Dhabi who includes an amiable allure. I embrace to adenoids out grown-up scent that energizes me.

    Dubai Escorts indian
    Escort services in Dubai hotels
    Indian call girls
    Indian escorts in Dubai
    Dubai escorts services
    Dubai escorts services in hotels

  16. Thanks for one’s posting! I quite enjoyed reading Your Post; you could be a Very great author. I will make sure to bookmark your blog now and will eventually come back in the foreseeable future always. I want to encourage you continue your great writing Skills, have a nice evening!
    Call Girls in Dubai

  17. Thank you for sharing this great kind of information which really inspire me and remove all today's boring.There are losts of fun.
    Indian escorts in Dubai
    Escorts in Dubai

  18. Our escort agency will provide you top class VIP Pakistani escort in dubai, you can contact our agency and find the best Indian Escorts.we have best cheap Escorts.Our agency also provide massage services contact him and enjoying

  19. Hello gentlemen welcome to Escorts in UAE agency +971552300726. You wanna romantic night and some fun? Then we are gonna be your desire! We have young and experience escorts in Dubai which complete your romance desires with their romantic escort’s experience. Our Indian Escorts in Dubai services as you want i.e. Blowjob without Condom, Sex in Different Positions, Dirty talk, Extra ball, Girlfriend Experience (GFE), and Kissing. As well as our sexy Dubai Escorts that will make you glad & comfortable. We have all categories of Indian escorts, model escorts in Dubai and teenage student escorts in Dubai. For appointment call us now, we are available 24/7.

  20. Dubai Play Girls agency +971553279569 is for those who are looking for escorts in Dubai. Some people always like modern, sexy and stylish girls and they always love to get their favorite one. Indian escorts in Dubai are very beautiful, attractive and stylish and they always attracts to others with their body language and smooth touch. Get pleasure from the most excellent Dubai Escorts Services by our delightful Female model escorts in Dubai. We are as well giving you discount on call girls in Dubai and our escorts services are available 24/7.

  21. Thanks for Posting in such an incredible campaign. Escorts in Dubai this certainly a fantastic piece of work I must say that overall I am really impressed with this blog. Dubai Escorts Definitely Your Blog is so interesting and very informative superbly written and well explained Keep It Up.
    Call Girls in Dubai
    Indian Escorts in Dubai

  22. Here we have big collection best escorts in Dubai which are young, experienced and brilliant. We are providing our Dubai escorts0 services in Dubai, Sharjah and Abu Dhabi. People mostly desire young & call girls in Dubai and we are merely giving here young Indian call girls in Dubai. Our foremost aim is to give you most excellent & special services because customer’s satisfaction is the first main concern for us. Our Indian escorts in Dubai will make you glad & comfy.

  23. Your blog is so interesting and very informative.Thanks sharing. Obviously a great piece of work Thanks for your work. I really appreciate this blog. I’ve been looking all over for this!
    Dubai escorts
    Indian escorts in Dubai

  24. I am visiting this blog on a daily basis and I am finding so much helpful

    article each time. Keep working on this and thank you once again. such a great

    escorts in Dubai
    Indian Escorts in


  25. Thank you for your participation in such an incredible campaign. Call Girls in Dubai I must say that overall I am really impressed with this blog. Certainly a fantastic piece of work. Dubai Models Escorts Thanks for posting this. Your blog is so interesting and very informative. Looking for other posts also. Keep it up. Escorts in Dubai
    Indian Escorts in Dubai
    Dubai Call Girls

  26. This comment has been removed by the author.

  27. Fantastic and awesome stuff as usual keep up the amazing work here. I truly enjoy looking through on this site. Be absolutely determined to enjoy what you do. I am wondering how I might be notified when a new post has been made.
    Cheers friend.
    Indian Escorts in Dubai

  28. Your article is a lot of information and I loved it, we had to be
    Dubai amazing organization called the ESCORTS service
    Dubai visit our website to book our guards.
    Will actually this guy does not stop. So you're begging for another saying,
    He called him and broke his chance
    Indian ESCORTS Dubai, I was a firm believer in second chances, even if you understand it, do not open my novel, because the "system" does not believe in a second chance.
    Indian Escort in Dubai to provide the best escort services in Dubai, we have more than 400 girls.

  29. Excellent web site you have here.. It’s difficult to find quality writing like yours these days.

  30. You have done a very good research and i really enjoyed reading your article with so in dept knowledge of hosting cost and other relevant information about it. Good work keep it up!

  31. We Provide High Class Escort In Dubai // In Hotel Home 24 Hours At Reasonable Prices. We Have Serv Every Type Of Young Beautiful Indian Escort In Dubai //,Well Qualified Soft Spoken Open Mined Slim Soft Fair Charming Most Attractive Pakistani Escort In Dubai //.Is perfect one for all clients who are really need Dubai Escort Service //, it is clear that Dubai Escorts // are living better life in comparison to those who work for agency.You Can Call us For Booking +971552244915

  32. If you want to spend some warm evenings equipped with passionate and love experiences then you are at the exact den of the hottest Dubai Escorts arena. You will be also great experience with them and you will never forget sensuous moment time spend with this escorts. To memorable your Dubai Trip our escorts is ready to serve you. +971522985715
    Dubai Escorts Services
    Escorts In Sharjah
    Indian Call Girls in Dubai
    Pakistani Call Girls In Dubai
    Cheap Escorts In Dubai

  33. Dubai Escorts always attracted to other with their bold look and body language and all our Dubai Escorts // are very stylish
    Turkish Escort In Dubai //, young, talented, sincere and honest and they know very well how they should make their customers happy and glad. We are basically focusing on Indian Escort In Dubai //,because people mostly demand Pakistani Escort In Dubai //, we provide the best escorts in Dubai enjoy the escorts services contact us +971524647392

  34. Biggest Dubai Escorts anency in Dubai call +971 55 8308893. you can get Indian Escorts in Dubai.This is the right place to choose your favorite Call Girls in Dubai and can get satifaction and entertainmnet from Pakistani Escorts in Dubai.

  35. Hi every gentleman, welcom to king of Escorts services in Dubai +971521221138. We have a lovely smile, attracted and sexy body call girls that can catch your eyes at the first time.
    Indian Escorts in Dubai
    Pakistani Escorts in Dubai
    Indian Pakistani Escorts in Dubai