On Saturday, May 18, 2013 8:45:55 AM UTC-5, Ranjit Chacko wrote:

> It was my understanding that it isn't possible to connect directly to 
> external databases from app engine because you're limited to making http 
> requests, but I came across App Rocket recently and some how it seems that 
> it is connecting to an external mysql instance.
>
> How is App Rocket actually working and is there a way to connect to 
> external databases after all?


There has always been a way to connect to external databases: through HTTP 
tunneling. You can send commands and receive data from an external db by 
communicating over HTTP. It's just a really bad idea because the latency is 
terrible. With that said, Google Cloud SQL is a better choice if you need a 
SQL engine, since it'll experience less latency while communicating with an 
App Engine app.

I only skimmed the source code of AppRocket, but it looks like it's using 
HTTP tunneling from this code: 
https://github.com/k7d/approcket/blob/master/rocket/station.py 



-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

My Go side project: http://invalidmail.com/


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to