Erlang for video delivery
Upcoming SlideShare
Loading in...5

Erlang for video delivery



How Erlang is ideally suited for high volume and low latency systems like video on demand.

How Erlang is ideally suited for high volume and low latency systems like video on demand.



Total Views
Views on SlideShare
Embed Views



1 Embed 1 1



Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Erlang for video delivery Erlang for video delivery Presentation Transcript

  • Erlang for video delivery platformsFriday, October 19, 12
  • About me Worked for Delta, Bellsouth, Sun Microsystems, Weather Channel Love realtime, high volume systems Sr. Director Engineering Ericsson N2 Broadband -> Tandberg TV -> Ericsson hwatkins @ githubFriday, October 19, 12
  • Media Delivery Management System Erlang (of course!) Realtime processing Protocol specific pieces Ruby on Rails Front end and some API’sFriday, October 19, 12
  • Media Delivery Management System MongoDB Persistence layer Geo redundant RabbitMQ (AMQP) Messaging BusFriday, October 19, 12
  • VOD ecosystemFriday, October 19, 12
  • Async processingFriday, October 19, 12
  • Sync to AsyncFriday, October 19, 12
  • Dynamic Routing Ability to add components on the fly Apply components to different profiles In harmony with multiple VM’sFriday, October 19, 12
  • Competing ConsumerFriday, October 19, 12
  • Clients HTTP DSM-CC ISO/IEC 13818-6Friday, October 19, 12
  • Java binary protocol Class per section Lots of code Lots of objects Lots of GCFriday, October 19, 12
  • Binary DataFriday, October 19, 12
  • Pattern MatchingFriday, October 19, 12
  • Memory Management Java Shared memory with reference count Erlang per thread heap single assignmentFriday, October 19, 12
  • Memory Footprint Identical functionality developed in Java and Erlang AMQP workers and connected to MongoDB Java averaged 1 GB memory Erlang averaged 200 MB memoryFriday, October 19, 12
  • Threading Model Threading is ideal for things like http requests Java Threads heavyweight - thread pools Erlang Lightweight - spawn on demand Think linearFriday, October 19, 12
  • Clustering Java Memory - Terracotta Erlang Built in netadm:ping Mnesia - disk or memoryFriday, October 19, 12
  • Runtime Debugging REPL (Read-Eval-Print-Loop) Cookie Remote Shell Issue commandsFriday, October 19, 12
  • OTP Built for the real world - Use it! application, gen_server and supervisor Use alot! gen_fsm and gen_event Not as much but still usefulFriday, October 19, 12
  • OTP Custom BehaviorFriday, October 19, 12
  • Packaging reltool rebar generate start, stop, console, attach runtime vm and libraries small ~29M releaseFriday, October 19, 12
  • Useful LibrariesFriday, October 19, 12
  • Rebar De facto build system Wrap in simple makefile for ease Make dependancies easy to manageFriday, October 19, 12
  • folsom Github boundary/ folsom Metrics and counters during runtime Expose through mochiwebFriday, October 19, 12
  • Others Mochiweb - Web Server Webmachine - RestFriday, October 19, 12