Copied to clipboard

Flag this post as spam?

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

  • Richard Read 16 posts 47 karma points c-trib
    Apr 01, 2021 @ 08:29
    Richard Read

    uSync Publisher - with horizontally scaled website


    I wonder if anyone has any knowledge on this? I'm currently running a website that utilises uSync Publisher, and pushing content / media between a 'admin' site through to a public facing site. Each site has their own independent database and are kept seperate for security reasons.

    What I would like to know is whether it's feasible to continue using uSync Publisher if the public facing site was horizontally scaled? I'm conscious that this isn't like a traditional flexible load-balancing setup, so in that sense if I 'published' from an admin site, that would instruct all the public facing slave instances to refresh their cache and be in sync. As I'm using seperate databases, and I think when uSync publisher pushes updates to the public site, it's only instructing the first server it encounters from Azure's load-balancer. This would result in only one of the public facing instances having updated content.

    Is this correct? Has anyone else encountered this scenario or seen any way to work with this kind of setup?

    Many thanks


  • Kevin Jump 2133 posts 13485 karma points MVP 6x c-trib
    Apr 01, 2021 @ 09:14
    Kevin Jump

    Hi Richard,

    you are right in that in its currenty form publisher is publishing to the one site when you publish (and then if it was load balanced - that would replicate between servers)

    if you wanted to publish to multiple separate sites in a single 'publish' action then publisher could probably be made to do this (with some custom code) and we could probably accommodate it somehow - but it would have to have an element of customization because its very much an implementation specific thing.

    but i am not sure this would be the best way. If all the sites are essentially acting like a big load balanced site, but you can't have a shared database i would be really tempted to look into database replication and refreshing caches in Umbraco. So when one 'master' site was published - something else would replicate database changes between sites, and then trigger Umbraco to refresh (that is in simple terms how the load balancing works)

    you mention azure so i am not sure maybe Azure geo-replication would be something to look at ?

    Not to say you couldn't do this with publisher - you really could. it would just need a bit of work.

  • Steve Crook 18 posts 129 karma points
    Nov 15, 2021 @ 06:48
    Steve Crook

    Hi Kevin,

    I'm currently looking into uSync to do what Rick was asking about - i.e. having multiple publish targets in different locations when pushing changes from a staging site. Our DBAs have looked at replicating database changes and seem to think it's all too hard, plus we'd need to copy media and all other files around, so uSync Publisher seems like a possible all-in-one solution.

    How much work would this be to implement? Do you have any advice on where to begin, or is it something you'd need to build into uSync itself?

    Thanks Steve

Please Sign in or register to post replies

Write your reply to: