How can I detect and survive being “Slashdotted”?

前端 未结 24 1859
半阙折子戏
半阙折子戏 2021-01-29 21:19

What\'s a good way to survive abnormally high traffic spikes?

My thought is that at some trigger, my website should temporarily switch into a \"low bandwidth\" mode: swi

24条回答
  •  一生所求
    2021-01-29 21:53

    Use caching!

    If you're using WordPress (for example), you can use something like WP-Super-Cache. If you're using regular PHP there are still a number of options you can use including memcache. Or you can just use regular squid proxy style caching.

    Any caching you use will help bulletproof (or slashdot/digg-proof) your site :-)

提交回复
热议问题