How do i defer the connection after the application forks? Is there like a
application after fork function in pyramid?

On Thu, Nov 15, 2018 at 4:24 PM Brian Herman <[email protected]>
wrote:

> Thanks man I appreciate it!
>
> On Thu, Nov 15, 2018 at 4:19 PM Jonathan Vanasco <[email protected]>
> wrote:
>
>> A few things that jump out at me:
>>
>> 1. it looks like your `PN` class is creating 10 different `Client`
>> objects which each start a persistent(?) connection to the SOAP server when
>> created. that's a huge factor in overloading the connections.
>>
>> 2. I'm not familiar with your SOAP library. are these connection objects
>> threadsafe/forksafe?  If not, you should defer the `connect` to happen
>> after the application forks/threads. that will result in even more
>> connections.
>>
>> i would look at creating and disposing of the connections as needed,
>> instead of starting up with them.  if you need all of them them on every
>> request, i'd rethink the application design and how all the nodes interact
>> with one other.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "pylons-discuss" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/pylons-discuss/rbXBsUrCKn4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pylons-discuss/2ea804d0-1b40-49f2-944a-2f890d92f307%40googlegroups.com
>> <https://groups.google.com/d/msgid/pylons-discuss/2ea804d0-1b40-49f2-944a-2f890d92f307%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thanks,
> Brian Herman
> Unique Insurance Company <https://www.uniqueinsuranceco.com>
> *IT Department*
> *Programmer*
> (773) 696-2511
>
> *[email protected]* <[email protected]>
>


-- 
Thanks,
Brian Herman
Unique Insurance Company <https://www.uniqueinsuranceco.com>
*IT Department*
*Programmer*
(773) 696-2511

*[email protected]* <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CACNnZHZyOu4uo6%3DHU2RWCAPXv4frJaxMcL31QcUPb1MqKx08_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to