问题
Can I use Apache Thrift on Google App Engine? Since Google App Engine does not support working with sockets what transport can be used? Is there any transport implementation to use on Google App Engine Channel API as transport layer?
PS: Server is supposed to be Java-based (not Python)
回答1:
Its is very possible to run Thrift on Google App Engine.
Before its was not possible because App engine didn't support socket listening but now its very possible.All u need to do is.
User google App engine managed VMs. it allows you to set a custom vm and environment but keep in mind to define a fire wall for your port in order for the thrift server to communicate to the out side world.
See an example App Engineer socket example. with this all the load is balanced as in App engine according to the number of VMs you have.
回答2:
There is an ongoing trusted tester program for sockets on App Engine. I'm unaware of any specific effort to try it with Apache Thrift, but I would encourage you to at least sign up and try it, if accepted.
来源:https://stackoverflow.com/questions/13238961/can-apache-thrift-be-used-on-google-app-engine