The pyramid registry is effectively a singleton. There is only one per Pyramid app. Thus, from your example code, you're creating 10 persistent soap connections per instance of the app. If you're forking the server or anything then this may explode the way you're describing. You need to come up with some way to pool these connections or, instead of persistent connections, be able to lazily create them on demand if that can be done in a lightweight way. I don't work with SOAP much so I can't help with any specifics there but I have also had success using zeep in the one time I needed it.
On Fri, Nov 16, 2018 at 11:25 AM Brian Herman <[email protected]> wrote: > We have tried other SOAP libraries in the past pysimplesoap for some > reason is the only one that works. > > On Fri, Nov 16, 2018 at 4:58 AM Jens W. Klein <[email protected]> > wrote: > >> On 14.11.18 17:42, >> [email protected] wrote: >> > We are using pyramid for our insured portal at Unique Insurance. >> > We have had great success with pyramid and still use it to this day! >> > However we have hit a problem, when we use the pyramid.registry and >> > register an SOAP object to the registry object our server seems to block >> > us because we are making to many connections to the server. >> > I have tried using a singleton, which I will try again today. Is there a >> > way in the registry to force it to only create one instance of the >> object? >> [...] >> >> I do not know you SOAP Client implementation and can't help in detail >> here. >> >> But recently I had a similar use-case >> I used the Zeep library https://python-zeep.readthedocs.io/ for our SOAP >> connections. It is a very cleanly written, well documented and easy to >> use SOAP client library. It is using the famous Requests library for all >> HTTP connections. So, it offers all session/connection pooling features >> Requests has. This really helps getting the number of connections down. >> >> hth Jens >> -- >> Klein & Partner KG, member of BlueDynamics Alliance >> >> -- >> 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/psm7o7%2424s%241%40blaine.gmane.org >> . >> 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]> > > -- > 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/CACNnZHarKQoxZ_zyta_xCAqg%2BJULdbHQjD8M%3DuaE%2BiMUZMFReQ%40mail.gmail.com > <https://groups.google.com/d/msgid/pylons-discuss/CACNnZHarKQoxZ_zyta_xCAqg%2BJULdbHQjD8M%3DuaE%2BiMUZMFReQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAKdhhwEye0T2BYXSwe-MshXaJNMDNP6Nw7VKYpAm3D4Ka39Q0g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
