Would Python's Twisted library be the best case for an observer type pattern?

Perspective Broker might be what you're looking for. If you don't know PB, think of it as XML-RPC but much more. You can invoke remote procedures (duh!), pass most of python objects around just to name two For your case, have a PB for clients.

Twisted Server can invoke the remote doWork(myItem, myParameters) The Twisted Server will be a persistent process running which accumulates items in a queue. If you have millions (or even server tens) items, keep in mind of gracefully recovering in case of a crash. How about smartly backing stuff onto disk every now and then and reading this up when starting up?

Perspective Broker might be what you're looking for. If you don't know PB, think of it as XML-RPC but much more. You can invoke remote procedures (duh!), pass most of python objects around just to name two.

For your case, have a PB for clients. Twisted Server can invoke the remote doWork(myItem, myParameters). The Twisted Server will be a persistent process running which accumulates items in a queue.

If you have millions (or even server tens) items, keep in mind of gracefully recovering in case of a crash. How about smartly backing stuff onto disk every now and then and reading this up when starting up?

The Twisted server will actually be pulling things off a persisted queue like beanstalkd. I'll take a look at perspective broker, thanks! – James Jun 9 '10 at 15:21.

Twisted and PB would be a great fit for this - there's a bunch of good references on Stack: stackoverflow.com/questions/1888139/pyth....

You can invoke remote procedures (duh!), pass most of python objects around just to name two. For your case, have a PB for clients. Twisted Server can invoke the remote doWork(myItem, myParameters).

The Twisted Server will be a persistent process running which accumulates items in a queue. If you have millions (or even server tens) items, keep in mind of gracefully recovering in case of a crash. How about smartly backing stuff onto disk every now and then and reading this up when starting up?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions