Best practice for structuring a 'large' Rails app

后端 未结 6 528
情深已故
情深已故 2021-01-30 18:27

My question here is seeking best practice, general advice and insight, rather than a solution to a specific problem.

I am in the early stages of planning out a Rails pro

6条回答
  •  逝去的感伤
    2021-01-30 19:01

    I see the kind of problem you are facing is, trying to build an application which will have various sub domains, so account_manager a plugin can solve your problem.

    also if your application is large enough to maintain than splitting them in two or three would be good idea, with restfull resources you can make your applications talk to each other and so.

    while if you are thinking of having them under one database, thats quite simple in rails using the establish_connection.

    I think you can split the application in three to four different applications where set of clusters will handle each applications request, so the speed will be good. also you can bundle similar kind of functionality in one app to make sure maintaining them is easy.

    http://www.railslodge.com/plugins/1113-subdomain-fu

提交回复
热议问题