Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trializelnakri
25,803 PointsA Question to Treehouse Staff
Quizzes on treehouse has become faster and more responsive. I would like to know how that happened. I have few real-time applications and sometimes websockets don't work properly send or receive the data or worse the application crashes from time to time. My web applications use socket.io and Heroku.
I've checked the frontend it seems you guys are using an additional service called PubNub. Is that the reason why quizzes are more 'responsive' now? and Could you guys briefly explain the details behind your socket infrastructure.
2 Answers
James Barnett
39,199 PointsTagging Tommy Morgan on this one.
Tommy Morgan
Treehouse Guest TeacherHi Izel Nakri -
Well, it depends on your context. :) I don't know when you last tried quizzes, so I can't tell you exactly what's changed that might have made them faster.
We do make use of PubNub, but I'm pretty sure that's for code challenges and our notification system - for the quizzes it's all just AJAX (all we need to do is verify the student's answer and then load data for the next question, so we don't really need a socket connection for that).
Hope that helps.