TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Google App Engine or Heroku for my first Android app backend?

4 pointsby enrmarcover 11 years ago
Hi, I&#x27;m going to publish my first free Android app to improve the schedule bus in my city. My app needs an API so I need a backend server. Since I won&#x27;t have revenue for my app, I need a free hosting. My requirements are the next:<p>* MySQL database (or similar). Less than 10 MB.<p>* Cron. One task per day (less than 5 minutes per task).<p>* My backend is written in PHP. But I think I could translate into Python.<p>* No storage needed (just for the source code, a few json configuration files and the database). No photos, no images, no videos.<p>* Traffic. This is quite difficult to predict. Some context:<p>My city has approximately 80000 habitants.<p>I&#x27;m using Android &gt;= 3.0. So this reduce the total amount of potencial users.<p>Ideally the app just has to connect once a day, the data will be stored locally.<p>The total size of the downloaded data (json files) is about 10kb (two or three requests).<p>Ideally the user will use the app like this: wake up in the morning, check the arrival time for the next bus to go to work and at the end of the day check again the arrival time to go home (very simplified, but the average user has the same routine: home-&gt;work-&gt;home). Anyway, just one request in the day is needed because I store the downloaded data locally. There is another use case where the user sends data to the server. I&#x27;m not going to explain it, but the data sent is just text (an arrival time) and is optional.<p>There is just another app like mine in my city but, in my humble opinion, mine is better :)<p>I have never used GAP&#x2F;Heroku and I&#x27;ve read the usage and billing for both, but I&#x27;m still a little lost.<p>Thanks and sorry for my English.

2 comments

MrMekerover 11 years ago
I would recommend GAE. It is a pretty good fit for what you are describing, and best of all, it has a very reasonable free tier that never expires.<p>I have only ever used python on GAE. PHP at the moment only accepts whitelisted applications.<p>Their database is NoSQL, but it does have a query language called GQL which shares some features and syntax of SQL.<a href="https://developers.google.com/appengine/docs/python/datastore/" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;appengine&#x2F;docs&#x2F;python&#x2F;datastor...</a><p>GAE has cron jobs which can run for up to 10 minutes. <a href="https://developers.google.com/appengine/docs/python/config/cron" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;appengine&#x2F;docs&#x2F;python&#x2F;config&#x2F;c...</a><p>Applications are limited to 1GB of source files. It seems like this will be no problem for you.<p>You are limited to 1GB of data&#x2F;day for free, $0.12&#x2F;GB after. For you application, that&#x27;s 100,000 requests&#x2F;day.<p>It looks like Heroku wants to charge if you want more than 10,000 database entries.<p>Your English is great.
anxiousestover 11 years ago
Cloud Endpoints is worth considering: <a href="https://developers.google.com/appengine/docs/java/endpoints/" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;appengine&#x2F;docs&#x2F;java&#x2F;endpoints&#x2F;</a>