Problems of Basecamp Next caching architecture

Školení, která pořádám

I wanted to write this post only as a comment to the article on 37signals blog but comments are closed there. Please read the article first.

This caching architecture has two problems:

  1. It requires four times more caching hardware. Every piece of data is saved to the cache four times (based on the example, sometimes more or less).
  2. It doesn't scale for writes. If data on lower levels are inserted/updated too often then the cache on high level needs to be invalidated and recreated also often. It can result in a situation where this high level cache is written only to be deleted the same second which will actually slow down the application.

Both of these problems are probably not a big deal for Basecamp Next as the writes are not so frequent and 37signals have enough money for the hardware. But they can be serious for other projects trying to use this architecture.

Jakub Vrána, Výuka, 26.3.2012, comments: 1 (new: 0)


johno OpenID:…-expiration-works

There is another problem. If you for example change partial _todo.html.erb you have to bump version for all parent partials manually. Otherwise you end up with views mixed with new and old data. I don't know how a developer coming to a project like this finds out about all the dependencies between partials & views.

Insert Comment

Input is understood as plain text but URLs will be converted to links and PHP code enclosed in <?php ?> will be highlighted.

Name: URL:

avatar © 2005-2018 Jakub Vrána. Publikované texty můžete přetiskovat pouze se svolením autora. Ukázky kódu smíte používat s uvedením autora a URL tohoto webu bez dalších omezení Creative Commons. Můžeme si tykat. Skripty předpokládají nastavení: magic_quotes_gpc=Off, magic_quotes_runtime=Off, error_reporting=E_ALL & ~E_NOTICE a očekávají předchozí zavolání mysql_set_charset. Skripty by měly být funkční v PHP >= 4.3 a PHP >= 5.0.