On Fri, Nov 6, 2015 at 10:52 AM, Minie Takalova <[email protected]> wrote:
> Hope I'am not the only one in such situation. > You appear to have some conceptual misunderstandings of how computers work. Or possibly there is a language/miscommunication issue: * A socket is not a thread and a thread is not a socket. * Socket handles cannot be passed between instances, which are separate processes and probably on separate machines. * Threads are not necessary to hold open sockets - any socket can stay open across requests normally. They're just file handles. However, the mongodb driver creates a thread to manage the connection pool. You're right that long ago both the Python and Java drivers had the option to forego this, however, the main guy behind the drivers created a specification for how all drivers should work and that spec involves a thread. So all "modern" mongodb drivers create threads. And yes, older drivers have issues. GAE backends are deprecated and won't work anyways because you still can't create threads using the standard API - you need to use a GAE specific API which the driver does not know about. Your question about tasks makes no sense. You are, pretty much, alone in this situation. It is very possible that I am the only person actively using MongoDB with non-VM GAE. I am almost certainly the only person doing it with Java with anything resembling a recent version of MongoDB. This is pretty far off the beaten path. If you are not comfortable hacking the driver (and since there appear to be some gaps in your understanding of threads and sockets, it will not be easy), then you should reconsider using either MongoDB or GAE. Jeff -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CADK-0uhr6KBd_HUtzLhTzPWysyELFCKnSxrL4FcCUzWa37Qk_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
