Hosting PHP API with MySQL for mobile app in google App Engine. How? Good or Bad?

Viking

I wanted to know if its possible to host just plain old simple PHP scripts on google app engine. This scripts will just be bridge/api between MySQL(planning to use cloud SQL) and android application.

If its possible than i would like to know if is it worth it? How its better than hosting scripts on regular web host? And can anyone please point me to right direction where i can find some useful tutorials? If not which alternatives should i look into?

I did some research and found some resources but they where talking about php application with app engine. I just want to know specifics about php scripts as an api and app engine.

Thank you!

Alex Martelli

You ask:

I wanted to know if its possible to host just plain old simple PHP scripts on google app engine. This scripts will just be bridge/api between MySQL(planning to use cloud SQL) and android application.

Sure! Unless you're doing very fancy stuff and running afoul of the "sandbox" limitations explained at https://cloud.google.com/appengine/docs/php/#PHP_The_sandbox, your PHP should run fine on App Engine.

If its possible than i would like to know if is it worth it? How its better than hosting scripts on regular web host?

If you don't plan to take any advantage of the differences of App Engine and Cloud SQL -- you're adamant to use them just as if they were "regular web [[and MySQL]] hosts", with zero interest in actually taking any of the advantages -- there may still be wins, but, only in somewhat unlikely circumstances.

For example, you might respond to a sudden spike of traffic much better with app engine's autoscaling -- but if your attitude to serving your customers is that you can't be bothered to do a tiny amount of effort to customize your code to your actual hosting platform, then I'm not creative enough to figure up a scenario in which you would get a burst of traffic; rather I would expect your more sensible competitors, happy to spend a couple hours learning and another couple hours adapting their code and config, to eat your lunch (and breakfast and dinner -- elevenses too, probably) and take away your customers so you'll never have to worry about traffic bursts and scaling up to larger volumes, as your volumes, I would guess, will not get any larger... on the contrary.

As Jerry Pournelle would put it (and did, in "Oath of Fealty" -- by far not his best work otherwise) -- "think of it as evolution in action".

Ah well, I already loved Jerry as a writer 12 years ago -- then, see http://code.activestate.com/lists/python-list/335605/ , in his column on "Byte" (a magazine I also long loved, and never failed to devour cover to cover, every month! for ages), he splurged love upon Python... and specifically upon my own book, "Python in a Nutshell".

I didn't make any substantial amount of money directly out of the book, but (together with the Python Cookbook) it did help ease me into many great consultant contracts, and later led me to the Google job I still have and enthuse about. (not to mention my marriage -- http://www.aleax.it/marall1.pdf !-).

So I'm biased and can't stop loving Jerry -- and his "evolution in action" is part of the package...!-)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Hosting jekyll to Google App engine

From Dev

502 Bad Gateway Error when accessing Google Firebase Hosting from Google App Engine

From Dev

How to use Facebook Mobile Hosting API for App Links

From Dev

How to use Composer in PHP Google App Engine

From Dev

How to use Composer in PHP Google App Engine

From Dev

How to configure app.yaml to load google-api-php-client on app engine?

From Dev

How to use Google App Engine SDK for php in Google Compute Engine

From Dev

Hosting mobile singalR App

From Dev

Hosting a Google App Engine app on my own server

From Dev

Google App Engine 502 (Bad Gateway) with NodeJS

From Dev

google app engine golang, driver: bad connection

From Dev

PHP fatal error on google php api app engine

From Dev

Google App Engine Search API

From Dev

Search API on Google App Engine

From Dev

Search API on Google App Engine

From Dev

Google App Engine Java API

From Dev

Google App Engine Cron PHP

From Dev

Accessing Google App Engine's Search API from PHP

From Dev

Accessing Google App Engine's Search API from PHP

From Dev

how to hide .html extension in URL from google app engine (cloud hosting)

From Dev

How to connect PHP GAE(Google App Engine) to Google Docs, Spreadsheets

From Dev

How to get final_url using the URL Fetch PHP API on Google App Engine?

From Dev

How to get final_url using the URL Fetch PHP API on Google App Engine?

From Dev

Using Google App Engine with mobile apps and a web app

From Dev

Storage Hosting Services for Mobile App?

From Dev

How to extract email body using the google app engine mail api?

From Dev

How to use Task Queue API in Google App Engine?

From Dev

Google App Engine and Google Calendar API

From Dev

Google Prediction API with Google App Engine

Related Related

  1. 1

    Hosting jekyll to Google App engine

  2. 2

    502 Bad Gateway Error when accessing Google Firebase Hosting from Google App Engine

  3. 3

    How to use Facebook Mobile Hosting API for App Links

  4. 4

    How to use Composer in PHP Google App Engine

  5. 5

    How to use Composer in PHP Google App Engine

  6. 6

    How to configure app.yaml to load google-api-php-client on app engine?

  7. 7

    How to use Google App Engine SDK for php in Google Compute Engine

  8. 8

    Hosting mobile singalR App

  9. 9

    Hosting a Google App Engine app on my own server

  10. 10

    Google App Engine 502 (Bad Gateway) with NodeJS

  11. 11

    google app engine golang, driver: bad connection

  12. 12

    PHP fatal error on google php api app engine

  13. 13

    Google App Engine Search API

  14. 14

    Search API on Google App Engine

  15. 15

    Search API on Google App Engine

  16. 16

    Google App Engine Java API

  17. 17

    Google App Engine Cron PHP

  18. 18

    Accessing Google App Engine's Search API from PHP

  19. 19

    Accessing Google App Engine's Search API from PHP

  20. 20

    how to hide .html extension in URL from google app engine (cloud hosting)

  21. 21

    How to connect PHP GAE(Google App Engine) to Google Docs, Spreadsheets

  22. 22

    How to get final_url using the URL Fetch PHP API on Google App Engine?

  23. 23

    How to get final_url using the URL Fetch PHP API on Google App Engine?

  24. 24

    Using Google App Engine with mobile apps and a web app

  25. 25

    Storage Hosting Services for Mobile App?

  26. 26

    How to extract email body using the google app engine mail api?

  27. 27

    How to use Task Queue API in Google App Engine?

  28. 28

    Google App Engine and Google Calendar API

  29. 29

    Google Prediction API with Google App Engine

HotTag

Archive