简体   繁体   English

AWS RDS连接最佳实践

[英]AWS RDS Connection Best Practice

I am looking to utilize AWS OpsWorks to deploy a PHP application utilizing a MySQL back-end. 我希望利用AWS OpsWorks来利用MySQL后端部署PHP应用程序。 I have the PHP layer configured and built with some test PHP app deployed. 我配置并构建了PHP层,并部署了一些测试PHP应用程序。 I'm pondering between a normal MySQL back-end, or utilizing the AWS RDS MySQL back-end. 我正在考虑在普通的MySQL后端之间,还是在利用AWS RDS MySQL后端之间。

My question would be regarding the connectivity from the PHP front end servers to the back-end MySQL instance. 我的问题是关于从PHP前端服务器到后端MySQL实例的连接性。 What is the experience from users already doing this? 用户已经这样做的经验是什么? Any gotchas to worry about? 有什么需要担心的问题吗? We currently develop locally using the typical db.php file containing the information to connect to the DB. 当前,我们在本地使用典型的db.php文件进行开发,该文件包含连接数据库的信息。 Usually on the same server. 通常在同一台服务器上。

Anyone else doing something similar? 还有其他人在做类似的事情吗? Suggestions? 建议?

RDS is quite mature at this point, I strongly recommend using it instead of an EC2 instance with MySQL. RDS在这一点上已经相当成熟,我强烈建议使用它代替MySQL的EC2实例。 In the long run it will help scale your application if your DB is the bottleneck in the architecture. 从长远来看,如果您的数据库是体系结构的瓶颈,它将帮助您扩展应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM