# Hi, when do you start worrying about scaling and caching?

**URL:** <https://www.ruby-forum.com/t/hi-when-do-you-start-worrying-about-scaling-and-caching/92130>\
**Category:** Rails\
**Created:** [April 16, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/hi-when-do-you-start-worrying-about-scaling-and-caching/92130 "2007-04-16T14:56:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [April 16, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/hi-when-do-you-start-worrying-about-scaling-and-caching/92130/1 "2007-04-16T14:56:23Z")

</div>

i will be launching my first rails project soon after i complete  
testing, and now being the paronoid programmer i am, i started thinking  
about the scaling and caching. when should these defense tactics be  
implemented? when my site gets 1000 views, 500,000 views, or 1mill + a  
day?

thanks.

---

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [April 16, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/hi-when-do-you-start-worrying-about-scaling-and-caching/92130/2 "2007-04-16T15:31:48Z")

</div>

On 16 Apr 2007, at 14:56, mixplate wrote:

> i will be launching my first rails project soon after i complete  
> testing, and now being the paronoid programmer i am, i started  
> thinking  
> about the scaling and caching. when should these defense tactics be  
> implemented? when my site gets 1000 views, 500,000 views, or 1mill + a  
> day?

It all depends on your server: are you using a VPS, dedicated server,  
what are the server specs, how complex your application is Â… There  
simply is no magic number.

Monitoring your server load should give you an indication on when to  
start caching/scaling.

Caching is the first thing you should consider and Rails makes it  
very easy to implement and it can be done at any time. There is no  
real cost involved (except for your time of course). If I were you, I  
would consider it as soon as possible, especially if you’re on a  
shared host or VPS. It will make your application more performant,  
even when there’s no server load at all.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [April 17, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/hi-when-do-you-start-worrying-about-scaling-and-caching/92130/3 "2007-04-17T17:51:47Z")

</div>

On Apr 16, 5:56 am, mixplate [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i will be launching my first rails project soon after i complete  
> testing, and now being the paronoid programmer i am, i started thinking  
> about the scaling and caching. when should these defense tactics be  
> implemented? when my site gets 1000 views, 500,000 views, or 1mill + a  
> day?

Monitoring is the first step. I use the Robot Co-Op’s libraries for  
analyzing Rails log files when written in a special format:

[http://nubyonrails.com/articles/2007/01/03/a-hodel-3000-compliant-logger-for-the-rest-of-us](http://nubyonrails.com/articles/2007/01/03/a-hodel-3000-compliant-logger-for-the-rest-of-us)
