Scanning the Internet for External Cloud Exposures via SSL Certs
Real Value in Real Time: MongoDB-based Analytics at TeachStreet
1. Real Value in Real Time
MongoDB-based Analytics at TeachStreet
Daryn Nakhuda
Chief Technology Officer
TeachStreet.com
1
2. TeachStreet
A marketplace for learning
We help people find classes and teachers
We help teachers get more students
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 2
2
3. TeachStreet
Based in Seattle
7 Full-time employees - 50% dev/engineering
Launched in April 2008
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 3
3
4. Tech Stack
Handful of physical servers
Ruby on Rails
Linux, Nginx, Mongrel, PostgreSQL, Sphinx
MongoDB (MongoMapper, because we <3 jnunemaker)
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 4
4
5. Product
Profile Page
Class Listing and Session Pages
Phone tracking, payment processing, marketing tools, etc.
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 5
5
6. The Problem
People love the idea, but they have no idea if
it is really working for them.
“I’ve never once been contacted by a student who found me on TeachStreet”
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 6
6
7. June 2009
The site is working for you, really!
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 7
7
8. Teacher Dashboard (v1)
Quick Snapshot of Activity
Built on Google Analytics API
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 8
8
9. Teacher Dashboard (v1)
PROS
• Provided insight into a former void
• Easy to understand
• Quickly implemented, no IT impact
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 9
9
10. Teacher Dashboard (v1)
CONS
• Cumulative data only
• No date filters / trending information
• Not real-time
• URL-based, fragile
• “Operationally-Annoying”
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 10
10
11. May 2010
That’ll be $3 please
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 11
11
12. Metrics Dashboard v2
• Track conversions as well as traffic
• Real-time
• Date-filters / Trends
• Keep it simple and easy to use
• Flexible
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 12
12
13. Page Events
‘page_events’ collection
• Views to profile, listing & session pages
• Can also be used for homepage, search,
featured placements, etc.
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 13
13
14. Lead Events
‘lead_events’ collection
• Messages
• Phone Calls
• URL Clicks
• Enrollments
• More Information / Affiliates
These are the things people will ‘do the math’ with
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 14
14
15. Tracking Models
EventAttributes
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 15
15
16. Tracking Models
PageEvent
PageViewEvent
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 16
16
20. How we track
JavaScript - for page actions, to filter robots
Or, just directly to the logger
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 20
20
21. Reporting
Dashboard Presenters:
• Used from web as well as weekly activity emails
• Aggregate functions
• Map/Reduce queries
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 21
21
22. Some Presenter Code
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 22
22
23. Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 23
23
24. Metrics Dashboard (v2)
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 24
24
25. Weekly Summary Email
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 25
25
26. Q &A
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 26
26
27. Thanks!
If you like what you’ve seen, do me a favor:
Find great local and online
<a href=”http://www.teachstreet.com/”>Classes</a>
on TeachStreet
Email: daryn@teachstreet.com
Twitter: @daryn
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com 27
27