3
CSR 真的比 SSR 省服务器算力吗,接口该查数据库该计算不还是要?感觉处理多个接口算...
source link: https://www.v2ex.com/t/847151
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
3 条回复 • 2022-04-15 16:25:39 +08:00
leisure 8 小时 13 分钟前
作为前端开发,我觉得 CSR 节省不了多少算力吧 。而且进行 SSR 的 server 跟提供接口服务的 server 本来就不应该是同一台啊... CSR 跟 SSR 按道理说不应该对接口的 server 有实质性的影响才对
codehz 7 小时 4 分钟前 via Android
主要是你可以在前端做缓存,至少普通用户乱刷新也不会发很多请求了(考虑 service worker 直接拦截静态资源,和 local storage/indexed db 存用到的数据,可以做到 0 请求)
你做成全部都单独请求那就省不了了
你做成全部都单独请求那就省不了了
murmur 6 小时 42 分钟前
就是没事瞎折腾,比起数据库的负载,前端那点东西忽略不计
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK