HACKER
TALK
Home
Bookmarks
Messages
Notifications
Sign In
Comment
crud 这么多,为什么 JS 不能直接绕过后端掉数据库就行了
项目中大量代码都是 crud 重复性工作,前端直接约定数据结构调用后端数据库不是更加直接吗? 有什么 js 不能做的?
HD Superman
·
2 years ago
Across the Great Wall, we can reach every corner in the world.
安全问题,一些接口需要鉴权,字段需要隐藏不能暴露给前端,数据库链接,token 暴露给前端容易被脱裤
后端不只是数据库,有可能查的数据来自缓存,所以不能直接用sql
sql 的复杂度很高,一些场景需要 sql 优化缓存优化,这部分前端做了复杂性更高,不利于关注点分离
1
Reply
Report
HD Superman
Joined 3 years ago
Across the Great Wall, we can reach every corner in the world.
https://github.com/hdsuperman
Follow
Message
Latest posts
app无法登录,抓包数据。网页版可以登录,求分析求解
分享免费云服务器
急切寻求rust编译问题帮助(archlinux, openssl)
分享免费GPT4站点
【轉貼】ASP.NET Core Developer Roadmap in 2024
南京大学研究中心诚募博士后
求助can't establish SSL connection.