Home > Database > Mysql Tutorial > body text

mysql存储过程问与app问题

WBOY
Release: 2016-06-06 09:40:02
Original
907 people have browsed it

mysqlapp存储过程

最近做一款app的时候用到存储过程 突然有了些想法 请大神答疑
传统的app结构
1app请求web服务器
2web服务器调用脚本语言操作数据库
3数据库返回结果给web服务器
4web服务器将结果返回给app

那么是否app可以直接请求db呢?
假设db在公网 app网段可以请求到
db中以过程的形式执行 那么就成了
1app请求数据库
2数据库返回数据给app
就相当于省去了web服务器环节

假设db可以承受的并发 IO cache cpu 足够大 不考虑后期维护更新 那么这种架构是否可行?缺点在哪?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!