connecting adhearsion
DESCRIPTION
Connecting Adhearsion presented by Ben Langfeld at Adhearsion 2012TRANSCRIPT
![Page 1: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/1.jpg)
P A G E
Connecting Adhearsion
Ben Langfeld@benlangfeld
![Page 2: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/2.jpg)
P A G E
2http://theblogthatnoonereads.davegrijalva.com/2004/11/
![Page 3: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/3.jpg)
P A G E
CONTROLLING PHONE CALLS
3http://www.laddamobilen.nu/gratis-ringsignal-old-phone-klassisk-telefon.php
![Page 4: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/4.jpg)
P A G E
BEING A WEB APP
4http://www.pocketpcfaq.com/wce/21/webphone.htm
![Page 5: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/5.jpg)
P A G E
MANAGING DATABASES
5http://www.searchamelia.com/a-clutter-free-space-is-a-happier-place
![Page 6: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/6.jpg)
P A G E
PROCESSING AUDIO
6http://cheezburger.com/1922247936
![Page 7: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/7.jpg)
P A G E
BREWING COFFEE
7http://www.flickr.com/photos/39288568@N03/3774087746/
![Page 8: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/8.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
![Page 9: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/9.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
Report on Calls
![Page 10: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/10.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
Report on CallsReal-time Call Statistics
![Page 11: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/11.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
Gather In-Call Data
Report on CallsReal-time Call Statistics
![Page 12: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/12.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
Gather In-Call Data
Report on Calls
Trigger Outbound
Calls
Real-time Call Statistics
![Page 13: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/13.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
Gather In-Call Data
Report on Calls
Trigger Outbound
CallsMulti-Modal
Communications
Real-time Call Statistics
![Page 14: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/14.jpg)
P A G E
WHY CONNECT ADHEARSION?
8
Gather In-Call Data
Report on Calls
Trigger Outbound
CallsMulti-Modal
Communications
Real-time Call Statistics
Process Jobs
![Page 15: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/15.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
Process Jobs
![Page 16: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/16.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
Database
Process Jobs
![Page 17: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/17.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubDatabase
Process Jobs
![Page 18: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/18.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubListening
Database
Process Jobs
![Page 19: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/19.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubListening
Database
Process Jobs
![Page 20: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/20.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubListening
Database
Process Jobs
![Page 21: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/21.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubListening
DatabaseExternal
APIs
Process Jobs
![Page 22: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/22.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
Click-to-Call
PubSubListening
DatabaseExternal
APIs
Process Jobs
![Page 23: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/23.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
Click-to-Call
PubSubListening
Call Queue
DatabaseExternal
APIs
Process Jobs
![Page 24: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/24.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
AutoDialer
Click-to-Call
PubSubListening
Call Queue
DatabaseExternal
APIs
Process Jobs
![Page 25: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/25.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
AutoDialer
Click-to-Call Instant Messaging
PubSubListening
Call Queue
DatabaseExternal
APIs
Process Jobs
![Page 26: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/26.jpg)
P A G E
CONNECT TO WHAT?
9
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
AutoDialer
Click-to-Call Instant Messaging
Externally Triggered Actions
PubSubListening
Call Queue
DatabaseExternal
APIs
Process Jobs
![Page 27: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/27.jpg)
P A G E
CONNECT TO WHAT?
10
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubListening
DatabaseExternal
APIs
Instant Messaging
Externally Triggered Actions
Call Queue
Click-to-Call
AutoDialer
Process Jobs
![Page 28: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/28.jpg)
P A G E
CONNECT TO WHAT?
10
Trigger Outbound
Calls
Report on CallsReal-time Call Statistics
Multi-Modal Communications
Gather In-Call Data
PubSubListening
DatabaseExternal
APIs
Instant Messaging
Externally Triggered Actions
Call Queue
Click-to-Call
AutoDialer
HTTP XMPP
IRC AIM
Google TalkFacebook ChatRedis AMQP
Who knows?
HTTP
PostgresMongo
Cassandra
HTTP
Redis AMQP
ActiveMQ
Process JobsAMQP Sidekiq
![Page 29: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/29.jpg)
P A G E
WHAT DO I USE?
11
Database Sequel (adhearsion-sequel?), Mongoid
HTTP client Net::HTTP, HTTParty, etc
Redis redis gem
DRb adhearsion-drb
AMQP amqp, bunny gems
HTTP server Reel, Sinatra
XMPP/Google Talk adhearsion-xmpp
IRC ?
![Page 30: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/30.jpg)
P A G E
EXAMPLES
12
![Page 31: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/31.jpg)
P A G E
DISTRIBUTED ARCHITECTURES ROCK
13http://harish11g.blogspot.com/2012/10/latency-geo-distributed-aws-ec2.html
![Page 32: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/32.jpg)
P A G E
MESSAGE PASSING ROCKS
14http://www.defit.org/2012/06/message-passing.html
![Page 33: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/33.jpg)
P A G E
SHARE NOTHING
15http://www.sodahead.com/fun/ever-shared-a-milk-shake-with-someone/question-1941605/?link=ibaf&q=&imgurl=http://images.sodahead.com/polls/001941605/115233967_GreedyGirl_answer_2_xlarge.jpeg
![Page 34: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/34.jpg)
P A G E
WRAP EVERYTHING
16http://websurdity.com/here-kitty-kitty/
![Page 35: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/35.jpg)
P A G E
EXPECT FAILURE
17http://knowyourmeme.com/photos/22287-blue-screen-of-death-bsod
![Page 36: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/36.jpg)
P A G E
MY WISHLIST
Sidekiq Integration
DCell Integration
AMQP on Celluloid
A Standard HTTP server implementation
More plugins for common use-cases
Documentation
Blog posts
Discussion
18
![Page 37: Connecting Adhearsion](https://reader033.vdocuments.net/reader033/viewer/2022051209/54939a71ac79591d2e8b4883/html5/thumbnails/37.jpg)
P A G E
WHAT DO YOU NEED TO CONNECT TO?
@benlangfeld
langfeld.me