开发者

Preparing data in json on backend and populating data via ajax on frontend, what're the problems?

开发者 https://www.devze.com 2023-01-10 09:37 出处:网络
Preparing data in json format on backend 开发者_开发知识库and populating data to templates via ajax on frontend, what\'re the problems with this architect design? Assume all visitors use javascript-ca

Preparing data in json format on backend 开发者_开发知识库and populating data to templates via ajax on frontend, what're the problems with this architect design? Assume all visitors use javascript-capable browsers, and we don't care about the number of HTTP connections that a webpage has to make.


That architecture is fine, in fact it is the architecture enforced by some frameworks like javascriptmvc.

Just some comments:

  • Depending on the complexity of the templates the rendering can be slow in the client side.

  • If you have a lot of simultaneous requests from the same client to get data, they will be queued to keep a maximum of two simultaneous requests delaying the page load.

0

精彩评论

暂无评论...
验证码 换一张
取 消