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 trial
Rohit Begani
5,614 Pointsj2ee or php?
I want to know that whether I should use j2ee or php to code a website targeted towards a huge audience. I read somewhere that php is supposedly slower than j2ee. While I know that websites like facebook use php. So, I am confused that which language should I use?
4 Answers
Kevin Korte
28,149 PointsI'll just take a stab. I think the speed of the site depends way more on how you wrote the code, vs the language that was actually used. It seems that all of the major web applications are somewhat spread out amongst many of the languages.
I've never heard of j2ee until just now, but I know php has a huge following of users, and it seems fairly easy to find solutions to issues through either sites like stackoverflow or php documentation.
Which one should you use? Whichever one you're more comfortable with. That's just my opinion from my limited experience.
Randy Hoyt
Treehouse Guest TeacherI wouldn't expect the language choice to be the bottleneck. There are websites that are larger than yours will be written in both PHP and Java. There are all kinds of other issues that are more important to performance.
Rohit Begani
5,614 PointsThanks Kevin and Randy for your help.
Randy, can you please tell me what kind of issues are you talking about?
Thanks
Randy Hoyt
Treehouse Guest TeacherSpeed of database queries. File size of static assets (CSS, JavaScript, images) and performance in the browser. Amount of RAM. Number of web servers. To serve millions of users, you'll need a sophisticated setup with a load balancer in front of multiple web servers, a CDN, page or object caching, and more.
Rohit Begani
5,614 PointsOkay thanks. I guess I got a lot to learn.