SlideShare a Scribd company logo
1 of 21
Off the Reservation with TweetReach Hayes Davis Co-Founder, Appozite [email_address] @hayesdavis
So what's this all about? ,[object Object]
A few requirements ,[object Object]
Be simple(ish)
Be reasonably fast for a resonable number of users
Fit within Twitter API limits
What to use? ,[object Object]
Persistence layer: Tokyo Cabinet + Tokyo Tyrant + Memcache-client
Twitter API: Grackle
What is Sinatra? ,[object Object]
Handles just the view and controller part ,[object Object]
Views can use ERB (and others) ,[object Object]
Sinatra Example set :port, 3000 get '/' do erb :index end get '/reach' do @query = params[:q] tr = TweetReach.new(username,pass) @results = tr.measure_reach(@query) erb :reach_results end
What is Tokyo Cabinet? ,[object Object]
Stats: 2.5M inserts/second, 3M queries/second, Store 8 exabytes
Has a server called Tokyo Tyrant
More Tokyo Cabinet ,[object Object]
B-tree: functionally the same as the hash DB but with ordered keys based on a user-defined function
Fixed-length: basically a giant array which you index into by offset keys
Table: similar to a relational DB except no predefined schema (ala CouchDB). Can index columns and query them
Tokyo Tyrant ,[object Object]

More Related Content

Viewers also liked

fidelity national information 2005 ar
fidelity national information  2005 arfidelity national information  2005 ar
fidelity national information 2005 arfinance48
 
telephone data systems USMProxyExhibit13_0610K
telephone data systems  USMProxyExhibit13_0610Ktelephone data systems  USMProxyExhibit13_0610K
telephone data systems USMProxyExhibit13_0610Kfinance48
 
advance auto parts 2006ar
advance auto parts 2006aradvance auto parts 2006ar
advance auto parts 2006arfinance48
 
Si Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro Futuro
Si Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro FuturoSi Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro Futuro
Si Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro FuturoTrendster
 
Understanding Of Knowledge Management
Understanding Of Knowledge ManagementUnderstanding Of Knowledge Management
Understanding Of Knowledge Managementcharisma59420
 
Present Tense Verbs
Present Tense VerbsPresent Tense Verbs
Present Tense Verbsguest1d32ab
 
Tennesse.Teresa Bergera
Tennesse.Teresa BergeraTennesse.Teresa Bergera
Tennesse.Teresa Bergeramariavigarces
 
Õpilasfirma Ülle Tõnutare Kodutöö
Õpilasfirma Ülle Tõnutare KodutööÕpilasfirma Ülle Tõnutare Kodutöö
Õpilasfirma Ülle Tõnutare KodutööTonutare
 
The 22 Deadly Sins
The 22 Deadly SinsThe 22 Deadly Sins
The 22 Deadly SinsRajesh Goyal
 
Registering & Booking Appointments
Registering & Booking AppointmentsRegistering & Booking Appointments
Registering & Booking AppointmentsUCEW
 
BarTab Instructional Powerpoint
BarTab Instructional PowerpointBarTab Instructional Powerpoint
BarTab Instructional Powerpointguest3126d5
 
ncr annual reports 2005
ncr annual reports 2005ncr annual reports 2005
ncr annual reports 2005finance46
 
Presentation
PresentationPresentation
Presentationsmartwtp
 
3projects
3projects3projects
3projectsklee4vp
 

Viewers also liked (20)

fidelity national information 2005 ar
fidelity national information  2005 arfidelity national information  2005 ar
fidelity national information 2005 ar
 
telephone data systems USMProxyExhibit13_0610K
telephone data systems  USMProxyExhibit13_0610Ktelephone data systems  USMProxyExhibit13_0610K
telephone data systems USMProxyExhibit13_0610K
 
advance auto parts 2006ar
advance auto parts 2006aradvance auto parts 2006ar
advance auto parts 2006ar
 
Report Examples
Report ExamplesReport Examples
Report Examples
 
Si Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro Futuro
Si Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro FuturoSi Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro Futuro
Si Los NúMeros No Fueran Al Azar, Podriamos Cambiar Nuestro Futuro
 
Understanding Of Knowledge Management
Understanding Of Knowledge ManagementUnderstanding Of Knowledge Management
Understanding Of Knowledge Management
 
Present Tense Verbs
Present Tense VerbsPresent Tense Verbs
Present Tense Verbs
 
Tennesse.Teresa Bergera
Tennesse.Teresa BergeraTennesse.Teresa Bergera
Tennesse.Teresa Bergera
 
Õpilasfirma Ülle Tõnutare Kodutöö
Õpilasfirma Ülle Tõnutare KodutööÕpilasfirma Ülle Tõnutare Kodutöö
Õpilasfirma Ülle Tõnutare Kodutöö
 
presentacion
presentacionpresentacion
presentacion
 
Info Flexing 2009
Info Flexing 2009Info Flexing 2009
Info Flexing 2009
 
The 22 Deadly Sins
The 22 Deadly SinsThe 22 Deadly Sins
The 22 Deadly Sins
 
Registering & Booking Appointments
Registering & Booking AppointmentsRegistering & Booking Appointments
Registering & Booking Appointments
 
Testa
TestaTesta
Testa
 
Defining An Intellectual Property Policy For INERA Burkina Faso
Defining An Intellectual Property Policy For INERA Burkina FasoDefining An Intellectual Property Policy For INERA Burkina Faso
Defining An Intellectual Property Policy For INERA Burkina Faso
 
BarTab Instructional Powerpoint
BarTab Instructional PowerpointBarTab Instructional Powerpoint
BarTab Instructional Powerpoint
 
ncr annual reports 2005
ncr annual reports 2005ncr annual reports 2005
ncr annual reports 2005
 
Presentation
PresentationPresentation
Presentation
 
Wdh 27012010
Wdh 27012010Wdh 27012010
Wdh 27012010
 
3projects
3projects3projects
3projects
 

Recently uploaded

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

Building TweetReach with Sinatra, Tokyo Cabinet and Grackle: Austin on Rails 2009-03-24