Optimizing Ruby On Rails Apps With Layered Design