Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3783778
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:16:35+00:00 2026-05-19T11:16:35+00:00

For high scalability & performance needs for a social portal, is it advisable to

  • 0

For high scalability & performance needs for a social portal, is it advisable to have C++ or Java implementation at the backend of an PHP application ?

What are the benefits & trade-offs of the same ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:16:36+00:00Added an answer on May 19, 2026 at 11:16 am

    In raw performance terms, C++ will get you a fair bit further than Java or PHP, and slightly further than C#. By this I mean that if you implement the same algorithm in these different languages you are most likely to see the best performance from C++ (although it will depend exactly on what you’re doing and how you do it – a different language on its own is not a magic bullet; you need to learn how to make the best use of that language, which can take years).

    As @spender has said, using well thought out algorithms and architecture will usually give a greater gain in performance and a much greater gain in scalability than simply switching to a different language might achieve. Performance is fundamentally about being efficient (minimising your usage of resources like bandwidth, memory, disk and CPU) and scalabilty is primarily about making things work well in parallel (minimising contention for resources like data, bandwidth, memory and CPU, and minimising the need for different parts of your system to communicate with each other)

    As @Kugel said, if you have a truly scalable architecture then you can to some extent just throw more hardware at the problem, which might initially be a cheaper approach than rewriting everything in a different language. However, if your site is successful, making your code as efficient as possible will reduce your hardware and running costs.

    Another consideration may be development/maintainability related – if you are an expert in PHP and a newbie at C++, you may well squeeze more out of PHP than you can out of C++. You have to consider the whole picture and work out what is the most “commercially viable” solution, not just what is the theoretically highest performing one. Or you may find that your “thrown together and works surprisingly well” PHP solution is up and running in a week while your highly optimised C++ never quite gets finished.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read this article from High Scalability about Stack Overflow and other large
I am building a project requiring high performance and scalability, entailing: Role-based authentication with
NoSQL databases & particularly Cassandra have created a lot of buzz with their high
Let's say you want to build a web application with high scalability (over 10,000
I’m looking into an architecture for high scale web performance application (theoretical at this
I'm currently developing a system to ensure high performance, availability and scalability; fail-over and
What various methods and technologies have you used to successfully address scalability and performance
just was reading this article http://highscalability.com/blog/2010/3/23/digg-4000-performance-increase-by-sorting-in-php-rather-than.html And found this nice article http://wiki.apache.org/cassandra/DataModel I just
I have been working with PHP for years and gotten a very good grasp
What design patterns or techniques have you used that are specifically geared toward scalability

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.