1 / 19

Di stributed Programming with PYRO (PYthon Remote Objects) Alfredo Deza PyCon 2010

Di stributed Programming with PYRO (PYthon Remote Objects) Alfredo Deza PyCon 2010. “ Simple to get going with, but is already quite powerful even in the simplest form ” Irmen de Jong. Distributed Object Technology Remote Objects behave like local ones No external dependencies

elina
Download Presentation

Di stributed Programming with PYRO (PYthon Remote Objects) Alfredo Deza PyCon 2010

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Distributed Programming with PYRO (PYthon Remote Objects) Alfredo Deza PyCon 2010

  2. “Simple to get going with, but is already quite powerful even in the simplest form” Irmen de Jong

  3. Distributed Object Technology • Remote Objects behave like local ones • No external dependencies • Multi-threaded by default • Automatic reconnection • Heavily Tested

  4. Specialized monitoring • Distributed Computing • Testing • IPC (inter-process communication)

  5. Examples vs

  6. implementation

  7. Examples One master, one slave Send tasks, instant feedback

  8. 1 pyroloc ='PYROLOC://127.0.1.1:766/remote' 2 task = Pyro.core.getProxyForURI(pyroloc) 3 task.remote()

  9. Naming Service dude where is my object?

  10. What is a

  11. Android calls Nexus Nexus calls Android But Android tries to call Nexus... again?!?!

  12. Nexus: “The number you have dialed doesn't exist” ConnectionClosedError

  13. Validation and encryption

  14. SSL SERVER 1 Pyro.config.PYROSSL_CERT="server.pem" 2 Pyro.config.PYROSSL_KEY="server.key" 3 daemon = Pyro.core.Daemon(prtcol='PYROSSL') 4 daemon.setNewConnectionValidator(printCertValidator()) SSL CLIENT 1 Pyro.config.PYROSSL_CERT="client.pem"

  15. Examples handle remote services the website is down

  16. Examples why not to use Pyro?

  17. Examples References: PYRO: http://pyro.sourceforge.net/ This Presentation and Code: http://www.alfredodeza.com/pycon_2010.tar.gz

  18. Thanks! alfredodeza@gmail.com http://www.alfredodeza.com this presentation was proudly made with Linux, Mercurial and other open source tools

More Related