Web MVCがもたらす速度低下をどう回避するか

プログラマの不注意をアーキテクチャで予防する

Takashi Iwamoto
Nov 7 · 5 min read

イワモトです。2019年9月から10月にかけ、ベルトラの速度改善に取り組みました。サーバ側の平均応答速度が2割ほど改善され満足なのですが、とある速度低下の遠因がフレームワークのWeb MVCアーキテクチャにあると気づき、モヤモヤしています。本稿で掘り下げてみます。

速度低下とその原因

本稿で掘り下げたいのは「コントローラからビューテンプレートに対して不要なデータを渡していることにより速度が低下している」状況です。

速度を重視するのであれば、無駄な処理は避けるべきです。不要なデータなら、わざわざ参照したり受け渡したりする必要はありません。なぜ、そのような無駄が生まれるのでしょうか。

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Takashi Iwamoto

Written by

An web developer at VELTRA corporation, a member of JAPAN MENSA

VELTRA Engineering

Posts from the VELTRA Engineering team. www.veltra.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade