开发者

CodeIgniter: distributed production deployment

开发者 https://www.devze.com 2023-01-28 21:30 出处:网络
Couldn\'t find any references on how to deploy a CodeIgniter application distributedly: One (or many, through a load balancer) machine to views + controllers; samething for the Model layer.

Couldn't find any references on how to deploy a CodeIgniter application distributedly: One (or many, through a load balancer) machine to views + controllers; samething for the Model layer.

Does codeigniter offer a easy setup on this, or will I have to set this up on my own?

Any 开发者_如何学运维thoughts appreciated :)


Your HTTP load balancer should handle which server running your codeigniter application should serve the incoming request. All your views, models and controllers will be replicated across all servers, but will communicate with one single data store (eg: mysql db). A unique session between the client and your server will maintain synchronicity between which server instance the client is being served from.

I don't think you really need to worry about creating a soap layer, unless each of your application servers are maintaining their own Databases locally, and then synchronizing to a master DB or among themselves.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号