交通繁忙的设计指南
我正在开发一个电影评论网站。在当前的设计中,前端(jQuery、HTML、CSS)与模型(处理 MYSQL 数据库的单独 php 脚本)连接以进行基本存储和检索。这种简单的设计适用于小流量。
我关心的是如何解决与同时收到许多请求的大流量相关的问题。 我应该对模型部分进行哪些设计更改以处理大流量并使系统可扩展?
PS:如果您需要更多信息,请告诉我。
谢谢
I am working on a website for movie reviews. In the current design, the front-end( jQuery, HTML, CSS) connects with the model (individual php scripts which deals with MYSQL database) for basic storage and retrievals. This trivial design will work for small traffic.
My concern is how to tackle problems related to heavy traffic with many requests coming in at the same time. What are the design changes i should do to the model part to handle heavy traffic and make the system scalable?
PS: please let me know if you need more info.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://redis.io/ - Redis 允许您的数据库驻留在内存中惰性写回磁盘。这极大地提高了数据库性能。先倒入一桶RAM。 Memcached 也是一种流行的工具,但功能不够丰富。
http://redis.io/ - Redis allows your database to be memory-resident with lazy writes back to disk. This greatly improves DB performance. Pour in a bucket of RAM first. Memcached is also a popular tool, but not as feature-packed.