Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 20, 2016 @ 12:36
    Jeroen Breuer
    0

    Umbraco hosting in Europe and China

    Hello,

    We're developing a website which should be available in Europe, but also in China. If we host the website in Europe the performance in China will be bad.

    So we want to host the website in both Europe and China.

    For now we have 2 options.

    1. Create 2 separate versions of the website. The first version will have it's own database and server in Europe and the second version in China. So it's the same website but they aren't linked and they have the content of their own language in their own database.
    2. Have 2 frontend servers that connect to the same database. The database can be hosted in Europe. On the frontend server in China we can use a lot of caching so it should perform well. The frontend servers somehow need to sync. Maybe and Azure Web App.

    Does anyone have a better suggestion and would it be hard to sync 2 frontend servers?

    Can a frontend server in China connect to a database that's hosted in Europe or does China block that?

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 20, 2016 @ 12:52
    Jeroen Breuer
    0

    A third option would be to not just replicate the frontend server, but also the database. Than the frontend server and database are hosted in China. We just need to make sure that all changes are done in the database in Europe and if something needs to be written to the database from the frontend it should also go into the correct database.

    Jeroen

  • Ravi Motha 290 posts 500 karma points MVP 7x c-trib
    Jun 20, 2016 @ 13:24
    Ravi Motha
    1

    You need to talk to either Fuji Kasaka (@twit_fuji) or Chris Evans (@cpevans), who have both set up web sites for Mainland china and all the attendent stuff you have to do.

    no outbound connections, getting the special license etc Ravi

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 20, 2016 @ 14:37
    Fuji Kusaka
    1

    Hey Jeroen,

    China is somehow a very different experience i must say. Forget about using any jS having any relation with Google or any other social media such as twitter, fb, youtube or anything having any relation with google.

    Basically what we created everything on a our Uk server . 1 instance with multiple languages. Duplicate the whole website and host only the CH / CN in china mainland. One thing you should know is the chinese have their own browser Baidu and if you use google to search anything, you will not get much.

    However we added an extra step, a staging environment on our UK server itself, with all the languages but removed any social media scripts within the templates.

    All changes are done on the local dev, then pushed to staging and from staging either UK or CN LIVE using courier. It does take some time to push from UK to CN. Bare in mind you website can be banned if you dont bind to local standards.

    Do you have someone in China ? you will need to get an ICP licence to be able to host there. It takes 2-3 weeks to do get all the papers.

    If you need anything else let me know, hope this help.

  • David Lai 1 post 21 karma points
    Jun 16, 2021 @ 11:36
    David Lai
    0

    HI Fuji,

    I'm doing my first in stall in china with umbraco 8 Possibly 9 on the install, I have installed sites in china before btu this is the first umbraco. Have you any suggestion or issues I may come across?

    I have ICP already I've over amping the server a bit with aliyun

    The bandwidth of the 10 m 8CPU 8 g memory System disk using SSD 100GB Server area (East China Region 2) Windows Server 2016 database 64-bit Chinese version D disk 150 gb SSD

    Apart from disable the socal Element anything to worry about in the install?

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 20, 2016 @ 14:46
    Fuji Kusaka
    0

    sorry i just recall that the staging environment is the duplicate of the LIVE (EN & CN) - so something like this

    1 Main Dev --> 2 Staging Server ( UK / CN ) --> 2 Live on 2 different servers.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 20, 2016 @ 14:51
    Jeroen Breuer
    0

    Hi Fuji,

    Thanks for your reply. If you have 2 live environments with 2 different servers does this mean you need manage the content twice?

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 20, 2016 @ 15:29
    Fuji Kusaka
    0

    no we do everything on local dev which contains all 5 languages..... then push validated content to respective server.

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 20, 2016 @ 15:29
    Fuji Kusaka
    0

    But i do agree it takes time to manage though.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 21, 2016 @ 07:29
    Jeroen Breuer
    0

    We want to try if we can keep this simple. Pushing the content from dev to staging to live sound like a good idea, but it takes time.

    Does anyone know if option 2 could work?

    Have 2 frontend servers that connect to the same database. The database can be hosted in Europe. On the frontend server in China we can use a lot of caching so it should perform well. With a VPN it should be able to connect to the database.

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 21, 2016 @ 07:45
    Fuji Kusaka
    0

    I tried with to get started with ChinaCache and Azure solution but they are very expensive.

    I can share the figures and contacts with you if you want. If you need any dedicated servers in china, let me know. The good part i have people there and they speak english.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 21, 2016 @ 07:57
    Jeroen Breuer
    0

    Thanks for your reply. Currently there already is a website hosted in China on Azure. We also have a website in Europe. They are 2 different websites now. We're going to rebuild them to 1 website that should work in China and Europe. That is why we want the shared database.

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 21, 2016 @ 09:30
    Fuji Kusaka
    0

    Bare in mind it might takes time for website to pull data from EU database db.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 21, 2016 @ 10:05
    Jeroen Breuer
    0

    Yes it's probably a good idea to first make a small test setup to see how long it takes. The project isn't that big and everything on the frontend uses IPublishedContent without any db queries (maybe some for dictionary items).

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 21, 2016 @ 10:07
    Fuji Kusaka
    1

    Let me know if you need some help and setups.

  • John Palmer 76 posts 201 karma points
    Jun 24, 2016 @ 05:55
    John Palmer
    0

    Hi Jerome,

    It seems that you need to use two server locations, one in Europe and the others on China. Other alternative is using CDN.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 05, 2016 @ 14:42
    Jeroen Breuer
    0

    The hosting will be in Hong Kong. So the Great Firewall of China shouldn't be a problem. I still wonder if we need a VPN in that case.

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 06, 2016 @ 07:02
    Fuji Kusaka
    0

    You will still need a VPN. Also hosting in Hong kong might not be a good idea if youre targeted audience is 100% China users. You will also need an ICP number and this number is only to host within China.

    If you are hosting in HK you dont need any ICP.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 08, 2017 @ 08:21
    Jeroen Breuer
    0

    Hello,

    For another project we also need hosting in both Europe and China. To keep the performance good we want to host in both locations. So the frontend and database server will be in Europe and China.

    The data between these environments needs to be synced. Since Umbraco 8 will use GUIDs for everything it should be possible to replicate with SQL Data sync once it's released.

    However for members it's important that we keep the data in Europe for security reasons. We're using the default UmbracoMembershipProvider for this. Could we somehow replicate all data except the members?

    Jeroen

  • Dan Patching 31 posts 158 karma points c-trib
    Feb 09, 2017 @ 13:47
    Dan Patching
    0

    Hi Jeroen,

    Have you considered hosting the Umbraco site in Europe, but use a content delivery network to improve performance in Asia?

    I see that Cloudflare has a partnership with Baidu in China, to enable their CDN to work well there. (Behind the great firewall).

    https://www.cloudflare.com/network/china/

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 09, 2017 @ 15:39
    Jeroen Breuer
    0

    Hi Dan,

    It's more a webapplication than a website. So it does a lot of db calls. Not sure if a CDN will help with that.

    The project is running on Azure.

    Jeroen

  • Dan Patching 31 posts 158 karma points c-trib
    Feb 09, 2017 @ 16:03
    Dan Patching
    1

    Hi Jeroen,

    Cloudflare is more feature rich than just caching scripts and images, they have a feature called "Always Online", so even when the entire server is offline your site still loads a cached version of the page. They also provide load balancing.

    https://www.cloudflare.com/load-balancing/

    I have an Umbraco website which is always in use and has a very global user base (but not China) running on this service, and it performs great. I did have some issues with websockets in the past though.

    Anyway, thought i'd suggest the idea, as I imagine it would be a lot less expensive and easier than applying for a Chinese IPC hosting license.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 09, 2017 @ 16:24
    Jeroen Breuer
    0

    Thanks for the suggestion. I'm more looking at options on how we can replicate the frontend and database to China and somehow sync the environments.

    Biggest issue is that members should only be stored in Europe.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 18, 2017 @ 09:41
    Jeroen Breuer
    0

    Hi Dan,

    I'm looking at the option where all hosting (database + frontend servers) still happens in Europe, but the website should still be available in China.

    I've got the following ideas:

    Reverse Proxy Server Hosting https://webcertain.com/site/servicesamp/1553/Reverse-Proxy-Server-Hosting-(China)

    Hosting in Cloudflare which supports the Chinese network: https://www.cloudflare.com/network/china/

    Do you know if it's possible that we keep the hosting in Azure, but Cloudflare still makes it available in China? We have a lot of user specific content behind a login so we can't do any caching or use the "Always Online" feature.

    Jeroen

  • Dan Patching 31 posts 158 karma points c-trib
    May 18, 2017 @ 10:34
    Dan Patching
    1

    Hi Jeroen,

    Yes it would be possible to host on Azure and let Cloudflare make the site available in China.

    Cloudflare's service is all based around DNS, so after you've got the Cloudflare account, you set your domain to point at their name servers.

    It is very configurable, so you can disable Always Online and caching if you need the content to be personalized.

    1 thing i've found in the past, is that SignalR doesn't work behind Cloudflare, although that was a while ago, so they may of resolved that now.

    I think they do free accounts (which you can upgrade later if you want), or at least used to, so you could sign up and have a look at the configuration options in their control panel.

    Hope that helps.

    Dan

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 18, 2017 @ 11:20
    Jeroen Breuer
    0

    Thanks for the information. This seems like a very nice option :-).

    Good to know SignalR might have issues.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    May 10, 2017 @ 07:54
    Jeroen Breuer
    0

    Does anyone know of some good tools to test how a website performs in China? WebPagetest only supports Hong Kong, but it's not behind the Great Firewall of China.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft