Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Baudart 2 posts 22 karma points
    Jan 24, 2017 @ 08:02
    Simon Baudart
    0

    Load Balancer and call to the ContentService

    Hello all,

    We are developing some Umbraco websites for our clients and we host our applications on Azure. Most of the time, the selected plans are with auto-scale and we set up a master server for the back end.

    In our code, sometimes, we are required to import data from external sources into Umbraco and we use the ContentService. Here is an example :

    var node = UmbracoContext.Current.Application.Services.ContentService.CreateContent(data.Name, parent, "details");
    node.SetValue("myProperty", data.TheValue);
    UmbracoContext.Current.Application.Services.ContentService.SaveAndPublishWithStatus(node);
    

    Can we do this on a load balanced hosting ? Is the ContentService safe or do we have to run these jobs on only one instance ?

    Thanks a lot for your help, I did not find any information about this and we have some of our database that gets corrupted without any reason. We think that this could be an issue, but not sure.

    Simon

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies