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 725653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:21:40+00:00 2026-05-14T06:21:40+00:00

My team and I are in the middle of developing an application which needs

  • 0

My team and I are in the middle of developing an application which needs to be able to handle pretty heavy traffic. Not facebook level but in the future I would like to be able to scale to that without massive code re-writes.

My thought was to modularise out everything into seperate services with their own interfaces. So for example messaging would have a messaging interface that might have send and getMessages() as methods and then the PHP web app would simply query this interface through soap or curl or something like that. The messaging application could then be any kind of application so a Java application or Python or whatever was suitable for that particular functionality with its own seperate database shard.

Is this a good approach?

  • 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-14T06:21:41+00:00Added an answer on May 14, 2026 at 6:21 am

    Modularise

    My thought was to modularise out
    everything into seperate services with
    their own interfaces. So for example
    messaging would have a messaging
    interface that might have send and
    getMessages() as methods and then the
    PHP web app would simply query this
    interface through soap or curl or
    something like that

    I like the idea of separating every in service modules(good coding principle). I don’t like the part about SOAP :(. I think it is way to complex. I would go for something like JSON-RPC or something.

    Some quick tips:

    My team and I are in the middle of
    developing an application which needs
    to be able to handle pretty heavy
    traffic. Not facebook level but in the
    future I would like to be able to
    scale to that without massive code
    re-writes.

    • Like the others also hinted I would advice you to look at High Scalability blog.
    • First focus on the front-end using YSlow / google page speed. This optimization are easy to implement and can give you significantly boosts. A quote from the Yslow webpage:

    80% of the end-user response time is
    spent on the front-end. Most of this
    time is tied up in downloading all the
    components in the page: images,
    stylesheets, scripts, Flash, etc.
    Reducing the number of components in
    turn reduces the number of HTTP
    requests required to render the page.
    This is the key to faster pages.

    • I would also advice you to have a look at HipHop for php which converts your php code to C code which was a huge boost for facebook. A quote from the article:

    With HipHop we’ve reduced the CPU
    usage on our Web servers on average by
    about fifty percent, depending on the
    page. Less CPU means fewer servers,
    which means less overhead

    • I guess another big/easy improvement if not already setup is to use APC(opcode cache) to cache your compiled code. This will give you a huge boost(not necessary for the parts converted to HipHop).
    • If you want your websites to scale you have to go by the mantra:

      RAM is the new Disk

      !Cache, cache, cache! with for example APC, memcached, redis.

    • First profile your PHP code then optimize low hanging fruit. I found this audio file from Rasmus Lerdorf really useful. When reading the blog post you will find a lot of good tips to improve performance.
    • Also I would consider moving away from the relation database in favor of for example Cassandra. This is a move which I see a lot of big players do recently(for example twitter, digg, facebook, reddit). You will have to go in a complete different mindset this way, but my bet is this will totally be worth the effort.
    • Queue everything and delight every one with for example beanstalkd, gearman or google app engine’s taskqueue.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a rather large application my team and I are developing that contains
My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy
My team is developing a new service oriented product with a web front-end. In
In medium to large organizations what team or group typically support middle tier components
My team is building our first significant Silverlight application, using a 3 layered architecture
I am building a build process for our web development team. All it needs
I'm in a team of 15 developers currently using Allfusion Harvest. We're not happy
Our team has been testing our application with Selenium as it's heavily JavaScript driven
Our team trying to create a windows application(c#) to call a WCF service using
My team is trying to build an Android application for a tablet that will

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.