Your application probably isn't written to be multi-threaded and any effort to make it so is wasted because it won't be executed as multi- threaded in production.
You could get around application threading issues by forking but then you'll discover that the dev server's datastore is a pile of code with some file handles and can't handle concurrent access. You could write a proxy that distributed requests across multiple instances of the dev server, but they'd have separate and independent datastores. On Apr 6, 4:59 pm, Khai <[email protected]> wrote: > Perhaps I didn't explain my problem clearly. This problem applies > only to the development server (dev_appserver.py or SDK). The problem > is it is single threaded, so when multiple requests arrived at the > same time, they have to be served serially (one after the other), so > one of the request got timed out by the opensocial agent. What can I > do to service multiple requests concurrently in the development > environment? > > On Apr 4, 2:28 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > <[email protected]> wrote: > > That's a very bad idea: dev_appserver is not secure, is snail slow if you > > add more than a couple of thousand entities in it and it is uncertain if it > > can share a "datastore" across multiple instances. > > Why do you want to do this? What is wrong with hosting on GAE? > > > On Sat, Apr 4, 2009 at 11:04 PM, Khai <[email protected]> wrote: > > > > Before I try something crazy I want to know if someone has try it or > > > whether it is too crazy to try. > > > > The problem is dev_appserver.py is single-threaded, and I need to have > > > multiple instances running. I am developing an opensocial application > > > which make three asynchronous requests to my server. Because > > > dev_appserver.py is single threaded, the last request serviced by > > > dev_appserver.py took more than 5 seconds and get timed out by > > > opensocial. So I need to have multiple processes of dev_appserver.py > > > running. > > > > I've search this group, and so far I've only found that someone run > > > multiple dev_appserver.py processes using different ports which is not > > > practical for my problem. I've also search this group for mod_python, > > > but did not find any relevant result. I want to run dev_appserver.py > > > as a mod_python script with Apache prefork mpm (multiple processes). > > > > Is this possible? What is the degree of difficulty? I am very novice > > > with GAE, and I have never done anything with mod_python. Has anyone > > > try this before? Would anyone willing to try it and share it with the > > > group? > > > > Any responses / advices would be greatly appreciated. > > > > Khai > > > -- > > > Alkis- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
