{"id":15992,"date":"2024-07-03T08:00:41","date_gmt":"2024-07-03T15:00:41","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=15992"},"modified":"2026-03-11T14:26:47","modified_gmt":"2026-03-11T21:26:47","slug":"disaster-recovery-sync-gateway-xdcr","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/","title":{"rendered":"Disaster Recovery with Couchbase Mobile &#8211; Sync Gateway and Cross Data Center Replication"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Planning for Disaster Recovery (DR) and Business Continuity (BC) is vital for any modern application, and that applies equally to any application with a mobile or edge computing component.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Service outages or downtime can cause serious impacts to a business and without the correct strategies in place, such an event can be challenging to recover from.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This post will look at one of the ways you can plan for BC and DR for your mobile application in Couchbase using Cross Data Center Replication (XDCR).<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Couchbase Mobile Stack<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Couchbase Mobile is a cloud-to-edge platform that enables you to deploy offline first mobile and embedded applications, providing fast and efficient synchronization of data.<\/span><\/p>\n<p><span style=\"font-weight: 400\">It is comprised of 3 key components:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>Couchbase Server<\/strong> &#8211; the highly scalable, highly available, highly performant NoSQL database. This is available as a fully managed and hosted Database-as-a-Service with <a href=\"https:\/\/www.couchbase.com\/products\/capella\/\">Couchbase Capella<\/a><\/span><span style=\"font-weight: 400\">, or can be deployed and hosted on your own as <a href=\"https:\/\/www.couchbase.com\/products\/server\/\">Couchbase Server<\/a>.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Sync Gateway &#8211; an internet-facing, secure synchronization mechanism designed to provide data synchronization for large-scale interactive web, mobile, and IoT applications. Available fully hosted and managed with <a href=\"https:\/\/www.couchbase.com\/products\/capella\/app-services\/\">Capella App Services<\/a><\/span><span style=\"font-weight: 400\">, or can be installed and managed yourself with <a href=\"https:\/\/www.couchbase.com\/products\/sync-gateway\/\">Couchbase Sync Gateway<\/a>.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/lite\/\">Couchbase Lite<\/a> <\/span><span style=\"font-weight: 400\">&#8211; a full-featured, embedded database for your mobile, desktop and IoT apps. It provides CRUD, full-text search, query, and vector search capabilities that run locally on the device.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-15995\" style=\"border: solid 1px black\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image3-1024x454.png\" alt=\"\" width=\"900\" height=\"399\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image3-1024x454.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image3-300x133.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image3-768x340.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image3-1536x681.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image3-1320x585.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image3.png 1999w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/p>\n<h2><span style=\"font-weight: 400\">What is XDCR?<\/span><\/h2>\n<p><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/xdcr\/\">XDCR<\/a> <\/span><span style=\"font-weight: 400\">is a highly performant replication technology that allows for replication of data between two or more Couchbase clusters. It serves a very important role in supporting DR strategies and data migration, including for mobile applications.<\/span><\/p>\n<p><span style=\"font-weight: 400\">XDCR can be established unidirectionally (meaning data flows only from source cluster A to target cluster B) or bidirectionally (meaning data flows from source cluster A to target cluster B, and source cluster B to target cluster A), allowing for a range of different topologies to support different use cases.<\/span><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15993\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image1-1024x526.png\" alt=\"\" width=\"402\" height=\"206\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image1-1024x526.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image1-300x154.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image1-768x394.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image1-1536x789.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image1-1320x678.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image1.png 1714w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15996\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image4-1024x526.png\" alt=\"\" width=\"402\" height=\"206\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image4-1024x526.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image4-300x154.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image4-768x394.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image4-1536x789.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image4-1320x678.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image4.png 1714w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">Some common use cases for XDCR include hot standby for DR, geolocation of data centers for applications used globally, migration, and more.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">How can we use XDCR to ensure BC\/DR for a mobile deployment?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">It is very important to consider the best approach to the DR strategy for a mobile application. There are multiple ways this can be achieved, namely <a href=\"https:\/\/www.couchbase.com\/blog\/couchbase-replication-and-sync\/\">Inter-Sync Gateway Replication (ISGR) and XDCR<\/a><\/span><span style=\"font-weight: 400\">. ISGR allows for replication between multiple Sync Gateway or Capella App Services instances; you can learn more about it in <a href=\"https:\/\/www.couchbase.com\/blog\/data-sync-capella-app-services-and-mobile\/\">another blog post<\/a><\/span><span style=\"font-weight: 400\">. We will now look at how you can use XDCR as part of a DR strategy for a mobile application with Couchbase.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In this example, we have two Couchbase clusters, both with an associated Sync Gateway cluster. One of these clusters is the primary for a production application, the other is the DR cluster, which is kept in sync with the primary cluster through the use of XDCR.<\/span><\/p>\n<p><span style=\"font-weight: 400\">It is best practice that unidirectional XDCR is used (rather than bidirectional) as this ensures that changes flow from the source to the target and that the target site does not send write-operation updates back to the source. Additionally, Sync Gateway must be on standby (meaning it is not actively receiving data) when it is the target of XDCR replication.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In a usual scenario, this is what that configuration would look like:<\/span><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15997\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image5-880x1024.png\" alt=\"\" width=\"600\" height=\"698\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image5-880x1024.png 880w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image5-258x300.png 258w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image5-768x894.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image5-300x349.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image5.png 1304w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">In a DR scenario, some steps must be taken to ensure that you can switch over to the secondary cluster:<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Remove the unidirectional XDCR replication from the old primary to new primary cluster (previously the DR cluster)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Set Sync Gateway to standby on the old primary Couchbase cluster<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Turn on replication between the new primary Couchbase cluster and Sync Gateway cluster (previously the DR cluster)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Set up unidirectional XDCR replication between the new primary cluster and the new DR cluster<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Connect the application to the new primary cluster instead of the old primary cluster<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">The new configuration would look like this:<\/span><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15994\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/image2-867x1024.png\" alt=\"\" width=\"600\" height=\"709\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image2-867x1024.png 867w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image2-254x300.png 254w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image2-768x907.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image2-1301x1536.png 1301w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image2-300x354.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/image2.png 1304w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">It\u2019s crucial to maintain the conditions of having Sync Gateway on standby and unidirectional XDCR, especially when flipping the cluster. If not, you could end up with both Sync Gateway and XDCR targeting the same bucket in write mode, leading to sync issues.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through this approach, you can ensure that your mobile application is robust and prepared for a DR scenario.<\/span><\/p>\n<h2>References<\/h2>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/capella\/\">Couchbase Capella<\/a> and <\/span><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/server\/\">Couchbase Server<\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/sync-gateway\/\">Couchbase Sync Gateway<\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/capella\/app-services\/\">Capella App Services<\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/lite\/\">Couchbase Lite<\/a><\/span><\/li>\n<li><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/products\/xdcr\/\">Cross Datacenter Replication (XDCR)<\/a><\/span><\/li>\n<li><span style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/blog\/couchbase-replication-and-sync\/\">Inter-Sync Gateway Replication (ISGR) and XDCR<\/a><\/span><\/li>\n<li><span style=\"font-weight: 400\">Blog: <a href=\"https:\/\/www.couchbase.com\/blog\/data-sync-capella-app-services-and-mobile\/\">Data Sync between Capella App Services and Self Managed Couchbase Mobile Deployments<\/a><br \/>\n<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Planning for Disaster Recovery (DR) and Business Continuity (BC) is vital for any modern application, and that applies equally to any application with a mobile or edge computing component.\u00a0 Service outages or downtime can cause serious impacts to a business [&hellip;]<\/p>\n","protected":false},"author":85374,"featured_media":16988,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1821,7667,1810,9415,7666,9417,1813,2366],"tags":[2127],"ppma_author":[9988],"class_list":["post-15992","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-couchbase-architecture","category-couchbase-lite","category-couchbase-mobile","category-xdcr","category-edge-computing","category-performance","category-security","category-sync-gateway","tag-disaster-recovery"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Disaster Recovery with Couchbase Mobile - Sync Gateway and Cross Data Center Replication - The Couchbase Blog<\/title>\n<meta name=\"description\" content=\"Couchbase Mobile is a cloud-to-edge platform for deploying offline first mobile and embedded applications, with fast and efficient data synchronization.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disaster Recovery with Couchbase Mobile - Sync Gateway and Cross Data Center Replication\" \/>\n<meta property=\"og:description\" content=\"Couchbase Mobile is a cloud-to-edge platform for deploying offline first mobile and embedded applications, with fast and efficient data synchronization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-03T15:00:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-11T21:26:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8-1024x536.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"536\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Georgina Martin, Solutions Engineer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Georgina Martin, Solutions Engineer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\"},\"author\":{\"name\":\"Georgina Martin, Solutions Engineer\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/b863ce92539b1af9f66f0460386b70fe\"},\"headline\":\"Disaster Recovery with Couchbase Mobile &#8211; Sync Gateway and Cross Data Center Replication\",\"datePublished\":\"2024-07-03T15:00:41+00:00\",\"dateModified\":\"2026-03-11T21:26:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\"},\"wordCount\":758,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png\",\"keywords\":[\"Disaster Recovery\"],\"articleSection\":[\"Couchbase Architecture\",\"Couchbase Lite\",\"Couchbase Mobile\",\"Cross Data Center Replication (XDCR)\",\"Edge computing\",\"High Performance\",\"Security\",\"Sync Gateway\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\",\"name\":\"Disaster Recovery with Couchbase Mobile - Sync Gateway and Cross Data Center Replication - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png\",\"datePublished\":\"2024-07-03T15:00:41+00:00\",\"dateModified\":\"2026-03-11T21:26:47+00:00\",\"description\":\"Couchbase Mobile is a cloud-to-edge platform for deploying offline first mobile and embedded applications, with fast and efficient data synchronization.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png\",\"width\":2400,\"height\":1256,\"caption\":\"columnar data store overview\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Disaster Recovery with Couchbase Mobile &#8211; Sync Gateway and Cross Data Center Replication\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/b863ce92539b1af9f66f0460386b70fe\",\"name\":\"Georgina Martin, Solutions Engineer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/f0a67bfd2fc55e960dbb1111f884ae33\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/T024FJS4M-U016L2LH63V-c189adc04274-512.jpeg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/T024FJS4M-U016L2LH63V-c189adc04274-512.jpeg\",\"caption\":\"Georgina Martin, Solutions Engineer\"},\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/georginamartin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Disaster Recovery with Couchbase Mobile - Sync Gateway and Cross Data Center Replication - The Couchbase Blog","description":"Couchbase Mobile is a cloud-to-edge platform for deploying offline first mobile and embedded applications, with fast and efficient data synchronization.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/","og_locale":"en_US","og_type":"article","og_title":"Disaster Recovery with Couchbase Mobile - Sync Gateway and Cross Data Center Replication","og_description":"Couchbase Mobile is a cloud-to-edge platform for deploying offline first mobile and embedded applications, with fast and efficient data synchronization.","og_url":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/","og_site_name":"The Couchbase Blog","article_published_time":"2024-07-03T15:00:41+00:00","article_modified_time":"2026-03-11T21:26:47+00:00","og_image":[{"width":1024,"height":536,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8-1024x536.png","type":"image\/png"}],"author":"Georgina Martin, Solutions Engineer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Georgina Martin, Solutions Engineer","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/"},"author":{"name":"Georgina Martin, Solutions Engineer","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/b863ce92539b1af9f66f0460386b70fe"},"headline":"Disaster Recovery with Couchbase Mobile &#8211; Sync Gateway and Cross Data Center Replication","datePublished":"2024-07-03T15:00:41+00:00","dateModified":"2026-03-11T21:26:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/"},"wordCount":758,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png","keywords":["Disaster Recovery"],"articleSection":["Couchbase Architecture","Couchbase Lite","Couchbase Mobile","Cross Data Center Replication (XDCR)","Edge computing","High Performance","Security","Sync Gateway"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/","url":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/","name":"Disaster Recovery with Couchbase Mobile - Sync Gateway and Cross Data Center Replication - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png","datePublished":"2024-07-03T15:00:41+00:00","dateModified":"2026-03-11T21:26:47+00:00","description":"Couchbase Mobile is a cloud-to-edge platform for deploying offline first mobile and embedded applications, with fast and efficient data synchronization.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2025\/03\/blog_header_images_2025-8.png","width":2400,"height":1256,"caption":"columnar data store overview"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/disaster-recovery-sync-gateway-xdcr\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Disaster Recovery with Couchbase Mobile &#8211; Sync Gateway and Cross Data Center Replication"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/b863ce92539b1af9f66f0460386b70fe","name":"Georgina Martin, Solutions Engineer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/f0a67bfd2fc55e960dbb1111f884ae33","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/T024FJS4M-U016L2LH63V-c189adc04274-512.jpeg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/T024FJS4M-U016L2LH63V-c189adc04274-512.jpeg","caption":"Georgina Martin, Solutions Engineer"},"url":"https:\/\/www.couchbase.com\/blog\/author\/georginamartin\/"}]}},"authors":[{"term_id":9988,"user_id":85374,"is_guest":0,"slug":"georginamartin","display_name":"Georgina Martin, Solutions Engineer","avatar_url":{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/T024FJS4M-U016L2LH63V-c189adc04274-512.jpeg","url2x":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/T024FJS4M-U016L2LH63V-c189adc04274-512.jpeg"},"0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/15992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/85374"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=15992"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/15992\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/16988"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=15992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=15992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=15992"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=15992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}