Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Do comments increase page weight
Ari Misha19,268 Points
Hiya there! Your comments and the user who commented on same post, and every info relative to user, gets stored in the database behind the scenes. Now in the real world web apps, a system has like multiple databases. They even have multiple back-end structures in different Frameworks. Sites like AirBnB, Youtube etc., have adapted their back-end architecture with multiple frameworks serving the same needs: Request-Response cycle.
Now everytime a user posts a comment, your back-end architecture generates a HTTP POST method and send it to the controller(C in MVC), which Controller routes it to database and either updates the existing data or creates new rows in multiples databases at the same time and then serves you the success confirmation on screen for the user. This is one Request-Response cycle. More the requests , more workload your server has to perform, right? Thats something defo you need to plan ahead of time so that your app or server wont break. And every comment does increase workload on your servers as well databases behind the scenes , and it affects the performance of your application.