How to make P2P apps without a server? RTFM... no RTMFP

Embed Size (px)

DESCRIPTION

The talk I gave at the Chicago Flex User Group on June 15th. The talk was on the Real Time Media Flow Protocol (RTMFP), and how it can be used to make Peer to Peer networks without a server.

Citation preview

  • 1. How do I make mobile P2P apps without a server? RTFM... no... RTMFP.

2.

    • RIA and mobile developer with Digital Primates
  • 3. Flash developer since 1996.

4. Podcaster 5. vandermore.com

  • Who is David Moore?

6.

  • What the heck is that paper for?

7.

    • Not RMFTP...
  • 8. Real Time Media Flow Protocol

9. Similar to RTMP (Real Time Messaging Protocol) 10. Allows for Peer to Peer communication

  • Flash Player

11. Adobe AIR Developed by Amicima

  • What is RTMFP?

12.

    • Allows for Peer to Peer communication
    • FMS Server
  • 13. Server-less inside a LAN as of 10.1
  • Wireless or wired
  • What does RTMFP do?

14.

  • So what?

15.

    • UDP User Datagram Protocol
  • 16. Lossy

17. Low Latency 18. P2P Reducing Server Load

  • RTMFP Basics

19.

  • RTMFP Basics

Standard RTMP RTMFP Using FMS 20.

  • RTMFP Basics

Full Peer to Peer RTMFP 21.

  • RTMFP Basics
  • RTMFP security
  • Encrypted

22. Anti-DOS protections 23. Anti-portscanning protections 24. More: Matthew Kaufman at his Max 2008 presentation 25.

  • Stuff we care about
  • Unique messages

26. Typed objects 27. Local network, no server needed

  • Some limits because of this

28.

  • Limits?
  • Local network needs to route UDP

29. Unique messages 30. Lost and out of order packets 31. Keeping track of peers

  • When they connect

32. When they disconnect 33.

  • Working around the limits
  • Local network?

34. Unique messages? 35. Lost and out of order packets? 36. Keeping track of peers? 37. Demo http://vandemore.com/HotPotato.apk 38. CODE! 39. Q & A 40. Thank You 41. Credits and Additional resources: Thanks to the following for media assets and inspiration

  • www.flashrealtime.com

42. www.jamesward.com 43. renaun.com 44. www.adobe.com 45. http://tv.adobe.com/watch/max-2008-develop/future-of-communication-with-rtmfp-by-matthew-kaufman/ 46. github.com/devboy/HydraP2P - Library to quickly get started with RTMFP P2P. 47. vandermore.com