issues
search
pengkobe
/
reading-notes
:stars: to record daily reading notes. I build an issue blog to record daily FE study notes. suggestion and comments are welcomed.
https://github.com/pengkobe/reading-notes/issues
MIT License
13
stars
1
forks
source link
业务写前端好还是后端好?
#501
Open
pengkobe
opened
5 years ago
pengkobe
commented
5 years ago
这是一个很有争议的话题,有人说写前端好,有人说写后端好。
写前端好
可以降低服务器压力
前端计算很快,用户不会感受得到小小的计算时间
前端语言发展,有各种框架和库的支持,写代码和后端一样高效
写后端好
前端专注 UI,业务更改时只需要修改后端代码发布即可,前端版本管理复杂,发布麻烦
后端缓存后,对重复信息不需要重复计算,直接拉取就能用
业务逻辑与基础数据平台和前端的分离,利于开发人员开发与维护
貌似跟写在前端和后端也没有关系
冗余字段较多,而网络流量的花费不容小觑
部分功能需要多次请求,而网络延时的不确定性往往比后端内网大
总
需要经常变更的还是写后端比较好
不需要变更的直接写在前端也无妨
这是一个很有争议的话题,有人说写前端好,有人说写后端好。
写前端好
写后端好
总