Clinton Green
Clinton Green

Reputation: 9977

Website crashing when too many requests happen at once

We have a website which advertises a competition on TV each month. When the advert runs the website gets around 4000 submissions and this causes it to crash

The website runs off Silverstripe and is hosted on Apache.

I have read about queuing, and this sounds like the solution but I have spoken to the Silverstripe dev and the Server admin and both say that the other needs to make this happen.

My question is should the queuing be done on the website or the server?

Upvotes: 1

Views: 1093

Answers (3)

wilr
wilr

Reputation: 318

Good overview of all the areas to look at for SilverStripe on http://www.silverstripe.org/improving-silverstripe-performance/.

Upvotes: 0

mylesthe.dev
mylesthe.dev

Reputation: 9685

What kind of server are you running? You can get many different types these days... for example some do load balancing etc which might help prevent the crashing.

Also there are plenty of third party applications that you could integrate with to help you with job queuing like http://www.iron.io/ or http://aws.amazon.com/sqs/.

Another option is to find a module for silverstripe that already exists... I had a really quick look on github and found a one that might do the job you require - https://github.com/silverstripe-australia/silverstripe-queuedjobs

Let me know how you get on :)

Upvotes: 1

3dgoo
3dgoo

Reputation: 15794

To help Silverstripe handle lots of requests you can install the Static Publishing module:

http://www.silverstripe.org/introducing-the-static-publish-queue-module/

Your developer would implement that on the website.

This will create a flat version of your website that is served to users. This greatly reduces server load.

Upvotes: 1

Related Questions