resiliency, it is critical that a Rails application should be # able to boot without depending on the database (or any other service) # being responsive. # # Otherwise a bad deploy adding a lot of load on the database may require to # entirely shutdown the application so the database can recover before a fixed # version can be deployed again. # 同ファイル:168 — 条件式の直前 # This means the attribute methods will be lazily defined when the model is accessed, # likely as part of the first few requests or jobs. This isn't good for performance # but we unfortunately have to arbitrate between resiliency and performance, and chose # resiliency. DBが重いだけでアプリが起動できない → 修正版もデプロイできず、復旧はアプリを全部止めるしかない Railsは「何があっても起動できること」を優先し、コストを起動直後のリクエストに先送りしている 13