I'm looking at Google app engine for deploying my Java web app which connects to a mongodb database through the mongodb java driver.
Plan 1:
Plan 2:
Deploy both Mongodb and Java web app in Google Compute engines
Question 1: Will Plan 1 work ? Question 2: I think Plan 2 will probably work. But is it the most efficient method ? If not, can you suggest a more efficient method?
Note: Im on planning on using Google Datastore.
Your plan 1 is feacible, the only thing you need to ensure is that your App Engine and Compute Engine (MongoDB) are in the same virtual network. As it is stated here.
The plan 2 won't be cost effective due to the requirement of having the intance(s) running your app on 24x7. Even if there are no traffic you will have to pay for them. Google App Engine will give you the chance of having a free quota.