Copy link to clipboard
Copied
ColdFusion application running on single server, users login and upload the document and save the information and update whenever they can..
If the same application is transfer to the multiple server (For Ex: Server 1 and 2) and when the same user want to update his latest information the "webroot" will be updated in one Server. Due to Load-Balancer we might connect to Server '1' and Server '2'. what if the user logged into the application and verify his information and he connected to the different server this time, he cannot find his updated info.
Please help me to resolve this issue.
Thanks in advance!
dineshvcloud wrote
If the same application is transfer to the multiple server (For Ex: Server 1 and 2) and when the same user want to update his latest information the "webroot" will be updated in one Server. Due to Load-Balancer we might connect to Server '1' and Server '2'. what if the user logged into the application and verify his information and he connected to the different server this time, he cannot find his updated info.
This problem tells you that there is something wrong with the des
...Copy link to clipboard
Copied
You might not get much help here as this is not a Coldfusion issue.
However, if you are using load balancers then you will need to make sure something like Sticky Sessions is enabled so that the user tends to resume the same session each time. Realistically though for uploading files you need a central storage that each web server can access (DFS Share etc) so that no matter which server you upload to, the file is accessible.
If you wanted to go further you could even use the Coldfusion Clustering (Enterprise) but this relates to sessions etc only, not to the file uploading.
Copy link to clipboard
Copied
Appreciate you response, I thought CF Mapping would help in these kind of scenarios.
Please let know if we can use Logical Path to redirect the webroot.
Thank You!
Copy link to clipboard
Copied
dineshvcloud wrote
If the same application is transfer to the multiple server (For Ex: Server 1 and 2) and when the same user want to update his latest information the "webroot" will be updated in one Server. Due to Load-Balancer we might connect to Server '1' and Server '2'. what if the user logged into the application and verify his information and he connected to the different server this time, he cannot find his updated info.
This problem tells you that there is something wrong with the design. If your solution is properly designed, the client and the load-balancer will know nothing about the location of uploaded files. haxtbh has given you what is possibly the best design:
for uploading files you need a central storage that each web server can access (DFS Share etc) so that no matter which server you upload to, the file is accessible.
Copy link to clipboard
Copied
Adding "Central Storage" would be the best possible way to solve this design.
Thank you
Copy link to clipboard
Copied
Please mark haxtbh's answer as correct. In this way, you will certainly be helping someone else in future.
Copy link to clipboard
Copied
Hi dineshvcloud, the correct answer is Haxtbh's, not mine!