Would Python's Twisted library be the best case for an observer type pattern?
Posted
by beagleguy
on Stack Overflow
See other posts from Stack Overflow
or by beagleguy
Published on 2010-06-08T22:51:16Z
Indexed on
2010/06/09
2:52 UTC
Read the original article
Hit count: 187
hi all, I'm developing a system where a queue will be filled with millions of items
I need a process that reads items from the queue constantly and then sends those items out to registered clients.
I'm thinking about using twisted for this, having the queue reader be a twisted server listening on a tcp port then clients can connect on that port and when an item is pulled from the queue the server writes it out to all the clients.
Does that sound like something that twisted would be ideal for? Does anyone know of any sample code out there that may do something similar?
thanks
© Stack Overflow or respective owner