- Feb 8, 2004
- 12,604
- 15
- 81
I have two ways of architecting a website and would appreciate some input. I will have a main page at "dotnetapps.uk" and I will host various unrelated webapps at different paths so "dotnetapps.uk/countdownsolver" for example. They are only related in that they will use .net core and probably react.js as well. I basically just want to be a cheapskate and use one domain name for multiple things.
1. I can have different projects in visual studio for each app all under one solution. The thing is .net core bakes the webserver (kestrel) right into the app so each app would have to be on a different port. E.g port 9090 would be the main page "dotnetapps.uk", port 9091 would be "dotnetapps.uk/countdownsolver". They would each have their own webserver. I have nginx setup as a reverse proxy already to deal with multiple webservers on the host computer (the host already has tomcat on it). I have got this approach working, but there might be pitfalls though?
2. I can have one single project and different Areas for each app. Areas seem to be the most common way of dividing up a project into multiple sub projects. Despite not really being separate projects this approach may be simpler. There will still be a need for nginx because of the tomcat servers but it would not be a requirement in the future if the website moved to a different host with no other webservers.
Which approach would be best? They both seem to have pros/cons *insert thinking emoji here* Theres literally every single emoji except the thinking one...
1. I can have different projects in visual studio for each app all under one solution. The thing is .net core bakes the webserver (kestrel) right into the app so each app would have to be on a different port. E.g port 9090 would be the main page "dotnetapps.uk", port 9091 would be "dotnetapps.uk/countdownsolver". They would each have their own webserver. I have nginx setup as a reverse proxy already to deal with multiple webservers on the host computer (the host already has tomcat on it). I have got this approach working, but there might be pitfalls though?
2. I can have one single project and different Areas for each app. Areas seem to be the most common way of dividing up a project into multiple sub projects. Despite not really being separate projects this approach may be simpler. There will still be a need for nginx because of the tomcat servers but it would not be a requirement in the future if the website moved to a different host with no other webservers.
Which approach would be best? They both seem to have pros/cons *insert thinking emoji here* Theres literally every single emoji except the thinking one...
