I've spent the last few weeks really climbing all around the Google App Engine (GAE) and Google Compute Engine (GCE), so I feel that I have a decent understanding about the two related but different platforms. But I'm stuck and want to make sure I jump in the right direction to move forward.
I'm creating a small private business website with a limited number of customers. We are talking 20 concurrent users.
So this question may be more architectural than technical.
I wanted to try and use the MongoDB because of the flexibility of the schema, so here is where I'm stuck.
My initial attempt was to connect via the following:
Option 1:
GAE (Java) --> MongoDB Java Driver --> GCE (MongoDB)
This is a complete failure because the GAE sandbox will not allow this.
Option 2:
GAE (Java) --> RESTFul MongoDB Call --> GCE (MongoDB / Restful front end)
I have not fully explored this yet, but this appears promising, but I really don't want to use RESTful to connect to my DB
Which leaves me with where I'm heading.
Option 3:
GCE (Java/Tomcat) --> MongoDB driver --> GCE (MongoDB)
Ditch GAE and go full in GCE :|
I'd love some feedback. Here are the other stackoverflow answers that I referenced heavily when researching this issue:
Needless to say, this is my first question ever on stackoverflow, which I read about every day, so be nice if this question seems out of line. I figured if I was struggling, probably many others were as well. :D
Answer Summary: 3 perfectly good answers were put forward:
I researched all of these, and decided that for me #1 was the best option for the moment because it was the path of least resistance, but I'm leaving the door wide open to shifting to #2 or #3 in the future if the need arises.
Thanks everybody. I'll mark the response about using GCE as the accepted answer because it does answer the question even though I went in a different direction.
IMO you don't need GAE even if you have to scale
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With