I'm trying to setup a Rails project that has 2 logically separated components, the admin panel and the user portal. From what I've read so far there are a number of ways to set this up;
The Main app will need to handle heavy traffic, the admin moderately low.
What is the best approach to set up the project among the four options?
Also what could be the downsides of each?
Is there any other way this can be done better?
Some ideas about the possible architectural solutions:
pros:
You have everything under a single project configuration, and by so you avoid to configure your project settings twice.
You can re-use code without needing to copy files or reference files in a different directory which sometimes can be troublesome.
cons:
pros:
cons:
This would be the best case in most scenarios.
Can't think why you want to do this when the second application is meant to handle the first one and the contents of the database. If you were going to use a big volume of data in the second application that were irrelevant to your main application, it would be a reasonable option.
cons:
You will develop solution one with the added complexity of handling two instances.
A malicious user might find a way to login in your admin instance and getting access to admin-level functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With