As Twisted points out not to be thread-safe, why would it be in WSGI?
Due to the sensibility of the project I cannot afford things to go wrong
because of not synchronized threads or other pitfalls, so I actually
decided
to to the asynchronous way, and this bites with WSGI.
Fabian
On 9/19/11 10:
Hi all,
Before I start digging in the Twisted code, I'd just like to bump
this off you in case the solution is obvious...
I have a lot of clients having permanent connections to my TCP
server. These clients are devices that will buffer data if it
In your Protocol, I would implement a specific Error that might be returned
by the server in such burst situations.
The clients should interpret that error in a way that lets them reconnect to
the server after a randomly chosen interval.
This way you immediately eliminate the burst without running
Hi Fabian,
Unfortunately I don't have control over the protocol itself as the
devices are made by different manufacturers. However, your email
did highlight the issue that devices will in very quick succession
try to re-establish connections potentially ca
Don,
If you can't solve the problem proactively by adapting the clients,
You probably need to deal with it on the server side. The common technique
here
Is to use load balancers.
For a software solution, you might want to take a look at
http://sourceforge.net/projects/pythondirector/ .
However,
Thank you Fabian,
I'll take a look at Python Director.
Regards,
Don
On 20/09/2011 17:41, Fabian Rothfuchs wrote:
Don,
If you can't solve the problem proactively by adapting the clients,
You probably need to deal with it on the
Hi Fabian,
On Tue, 20 Sep 2011 06:38:00 -0500, Fabian Rothfuchs
wrote:
> As Twisted points out not to be thread-safe, why would it be in WSGI?
>
> Due to the sensibility of the project I cannot afford things to go wrong
> because of not synchronized threads or other pitfalls, so I actually
>
Hi Daniel,
>Sorry for any confusion, but I never said anything about using twisted as
>
>a WSGI container for purposes of ensuring thread-safety. I was only
>responding to your question about "how to wrap Django in twisted", and
>running Django inside twisted's WSGI container is one way to do th
On Sep 20, 2011, at 12:42 PM, Fabian Rothfuchs wrote:
> Hi Daniel,
>
>> Sorry for any confusion, but I never said anything about using twisted as
>>
>> a WSGI container for purposes of ensuring thread-safety. I was only
>> responding to your question about "how to wrap Django in twisted", and
>>>
>>>If you can afford to make the change, running twisted as a completely
>>> separate service in another process, and implementing communication
>>> between your Django server and your twisted server via a protocol might
>>> simplify things a bit in terms of coordination.
>>
>> This is exactly
On Sep 20, 2011, at 8:51 AM, Don Schoeman wrote:
> Hi all,
>
> Before I start digging in the Twisted code, I'd just like to bump this off
> you in case the solution is obvious...
>
> I have a lot of clients having permanent connections to my TCP server. These
> clients are devices that will b
On Sep 20, 2011, at 1:12 PM, Fabian Rothfuchs wrote:
> I feel quite happy with that solution till now (planning since 4 hours and
> it seems like it could be really working).
Great, glad to hear it. Let us know how it goes!___
Twisted-Python mailing l
For this websocket cms project im working on, i also run django in a wsgi
container. I wonder if im using it the right way? (
https://github.com/phrearch/hwios/blob/master/services/web_ui/service.py)
cheers,
Jeroen
2011/9/20 Glyph Lefkowitz
>
> On Sep 20, 2011, at 1:12 PM, Fabian Rothfuchs wr
Hey Jeroen,
As I learned so far, using WSGI to combine Django and Twisted isn't a bad
thing in general.
It's just that you need to align your code and 'mental model' to develop
multi-threaded (WSGI) or asynchronous (if that makes any difference to you
at all).
In my special case, I develop a netw
Thanks, it would be nice to see some more examples of django usage with
twisted. I've searched the web a while ago, but could only find a few
examples. Especially the
part about multi-threading/async would be nice to read something
about(doesn't make much sense to me yet). All i know is that i used
That's probably the best Twisted Intro available in the net:
http://krondo.com/?page_id=1327
The first chapter explains the differences between sync/async/threaded.
Fabian
From: Jeroen van Veen
Reply-To: Twisted general discussion
Date: Tue, 20 Sep 2011 22:10:02 +0200
To: Twisted general
On Sep 20, 2011, at 3:33 PM, Jeroen van Veen wrote:
> For this websocket cms project im working on, i also run django in a wsgi
> container. I wonder if im using it the right way?
> (https://github.com/phrearch/hwios/blob/master/services/web_ui/service.py)
Generally, yes, except for the "Main
"""
For this reason, you must explicitly specific what remote classes will
be accepted, and how their local representatives are to be created.
"""
I think "explicitly specify" is what is intended.
I am new to twisted. Not sure how easy it would have been for me to
open a ticket or fix it myself,
On 20 Sep, 11:40 pm, a.lib...@gmail.com wrote:
>"""
>For this reason, you must explicitly specific what remote classes will
>be accepted, and how their local representatives are to be created.
>"""
>
>I think "explicitly specify" is what is intended.
>
>I am new to twisted. Not sure how easy it wou
hello:
I'm making a program that captures a GPS data from a ip port, it
I have an infinite loop to stay to listen, to finish out a
List each item, when the data reaches the List is displayed.
The idea is to put a reactor that allows me to use the variable "list"
without
regardless of the loop and
Wait. You are capturing GPS data from an IP port. Is that TCP? What format
is the data in? GPS?
I have worked on twisted.positioning, a library for doing GPS data with
Twisted, but this ticket is still in review.
___
Twisted-Python mailing list
Twisted-P
21 matches
Mail list logo