Would Python's Twisted library be the best case for an observer type pattern?
- by beagleguy
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