Skip to main content
dineshvcloud
Participating Frequently
October 23, 2017
Answered

ColdFusion11 Application - Users upload the documents and updated the information.

  • October 23, 2017
  • 2 replies
  • 2146 views

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!

    This topic has been closed for replies.
    Correct answer BKBK

    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.

    2 replies

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    October 25, 2017

    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.

    dineshvcloud
    Participating Frequently
    October 25, 2017

    Adding "Central Storage" would be the best possible way to solve this design.

    Thank you

    BKBK
    Community Expert
    Community Expert
    October 26, 2017

    Please mark haxtbh​'s answer as correct. In this way, you will certainly be helping someone else in future.

    Inspiring
    October 24, 2017

    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.

    dineshvcloud
    Participating Frequently
    October 24, 2017

    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!