{"id":2384,"date":"2016-09-11T06:43:09","date_gmt":"2016-09-11T06:43:09","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=2384"},"modified":"2023-07-24T01:08:46","modified_gmt":"2023-07-24T08:08:46","slug":"sync-gateway-inter-instance-replication-code-sample","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/sync-gateway-inter-instance-replication-code-sample\/","title":{"rendered":"\ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774 \uc778\uc2a4\ud134\uc2a4 \uac04 \ucf54\ub4dc \uc0d8\ud50c"},"content":{"rendered":"<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc774\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/new-couchbase-mobile-v1.3-inter-instance-replication-sync-gateway\/\">post<\/a>\uc0ac\uc774\uc758 \ubcf5\uc81c\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud588\uc2b5\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/developer.couchbase.com\/documentation\/mobile\/current\/get-started\/sync-gateway-overview\/index.html?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774<\/a>\u00a0(SG) \uc778\uc2a4\ud134\uc2a4\uc758\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/developers\/mobile\/?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ubaa8\ubc14\uc77c<\/a>\u00a0(CBM). \uc791\ub3d9 \uc608\uc81c\ub97c \uc124\uba85\ud558\uae30 \uc704\ud574 Swing \uae30\ubc18 UI\uac00 \ud3ec\ud568\ub41c \uac04\ub2e8\ud55c Java \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc791\uc131\ud588\uc2b5\ub2c8\ub2e4. \ubaa8\ub4e0 \uac83\uc744 \ubcf4\uc5ec\ub4dc\ub9ac\uae30 \uc704\ud574 \ub450 \uac1c\uc758 SG \uc778\uc2a4\ud134\uc2a4\uc640 \ud568\uaed8 \uc571\uc744 \uc2e4\ud589\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc774 \ub2e4\uc774\uc5b4\uadf8\ub7a8\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ud750\ub984\uacfc SG \uc30d\uacfc\uc758 \ud1b5\uc2e0\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\"><img decoding=\"async\" src=\"\/wp-content\/original-assets\/2016\/september\/sync-gateway-inter-instance-replication-code-sample\/sg-replicate.png\" alt=\"Data flow diagram\" align=\"middle\" \/><\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ud3b8\uc9d1 \ucc3d\uc5d0\uc11c JSON \ub370\uc774\ud130\ub97c \uc785\ub825\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud574\ub2f9 \ub370\uc774\ud130\ub294\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/developers\/mobile\/?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ub77c\uc774\ud2b8<\/a>\u00a0(CBL) \ub85c\uceec \uc2a4\ud1a0\ub9ac\uc9c0. \ub450 \uac1c\uc758 \ubcf5\uc81c\uac00 \uc124\uc815\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ud558\ub098\ub294 CBL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 \ub370\uc774\ud130\ub97c \uae30\ubcf8 \uc778\uc2a4\ud134\uc2a4\ub77c\uace0 \ubd80\ub974\ub294 \ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774 \uc778\uc2a4\ud134\uc2a4\ub85c \ud478\uc2dc\ud569\ub2c8\ub2e4. \uac04\ub2e8\ud788 \uae30\ubcf8 \uc778\uc2a4\ud134\uc2a4\ub77c\uace0 \ubd80\ub974\uaca0\uc2b5\ub2c8\ub2e4. \uae30\ubcf8 \uc778\uc2a4\ud134\uc2a4\ub294 \ubc31\uc5c5 SG \uc778\uc2a4\ud134\uc2a4(\uc774\ud558 \ubc31\uc5c5\uc774\ub77c\uace0 \ud568)\uc5d0 \uc2a4\uc2a4\ub85c \ubcf5\uc81c\ud569\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc774\ub97c \ud655\uc778\ud558\uae30 \uc704\ud574 \uc800\ub294\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/developer.couchbase.com\/documentation\/mobile\/current\/develop\/references\/sync-gateway\/rest-api\/index.html#operation---db--_changes-get?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\ud53c\ub4dc \ubcc0\uacbd<\/a>\u00a0\ub97c \uae30\ubcf8 \ubc0f \ubc31\uc5c5\uc5d0\uc11c \ubaa8\ub450 \uc0ad\uc81c\ud569\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ubaa8\ub4e0 \uac83\uc774 Mac\uc5d0\uc11c \ud568\uaed8 \uc2e4\ud589\ub429\ub2c8\ub2e4. \uac1c\ubc1c \ucef4\ud4e8\ud130\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \uc804\uccb4 CBM \uc2a4\ud0dd\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c \ucd08\uae30 \uac1c\ubc1c\uc774 \ub354 \uc26c\uc6cc\uc9d1\ub2c8\ub2e4. \ub610\ud55c \ubaa8\ub4e0 \uc694\uc18c\uac00 \uc11c\ub85c \uc5b4\ub5bb\uac8c \ub9de\ubb3c\ub824 \uc791\ub3d9\ud558\ub294\uc9c0 \uc774\ud574\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4. \uc774 \ubd80\ubd84\uc740 \uc55e\uc73c\ub85c \ube14\ub85c\uadf8\uc5d0 \ub354 \uc790\uc138\ud788 \uc18c\uac1c\ud560 \uc608\uc815\uc785\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uad6c\uc131\uacfc \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2 id=\"configuring-sync-gateway\" style=\"color: #000000;font-family: sans-serif;line-height: 25.6px;text-align: start\">\ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774 \uad6c\uc131<\/h2>\n<h4 id=\"backup\" style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ubc31\uc5c5<\/h4>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc800\ub294 \uac01 SG \uc778\uc2a4\ud134\uc2a4\ub97c \uc790\uccb4 JSON \uad6c\uc131 \ud30c\uc77c\ub85c \uc2e4\ud589\ud569\ub2c8\ub2e4. \ubc31\uc5c5 \uad6c\uc131\uc740 \uc870\uae08 \ub354 \uac04\ub2e8\ud569\ub2c8\ub2e4. \uc5ec\uae30 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre style=\"overflow: auto;font-size: medium;color: #000000;line-height: 25.6px;text-align: start\"><code class=\"language-JSON hljs\" style=\"padding: 0.5em;color: #444444;background: #f0f0f0\">{\r\n  \"<span class=\"hljs-attr\">\uc778\ud130\ud398\uc774\uc2a4<\/span>\":<span class=\"hljs-string\" style=\"color: #880000\">\":5984\"<\/span>,\r\n  \"<span class=\"hljs-attr\">\uad00\ub9ac\uc790 \uc778\ud130\ud398\uc774\uc2a4<\/span>\":<span class=\"hljs-string\" style=\"color: #880000\">\":5985\"<\/span>,\r\n\r\n  \"<span class=\"hljs-attr\">\ub85c\uadf8<\/span>\": [<span class=\"hljs-string\" style=\"color: #880000\">\"*\"<\/span>],\r\n  \"<span class=\"hljs-attr\">\ub370\uc774\ud130\ubca0\uc774\uc2a4<\/span>\": {\r\n    \"<span class=\"hljs-attr\">db<\/span>\": {\r\n      \"<span class=\"hljs-attr\">\uc11c\ubc84<\/span>\": <span class=\"hljs-string\" style=\"color: #880000\">\"\uc6d4\ub7ec\uc2a4:\"<\/span>,\r\n      \"<span class=\"hljs-attr\">\uc0ac\uc6a9\uc790<\/span>\": { \"<span class=\"hljs-attr\">\uac8c\uc2a4\ud2b8<\/span>\": {\"<span class=\"hljs-attr\">disabled<\/span>\": <span class=\"hljs-literal\" style=\"color: #1f811f\">false<\/span>, \"<span class=\"hljs-attr\">admin_channels<\/span>\": [<span class=\"hljs-string\" style=\"color: #880000\">\"*\"<\/span>] } }\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub450 \uac1c\uc758 SG \ubcf5\uc0ac\ubcf8\uc744 \uc2e4\ud589\ud558\uae30 \ub54c\ubb38\uc5d0 \uc11c\ub85c \ub2e4\ub978 \ub124\ud2b8\uc6cc\ud06c \ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud574\uc57c \ud569\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c SG\ub294 4984 \ubc0f 4985 \ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ubc31\uc5c5\uc758 \uccab \ub450 \uc904\uc740 \ub300\uc2e0 5984 \ubc0f 5985 \ud3ec\ud2b8\uc5d0\uc11c \uc218\uc2e0\ud558\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4. \uc774 \ud3ec\ud2b8\uc5d0\ub294 \ud2b9\ubcc4\ud55c \uac83\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \ucef4\ud4e8\ud130\uc758 \ub2e4\ub978 \uc571\uc5d0\uc11c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\ub294 \ud3ec\ud2b8\ub97c \uc120\ud0dd\ud558\uae30\ub9cc \ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub098\uba38\uc9c0 \uad6c\uc131 \ud30c\uc77c\uc740 SG\uac00 \ubaa8\ub4e0 \uac83\uc744 \uae30\ub85d\ud558\ub3c4\ub85d \ud558\uace0, \ud2b9\uc218 \ubaa9\uc801\uc758 \uc778\uba54\ubaa8\ub9ac \ub370\uc774\ud130\ubca0\uc774\uc2a4(\"walrus\" \ud0a4\uc6cc\ub4dc\ub85c \ud45c\uc2dc\ub428)\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uc81c\uacf5\ud558\ub3c4\ub85d \uc124\uc815\ud558\uba70, \"GUEST\" \uc0ac\uc6a9\uc790\ub97c \ud1b5\ud574 \ub204\uad6c\ub098 \uacf5\uac1c\uc801\uc73c\ub85c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4. \ucd08\uae30 \uac1c\ubc1c \ub2e8\uacc4\uc5d0\uc11c \uae30\uc5b5\ud574\ub450\uba74 \uc88b\uc740 \ubd80\ubd84\uc785\ub2c8\ub2e4. Walrus\ub97c \uc0ac\uc6a9\ud558\uba74 \uc11c\ubc84 \ubc31\uc5d4\ub4dc \uc5c6\uc774 SG\ub97c \ub3c5\ub9bd\ud615\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubaa8\ub4e0 \uc561\uc138\uc2a4 \uad8c\ud55c\uc774 \uc788\ub294 GUEST\ub97c \uc0ac\uc6a9\ud558\uba74 \uc778\uc99d \ubc0f \ucc44\ub110 \uc124\uc815\uc5d0 \ub300\ud55c \uac71\uc815 \uc5c6\uc774 \uc791\uc5c5\uc744 \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c SG\ub294 stderr\uc5d0 \ub85c\uadf8\ub97c \uae30\ub85d\ud569\ub2c8\ub2e4. \ub300\uc2e0 \ud30c\uc77c\uc5d0 \ub85c\uae45\ud558\ub3c4\ub85d \uc635\uc158\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h4 id=\"primary-and-inter-instance-replication\" style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uae30\ubcf8 \ubc0f \uc778\uc2a4\ud134\uc2a4 \uac04 \ubcf5\uc81c<\/h4>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uae30\ubcf8 \uc124\uc815\uc5d0\uc11c \ud478\uc2dc \ubcf5\uc81c\ub97c \uc124\uc815\ud588\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc5d0\ub294 \uba87 \uac00\uc9c0 \ub3d9\uc77c\ud55c \uc0c1\uc6a9\uad6c \ub9e4\uac1c\ubcc0\uc218\uac00 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre style=\"overflow: auto;font-size: medium;color: #000000;line-height: 25.6px;text-align: start\"><code class=\"language-JSON hljs\" style=\"padding: 0.5em;color: #444444;background: #f0f0f0\">{\r\n  \"<span class=\"hljs-attr\">\ub85c\uadf8<\/span>\": [<span class=\"hljs-string\" style=\"color: #880000\">\"*\"<\/span>],\r\n  \"<span class=\"hljs-attr\">\ub370\uc774\ud130\ubca0\uc774\uc2a4<\/span>\": {\r\n    \"<span class=\"hljs-attr\">db<\/span>\": {\r\n      \"<span class=\"hljs-attr\">\uc11c\ubc84<\/span>\": <span class=\"hljs-string\" style=\"color: #880000\">\"\uc6d4\ub7ec\uc2a4:\"<\/span>,\r\n      \"<span class=\"hljs-attr\">\uc0ac\uc6a9\uc790<\/span>\": { \"<span class=\"hljs-attr\">\uac8c\uc2a4\ud2b8<\/span>\": {\"<span class=\"hljs-attr\">disabled<\/span>\": <span class=\"hljs-literal\" style=\"color: #1f811f\">false<\/span>, \"<span class=\"hljs-attr\">admin_channels<\/span>\": [<span class=\"hljs-string\" style=\"color: #880000\">\"*\"<\/span>] } }\r\n    }\r\n  },\r\n\r\n  \"<span class=\"hljs-attr\">\ubcf5\uc81c<\/span>\":[\r\n    {\r\n      \"<span class=\"hljs-attr\">\ucd9c\ucc98<\/span>\": <span class=\"hljs-string\" style=\"color: #880000\">\"db\"<\/span>,\r\n      \"<span class=\"hljs-attr\">\ub300\uc0c1<\/span>\": <span class=\"hljs-string\" style=\"color: #880000\">\"https:\/\/localhost:5985\/db\"<\/span>,\r\n      \"<span class=\"hljs-attr\">\uc5f0\uc18d<\/span>\": <span class=\"hljs-literal\" style=\"color: #1f811f\">true<\/span>\r\n    }\r\n  ]\r\n}\r\n<\/code><\/pre>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">'\ubcf5\uc81c' \uc139\uc158\uc740 \ud765\ubbf8\ub85c\uc6b4 \uc77c\uc774 \uc77c\uc5b4\ub098\ub294 \uacf3\uc785\ub2c8\ub2e4. \ud56d\ubaa9\uc774 \ubc30\uc5f4\uc784\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf5\uc81c\ub97c \uc6d0\ud558\ub294 \uc218\ub9cc\ud07c \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 \ud558\ub098\ub9cc \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ubcf5\uc81c\ub97c \uc9c0\uc815\ud558\ub824\uba74 \uc18c\uc2a4\uc640 \ub300\uc0c1\uc744 \uc81c\uacf5\ud574\uc57c \ud569\ub2c8\ub2e4. \ubaa8\ub4e0 \ubcf5\uc81c\ub294 \ub2e8\ubc29\ud5a5\uc774\ub77c\ub294 \uc810\uc744 \uae30\uc5b5\ud558\uc138\uc694.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\"source\" \ub9e4\uac1c\ubcc0\uc218\ub294 \"db\"\ub85c \uc2dd\ubcc4\ub418\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ubcf5\uc81c\ud558\ub824\ub294 \uac83\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \"\ub370\uc774\ud130\ubca0\uc774\uc2a4\" \uc544\ub798\uc5d0\uc11c Walrus\ub85c \uc124\uc815\ud55c \uc139\uc158\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub300\uc0c1\uc740 \ub3d9\uc77c\ud55c SG \uc778\uc2a4\ud134\uc2a4\uc5d0 \uc5f0\uacb0\ub41c \ub2e4\ub978 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc77c \uc218\ub3c4 \uc788\uace0, \uc5ec\uae30\ucc98\ub7fc HTTP URL\uc744 \uc9c0\uc815\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. URL\uc758 \uacbd\ub85c \ubd80\ubd84\uc5d0 \uc6d0\uaca9 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 \uc774\ub984\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4(\uc774 \uacbd\uc6b0 \/db).<\/p>\n<h4 id=\"running-sync-gateway\" style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774 \uc2e4\ud589<\/h4>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uae30\ubcf8_\uac8c\uc774\ud2b8\uc6e8\uc774_\uc124\uc815.json\uacfc \ubc31\uc5c5_\uac8c\uc774\ud2b8\uc6e8\uc774_\uc124\uc815.json\uc758 \ub450 \ud30c\uc77c\uc5d0 \uad6c\uc131\uc744 \uc800\uc7a5\ud588\uc2b5\ub2c8\ub2e4. \uba85\ub839\uc904\uc5d0\uc11c \uc218\ub3d9\uc73c\ub85c SG\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud50c\ub7ab\ud3fc\ubcc4 SG \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc2e4\ud589\uc5d0 \ub300\ud55c \uc815\ubcf4\ub294 \ub2e4\uc74c\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/developer.couchbase.com\/documentation\/mobile\/current\/installation\/sync-gateway\/index.html?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\uc5ec\uae30<\/a>.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uba3c\uc800 \ubc31\uc5c5\uc744 \uc2dc\uc791\ud569\ub2c8\ub2e4. \uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 Primary\uc5d0\uc11c \ubcf5\uc81c\ub97c \uc218\ud589\ud558\uae30 \uc704\ud55c \uc5f0\uacb0 \uc2e4\ud328\uc5d0 \ub300\ud55c \ub9ce\uc740 \uba54\uc2dc\uc9c0\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/p>\n<h2 id=\"the-java-app\" style=\"color: #000000;font-family: sans-serif;line-height: 25.6px;text-align: start\">Java \uc571<\/h2>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">UI\ub294 Swing\uc744 \uc0ac\uc6a9\ud558\uc5ec Java \uc571\uc744 \uc791\uc131\ud558\uace0 \ub808\uc774\uc544\uc6c3\uc740 IntelliJ IDEA\ub97c \uc0ac\uc6a9\ud588\uc2b5\ub2c8\ub2e4. \uc571 \uc2dc\uc791 \uc2dc \uc571\uc758 \ubaa8\uc2b5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\"><img decoding=\"async\" style=\"max-width: 800px\" src=\"\/wp-content\/original-assets\/2016\/september\/sync-gateway-inter-instance-replication-code-sample\/dbexplorer-0.png\" alt=\"DBExplorer on startup\" align=\"middle\" \/><\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc0ac\uc6a9\ud558\ub824\uba74 \uac00\uc7a5 \uc67c\ucabd \ud14d\uc2a4\ud2b8 \ucc3d\uc5d0 JSON\uc744 \ubd99\uc5ec\ub123\uc2b5\ub2c8\ub2e4. \uc800\uc7a5 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud569\ub2c8\ub2e4. \uadf8\ub7ec\uba74 \uc0c8 JSON \ubb38\uc11c\uac00 CBL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ub429\ub2c8\ub2e4. \ub3d9\uae30\ud654\uac00 \uc2dc\uc791\ub429\ub2c8\ub2e4. \uc2dc\uc791 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \ud65c\uc131\ud654\ud569\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uac00\uc6b4\ub370 \ud14d\uc2a4\ud2b8 \ucc3d\uc5d0\uc11c\ub294 \uc8fc \ubcc0\uacbd\uc0ac\ud56d \ud53c\ub4dc\ub97c \ubaa8\ub2c8\ud130\ub9c1\ud569\ub2c8\ub2e4. \uac00\uc7a5 \uc624\ub978\ucabd \ucc3d\uc740 \ubc31\uc5c5 \ubcc0\uacbd\uc0ac\ud56d \ud53c\ub4dc\ub97c \ubaa8\ub2c8\ud130\ub9c1\ud569\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub3d9\uae30\ud654\ub97c \uc0ac\uc6a9 \uc124\uc815\ud558\uba74 \ubb38\uc11c\ub97c \uc800\uc7a5\ud560 \ub54c\ub9c8\ub2e4 \ub450 \ubcc0\uacbd\ub0b4\uc6a9 \ud53c\ub4dc\uac00 \ubaa8\ub450 \uc751\ub2f5\ud558\ub294 \uac83\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uadf8 \ubaa8\uc2b5\uc785\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\"><img decoding=\"async\" style=\"max-width: 800px\" src=\"\/wp-content\/original-assets\/2016\/september\/sync-gateway-inter-instance-replication-code-sample\/dbexplorer-1.png\" alt=\"DBExplorer after saving a document\" align=\"middle\" \/><\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ud504\ub85c\uc81d\ud2b8\uc758 \uc18c\uc2a4\ub294 \ub2e4\uc74c\uc5d0\uc11c \ucc3e\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/github.com\/HodGreeley\/couchbase-lite-java-sg-replicate\">GitHub<\/a>. (\uc774 \uc0d8\ud50c\uc740 \uae30\ubcf8 \uc0ac\ud56d\uc744 \uac15\uc870\ud55c \uac83\uc785\ub2c8\ub2e4. \ud504\ub85c\ub355\uc158 \ud488\uc9c8 \ucf54\ub4dc\uac00 \uc544\ub2d9\ub2c8\ub2e4.) \uba87 \uac00\uc9c0 \ud575\uc2ec \ubd80\ubd84\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub124 \uac00\uc9c0 \ud074\ub798\uc2a4\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ub300\ubd80\ubd84\uc758 UI\ub294 DBExplorer.java\uc5d0 \uc788\uc2b5\ub2c8\ub2e4. DBService.java\ub294 \ub9e4\uc6b0 \uc77c\ubc18\uc801\uc778 \ud5ec\ud37c \ud074\ub798\uc2a4\uc785\ub2c8\ub2e4. CBL\uacfc SG \uac04\uc5d0 \ubcf5\uc81c\uac00 \uc5b4\ub5bb\uac8c \uc124\uc815\ub418\ub294\uc9c0 \ubcf4\ub824\uba74 \uc5ec\uae30\ub97c \uc0b4\ud3b4\ubcf4\uc138\uc694. Runtime.java\ub294 \ub300\ubd80\ubd84 \uacf5\uc720 \uc778\uc2a4\ud134\uc2a4\ub97c \uac16\uae30 \uc704\ud574 \uc874\uc7ac\ud569\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/github.com\/FasterXML\/jackson\">Jackson<\/a>\u00a0JSON ObjectMapper.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">SGMonitor.java\ub294 \ub450 \uac1c\uc758 \ubcc0\uacbd \ud53c\ub4dc \ubaa8\ub2c8\ud130\ub9c1\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \uc800\ub294\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/square.github.io\/okhttp\/\">OkHttp<\/a>\u00a0\ud074\ub77c\uc774\uc5b8\ud2b8 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec REST \ud638\ucd9c\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ubcc0\uacbd \uc0ac\ud56d \ud53c\ub4dc\ub97c \ubaa8\ub2c8\ud130\ub9c1\ud558\uae30 \uc704\ud574 \uc800\ub294 \ub871\ud3f4\ub9c1\uc774\ub77c\ub294 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub871\ud3f4\uc744 \uc0ac\uc6a9\ud558\uba74 \uc804\uc1a1\ud560 \uc0c8 \ub370\uc774\ud130\uac00 \uc5c6\ub294 \uacbd\uc6b0 HTTP \ud638\ucd9c\uc774 \uc989\uc2dc \ubc18\ud658\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ub300\uc2e0 \uc0c8 \ub370\uc774\ud130\uac00 \uc804\uc1a1\ub420 \ub54c\uae4c\uc9c0 \uae30\ub2e4\ub9ac\uac70\ub098 \uc2dc\uac04\uc774 \ucd08\uacfc\ub429\ub2c8\ub2e4. \uadf8\ub7f0 \ub2e4\uc74c \uc5f0\uacb0\uc774 \ub2eb\ud799\ub2c8\ub2e4. \uc989, \ubcc0\uacbd \uae30\ub85d\uc744 \uacc4\uc18d \ud655\uc778\ud558\ub824\uba74 \ub8e8\ud504\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \ubcc0\uacbd \uae30\ub85d\uc740 JSON\uc73c\ub85c \uc804\uc1a1\ub41c\ub2e4\ub294 \uc810\uc5d0 \uc720\uc758\ud558\uc138\uc694. \uacb0\uacfc\ub294 \ubc30\uc5f4\ub85c \ubc88\ub4e4\ub85c \uc81c\uacf5\ub418\ubbc0\ub85c \uc751\ub2f5\ub2f9 \ud558\ub098 \uc774\uc0c1\uc758 \ub808\ucf54\ub4dc\ub97c \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">HTTP \uc694\uccad\uc744 \uac04\ub2e8\ud558\uac8c \uc0dd\uc131\ud558\uae30 \uc704\ud574 \ubaa8\ub4e0 \ud638\ucd9c\uc5d0 \ud544\uc694\ud55c \ub9e4\uac1c\ubcc0\uc218\uac00 \ucd94\uac00\ub41c URL \ube4c\ub354\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre style=\"overflow: auto;font-size: medium;color: #000000;line-height: 25.6px;text-align: start\"><code class=\"language-Java hljs\" style=\"padding: 0.5em;color: #444444;background: #f0f0f0\">urlBuilder = HttpUrl.parse(url).newBuilder()\r\n        .addPathSegment(<span class=\"hljs-string\" style=\"color: #880000\">\"_changes\"<\/span>)\r\n        .addQueryParameter(<span class=\"hljs-string\" style=\"color: #880000\">\"\ud53c\ub4dc\"<\/span>, <span class=\"hljs-string\" style=\"color: #880000\">\"longpoll\"<\/span>)\r\n        .addQueryParameter(<span class=\"hljs-string\" style=\"color: #880000\">\"timeout\"<\/span>, <span class=\"hljs-string\" style=\"color: #880000\">\"0\"<\/span>);\r\n<\/code><\/pre>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc774 \ub0b4\uc6a9\uc744 \uc77d\uc5b4\ubcf4\uba74, \ud53c\ub4dc \uc720\ud615 \ub871\ud3f4\uc744 \uc0ac\uc6a9\ud558\uc5ec _changes \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0 \uc5f0\uacb0\ud558\uace0 \ud0c0\uc784\uc544\uc6c3\uc744 0\uc73c\ub85c \uc124\uc815\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4(0\uc740 \ud0c0\uc784\uc544\uc6c3\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc74c\uc744 \uc758\ubbf8\ud568).<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub8e8\ud504\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574 SwingWorker \uc2a4\ub808\ub4dc\ub97c \uc124\uc815\ud588\uc2b5\ub2c8\ub2e4. \uc774 \uc2a4\ub808\ub4dc\ub294 HTTP \uc694\uccad\uc744 \uc791\uc131\ud558\uace0 \uc2e4\ud589\ud55c \ub2e4\uc74c \uc751\ub2f5\uc744 \uae30\ub2e4\ub9bd\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc5ec\uae30\uc11c \ub9c8\uc9c0\ub9c9 \ube44\uacb0\uc740 \ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774\uc5d0 \uc5b4\ub5a4 \ub370\uc774\ud130\uac00 \ud544\uc694\ud55c\uc9c0 \uc54c\ub824\uc8fc\ub294 \uac83\uc785\ub2c8\ub2e4. \ubaa8\ub4e0 SG _changes \uc751\ub2f5\uc5d0\ub294 \"last_seq\" \uc18d\uc131\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uc18d\uc131\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc774\ubbf8 \uc218\uc2e0\ud55c \ub808\ucf54\ub4dc\ub97c \ucd94\uc801\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub418\ub294 \uc815\uc218\uc785\ub2c8\ub2e4. \ucc98\ub9ac\ud55c \ub370\uc774\ud130\ub97c \ucd94\uc801\ud558\ub294 \uac83\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \ucc45\uc784\uc785\ub2c8\ub2e4. \uc751\ub2f5\uc744 \ucc98\ub9ac\ud55c \ud6c4\uc5d0\ub294 \ud5a5\ud6c4 \uc694\uccad\uc5d0 \"\uc774\ud6c4\" \ub9e4\uac1c \ubcc0\uc218\ub97c \ucd94\uac00\ud558\uac70\ub098 \uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud569\ub2c8\ub2e4. \uadf8\ub7ec\uba74 SG\ub294 \ucd5c\uc2e0 \ubcc0\uacbd \uc0ac\ud56d\ub9cc \uc804\ub2ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub2e4\uc74c\uc740 \ub8e8\ud504\uc758 \ud6c4\ubc18\ubd80\uc785\ub2c8\ub2e4.<\/p>\n<pre style=\"overflow: auto;font-size: medium;color: #000000;line-height: 25.6px;text-align: start\"><code class=\"language-Java hljs\" style=\"padding: 0.5em;color: #444444;background: #f0f0f0\">String body = response.body().string();\r\n\r\nJsonNode tree = mapper.readTree(body);\r\n\r\nurlBuilder.setQueryParameter(<span class=\"hljs-string\" style=\"color: #880000\">\"since\"<\/span>, tree.get(<span class=\"hljs-string\" style=\"color: #880000\">\"last_seq\"<\/span>).asText());\r\n\r\npublish(body);\r\n<\/code><\/pre>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc7ad\uc2a8 \uc624\ube0c\uc81d\ud2b8\ub9e4\ud37c\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubcc0\uacbd \ub808\ucf54\ub4dc\ub97c \uad6c\ubb38 \ubd84\uc11d\ud569\ub2c8\ub2e4. \uadf8\ub7f0 \ub2e4\uc74c last_seq \uc18d\uc131\uc5d0\uc11c \ucd94\ucd9c\ud55c \uac12\uc73c\ub85c \ucffc\ub9ac \ub9e4\uac1c\ubcc0\uc218\ub85c \"since\"\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uadf8\ub7ec\uba74 \ub2e4\uc74c \uc694\uccad\uc5d0 \ub300\ud55c URL\uc774 \uc124\uc815\ub429\ub2c8\ub2e4. \uac8c\uc2dc \ud638\ucd9c\uc740 UI\uc758 \ud14d\uc2a4\ud2b8 \uc601\uc5ed\uc744 \uc5c5\ub370\uc774\ud2b8\ud558\ub294 \uc791\uc5c5\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uadf8\uac8c \ub2e4\uc785\ub2c8\ub2e4.  \uc804\uccb4 \ud504\ub85c\uc81d\ud2b8\ub97c \ud558\ub098\uc758 \ucef4\ud4e8\ud130\uc5d0\uc11c \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.  \uc774\ub97c \ud1b5\ud574 Couchbase Lite, \ub3d9\uae30\ud654 \uac8c\uc774\ud2b8\uc6e8\uc774 \ubc0f \ubcf5\uc81c\ub97c \uc790\uc138\ud788 \uc0b4\ud3b4\ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.  \uc990\uaca8\ubcf4\uc138\uc694.<\/p>\n<h2 id=\"postscript\" style=\"color: #000000;font-family: sans-serif;line-height: 25.6px;text-align: start\">\ud3ec\uc2a4\ud2b8 \uc2a4\ud06c\ub9bd\ud2b8<\/h2>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub354 \ub9ce\uc740 \ub9ac\uc18c\uc2a4\ub97c \ud655\uc778\ud558\uc138\uc694.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/developers\/community\/?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\uac1c\ubc1c\uc790 \ud3ec\ud138<\/a>\u00a0\ud2b8\uc704\ud130\uc5d0\uc11c \ud314\ub85c\uc6b0\ud558\uc138\uc694\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/twitter.com\/CouchbaseDev\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \uac1c\ubc1c<\/a>.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\uc9c8\ubb38\uc5d0 \ub300\ud55c \ub2f5\ubcc0\uc744 \uac8c\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/forums\/?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\ud3ec\ub7fc<\/a>. \uadf8\ub9ac\uace0 \ub2e4\uc74c\uc5d0\ub3c4 \uc801\uadf9\uc801\uc73c\ub85c \ucc38\uc5ec\ud569\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/stackoverflow.com\/questions\/tagged\/couchbase\">\uc2a4\ud0dd \uc624\ubc84\ud50c\ub85c<\/a>.<\/p>\n<p style=\"color: #000000;font-family: sans-serif;font-size: medium;line-height: 25.6px;text-align: start\">\ub2e4\uc74c \uc8fc\uc18c\uc5d0\uc11c \uc800\ub97c \uac1c\uc778\uc801\uc73c\ub85c \ud314\ub85c\uc6b0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a style=\"color: #265778;text-decoration: none\" href=\"https:\/\/twitter.com\/HodGreeley\">\ud638\ub4dc\uadf8\ub9b4\ub9ac<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>In this\u00a0post, I went into some detail about replications between\u00a0Sync Gateway\u00a0(SG) instances in\u00a0Couchbase Mobile\u00a0(CBM). I wrote a simple Java application with a Swing-based UI to illustrate a working example. I run the app along with two instances of SG to [&hellip;]<\/p>","protected":false},"author":73,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1810],"tags":[1562],"ppma_author":[9042],"class_list":["post-2384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-couchbase-mobile","tag-replication"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.2 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sync Gateway Inter-instance Code Sample - The Couchbase Blog<\/title>\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\/ko\/sync-gateway-inter-instance-replication-code-sample\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sync Gateway Inter-instance Code Sample\" \/>\n<meta property=\"og:description\" content=\"In this\u00a0post, I went into some detail about replications between\u00a0Sync Gateway\u00a0(SG) instances in\u00a0Couchbase Mobile\u00a0(CBM). I wrote a simple Java application with a Swing-based UI to illustrate a working example. I run the app along with two instances of SG to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/sync-gateway-inter-instance-replication-code-sample\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-11T06:43:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T08:08:46+00:00\" \/>\n<meta name=\"author\" content=\"Hod Greeley, Developer Advocate, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@HodGreeley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hod Greeley, Developer Advocate, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/\"},\"author\":{\"name\":\"Hod Greeley, Developer Advocate, Couchbase\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/9b62593c8a13531e53d52fcd5aabbca4\"},\"headline\":\"Sync Gateway Inter-instance Code Sample\",\"datePublished\":\"2016-09-11T06:43:09+00:00\",\"dateModified\":\"2023-07-24T08:08:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/\"},\"wordCount\":1128,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"keywords\":[\"replication\"],\"articleSection\":[\"Couchbase Mobile\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/\",\"name\":\"Sync Gateway Inter-instance Code Sample - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2016-09-11T06:43:09+00:00\",\"dateModified\":\"2023-07-24T08:08:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sync Gateway Inter-instance Code Sample\"}]},{\"@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\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@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\/9b62593c8a13531e53d52fcd5aabbca4\",\"name\":\"Hod Greeley, Developer Advocate, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/21eb69cb5d4a401fb23b149e4f4e9e87\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/52d0018695c0ced0d1c68cf64a6195c81dbac03dce5983f98eb209e7c84350df?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/52d0018695c0ced0d1c68cf64a6195c81dbac03dce5983f98eb209e7c84350df?s=96&d=mm&r=g\",\"caption\":\"Hod Greeley, Developer Advocate, Couchbase\"},\"description\":\"Hod Greeley is a Developer Advocate for Couchbase, living in Silicon Valley. He has over two decades of experience as a software engineer and engineering manager. He has worked in a variety of software fields, including computational physics and chemistry, computer and network security, finance, and mobile. Prior to joining Couchbase in 2016, Hod led developer relations for mobile at Samsung. Hod holds a Ph.D. in chemical physics from Columbia University.\",\"sameAs\":[\"https:\/\/hod.greeley.org\/blog\",\"https:\/\/x.com\/HodGreeley\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/ko\/author\/hod-greeley\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Sync Gateway Inter-instance Code Sample - The Couchbase Blog","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\/ko\/sync-gateway-inter-instance-replication-code-sample\/","og_locale":"ko_KR","og_type":"article","og_title":"Sync Gateway Inter-instance Code Sample","og_description":"In this\u00a0post, I went into some detail about replications between\u00a0Sync Gateway\u00a0(SG) instances in\u00a0Couchbase Mobile\u00a0(CBM). I wrote a simple Java application with a Swing-based UI to illustrate a working example. I run the app along with two instances of SG to [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/sync-gateway-inter-instance-replication-code-sample\/","og_site_name":"The Couchbase Blog","article_published_time":"2016-09-11T06:43:09+00:00","article_modified_time":"2023-07-24T08:08:46+00:00","author":"Hod Greeley, Developer Advocate, Couchbase","twitter_card":"summary_large_image","twitter_creator":"@HodGreeley","twitter_misc":{"Written by":"Hod Greeley, Developer Advocate, Couchbase","Est. reading time":"6\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/"},"author":{"name":"Hod Greeley, Developer Advocate, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/9b62593c8a13531e53d52fcd5aabbca4"},"headline":"Sync Gateway Inter-instance Code Sample","datePublished":"2016-09-11T06:43:09+00:00","dateModified":"2023-07-24T08:08:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/"},"wordCount":1128,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","keywords":["replication"],"articleSection":["Couchbase Mobile"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/","url":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/","name":"Sync Gateway Inter-instance Code Sample - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2016-09-11T06:43:09+00:00","dateModified":"2023-07-24T08:08:46+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/sync-gateway-inter-instance-replication-code-sample\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sync Gateway Inter-instance Code Sample"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","description":"NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4, Couchbase","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":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@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\/9b62593c8a13531e53d52fcd5aabbca4","name":"\ud638\ub4dc \uadf8\ub9b4\ub9ac, \uac1c\ubc1c\uc790 \uc639\ud638\uc790, \uce74\uc6b0\uce58\ubca0\uc774\uc2a4","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/21eb69cb5d4a401fb23b149e4f4e9e87","url":"https:\/\/secure.gravatar.com\/avatar\/52d0018695c0ced0d1c68cf64a6195c81dbac03dce5983f98eb209e7c84350df?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52d0018695c0ced0d1c68cf64a6195c81dbac03dce5983f98eb209e7c84350df?s=96&d=mm&r=g","caption":"Hod Greeley, Developer Advocate, Couchbase"},"description":"\ud638\ub4dc \uadf8\ub808\uc774\ub9ac\ub294 \uc2e4\ub9ac\ucf58\ubc38\ub9ac\uc5d0 \uac70\uc8fc\ud558\ub294 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc758 \uac1c\ubc1c\uc790 \uc639\ud638\uc790\uc785\ub2c8\ub2e4. \uadf8\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc5d4\uc9c0\ub2c8\uc5b4 \ubc0f \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \uad00\ub9ac\uc790\ub85c\uc11c 20\ub144 \uc774\uc0c1\uc758 \uacbd\ub825\uc744 \ubcf4\uc720\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub294 \uc804\uc0b0 \ubb3c\ub9ac\ud559 \ubc0f \ud654\ud559, \ucef4\ud4e8\ud130 \ubc0f \ub124\ud2b8\uc6cc\ud06c \ubcf4\uc548, \uae08\uc735, \ubaa8\ubc14\uc77c \ub4f1 \ub2e4\uc591\ud55c \uc18c\ud504\ud2b8\uc6e8\uc5b4 \ubd84\uc57c\uc5d0\uc11c \uc77c\ud574 \uc654\uc2b5\ub2c8\ub2e4. 2016\ub144 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc5d0 \ud569\ub958\ud558\uae30 \uc804\uc5d0\ub294 \uc0bc\uc131\uc5d0\uc11c \ubaa8\ubc14\uc77c \uac1c\ubc1c\uc790 \uad00\uacc4\ub97c \uc774\ub04c\uc5c8\uc2b5\ub2c8\ub2e4. \uceec\ub7fc\ube44\uc544 \ub300\ud559\uad50\uc5d0\uc11c \ud654\ud559 \ubb3c\ub9ac\ud559 \ubc15\uc0ac \ud559\uc704\ub97c \ubc1b\uc558\uc2b5\ub2c8\ub2e4.","sameAs":["https:\/\/hod.greeley.org\/blog","https:\/\/x.com\/HodGreeley"],"url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/hod-greeley\/"}]}},"authors":[{"term_id":9042,"user_id":73,"is_guest":0,"slug":"hod-greeley","display_name":"Hod Greeley, Developer Advocate, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/52d0018695c0ced0d1c68cf64a6195c81dbac03dce5983f98eb209e7c84350df?s=96&d=mm&r=g","author_category":"","last_name":"Greeley","first_name":"Hod","job_title":"","user_url":"https:\/\/hod.greeley.org\/blog","description":"\ud638\ub4dc \uadf8\ub808\uc774\ub9ac\ub294 \uc2e4\ub9ac\ucf58\ubc38\ub9ac\uc5d0 \uac70\uc8fc\ud558\ub294 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc758 \uac1c\ubc1c\uc790 \uc639\ud638\uc790\uc785\ub2c8\ub2e4. \uadf8\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc5d4\uc9c0\ub2c8\uc5b4 \ubc0f \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \uad00\ub9ac\uc790\ub85c\uc11c 20\ub144 \uc774\uc0c1\uc758 \uacbd\ub825\uc744 \ubcf4\uc720\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub294 \uc804\uc0b0 \ubb3c\ub9ac\ud559 \ubc0f \ud654\ud559, \ucef4\ud4e8\ud130 \ubc0f \ub124\ud2b8\uc6cc\ud06c \ubcf4\uc548, \uae08\uc735, \ubaa8\ubc14\uc77c \ub4f1 \ub2e4\uc591\ud55c \uc18c\ud504\ud2b8\uc6e8\uc5b4 \ubd84\uc57c\uc5d0\uc11c \uc77c\ud574 \uc654\uc2b5\ub2c8\ub2e4. 2016\ub144 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc5d0 \ud569\ub958\ud558\uae30 \uc804\uc5d0\ub294 \uc0bc\uc131\uc5d0\uc11c \ubaa8\ubc14\uc77c \uac1c\ubc1c\uc790 \uad00\uacc4\ub97c \uc774\ub04c\uc5c8\uc2b5\ub2c8\ub2e4. \uceec\ub7fc\ube44\uc544 \ub300\ud559\uad50\uc5d0\uc11c \ud654\ud559 \ubb3c\ub9ac\ud559 \ubc15\uc0ac \ud559\uc704\ub97c \ubc1b\uc558\uc2b5\ub2c8\ub2e4."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/2384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/73"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=2384"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/2384\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=2384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=2384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=2384"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=2384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}