{"id":5437,"date":"2018-07-09T06:35:10","date_gmt":"2018-07-09T13:35:10","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=5437"},"modified":"2025-06-13T19:28:04","modified_gmt":"2025-06-14T02:28:04","slug":"multi-document-transactions-acid-couchbase-2","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/multi-document-transactions-acid-couchbase-2\/","title":{"rendered":"\ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158 ACID\uc640 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4 2\ubd80"},"content":{"rendered":"<div class=\"paragraph\">\n<p><em><strong>\uc911\uc694 \ucc38\uace0 \uc0ac\ud56d<\/strong><\/em>: \uc774\uc81c Couchbase\uc5d0\uc11c \ub2e4\uc911 \ubb38\uc11c ACID \ud2b8\ub79c\uc7ad\uc158\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucc38\uc870: <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/transactions\/\">NoSQL \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc704\ud55c ACID \ud2b8\ub79c\uc7ad\uc158<\/a> \uc5d0\uc11c \uc790\uc138\ud55c \uc815\ubcf4\ub97c \ud655\uc778\ud558\uc138\uc694!<\/p>\n<p>\uc774 \uc2dc\ub9ac\uc988\uc758 \uc774\uc804 \uac8c\uc2dc\ubb3c\uc5d0\uc11c\ub294 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc5d0 \ub300\ud574 \ub2e4\ub8e8\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4: <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/acid-properties-couchbase-part-1\/\">ACID \uc18d\uc131 \ubc0f \uce74\uc6b0\uce58\ubca0\uc774\uc2a4<\/a>. \uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc5d0\uc11c\ub294 Couchbase\uac00 \uc9c0\uc6d0\ud558\ub294 ACID\uc758 \ube4c\ub529 \ube14\ub85d\uc5d0 \ub300\ud574 \uc124\uba85\ud588\uc2b5\ub2c8\ub2e4. <em>\ub2e8\uc77c<\/em> \ubb38\uc11c\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc5d0\uc11c\ub294 \uc774\ub7ec\ud55c \uae30\ubc18\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc740 \uac83\uc744 \uad6c\ucd95\ud558\ub824\uace0 \ud569\ub2c8\ub2e4. <em>\uac19\uc740<\/em> \uc6d0\uc790\uc801\uc778 \ubd84\uc0b0\ud615 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\uba74\ucc45 \uc870\ud56d: \uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc758 \ucf54\ub4dc\ub294 \ud504\ub85c\ub355\uc158\uc6a9\uc73c\ub85c \uad8c\uc7a5\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uae30\ub2a5\uc744 \uc81c\uac70\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4. <em>might<\/em> \uc788\ub294 \uadf8\ub300\ub85c \uc720\uc6a9\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc9c0\ub9cc \ud504\ub85c\ub355\uc158\uc5d0 \uc0ac\uc6a9\ud560 \uc900\ube44\uac00 \ub418\ub824\uba74 \ub354 \ub2e4\ub4ec\uace0 \ub2e4\ub4ec\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc774 \uae00\uc758 \uc758\ub3c4\ub294 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\ub85c \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc774 \ud544\uc694\ud55c (\ub4dc\ubb3c\uaca0\uc9c0\ub9cc) \uc0c1\ud669\uc5d0 \ub300\ube44\ud574 \uc5b4\ub5a4 \uac83\uc774 \ud544\uc694\ud55c\uc9c0 \uc54c\ub824\ub4dc\ub9ac\uae30 \uc704\ud568\uc785\ub2c8\ub2e4.<\/strong><\/p>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_a_brief_recap\">\uac04\ub7b5\ud55c \uc694\uc57d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>1\ubd80\uc5d0\uc11c\ub294 \uc2e4\uc81c\ub85c Couchbase\uc5d0\uc11c \ub2e8\uc77c \ubb38\uc11c \uc218\uc900\uc5d0\uc11c ACID \uc18d\uc131\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4\ub294 \uac83\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ubb38\uc11c\uac00 \ube44\uc815\uaddc\ud654\ub41c \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \ud568\uaed8 \uc800\uc7a5\ud560 \uc218 \uc788\ub294 \uc0ac\uc6a9 \uc0ac\ub840\uc758 \uacbd\uc6b0, \uc774\ub294 \uc801\uc808\ud569\ub2c8\ub2e4. \uc5b4\ub5a4 \uacbd\uc6b0\uc5d0\ub294 \ub2e8\uc77c \ubb38\uc11c\ub85c\uc758 \ube44\uc815\uaddc\ud654\ub9cc\uc73c\ub85c\ub294 \uc694\uad6c \uc0ac\ud56d\uc744 \ucda9\uc871\ud558\uae30\uc5d0 \ucda9\ubd84\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc18c\uc218\uc758 \uc0ac\uc6a9 \uc0ac\ub840\uc758 \uacbd\uc6b0 \uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc758 \uc608\ub97c \uace0\ub824\ud574 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc8fc\uc758 \uc0ac\ud56d: \uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc740 <em>\uc2dc\uc791<\/em> \ud3ec\uc778\ud2b8\uac00 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc0ac\uc6a9 \uc0ac\ub840, \uae30\uc220\uc801 \uc694\uad6c \uc0ac\ud56d, Couchbase Server\uc758 \uae30\ub2a5 \ubc0f \uad00\uc2ec \uc788\ub294 \uc5d0\uc9c0 \ucf00\uc774\uc2a4\ub294 \ubaa8\ub450 \ub2e4\ub97c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud604\uc7ac\ub85c\uc11c\ub294 \ubaa8\ub4e0 \uacbd\uc6b0\uc5d0 \uc801\ud569\ud55c \uc811\uadfc \ubc29\uc2dd\uc740 \uc5c6\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_multi_document_transactions_example\">\ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158 \uc608\uc2dc<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc5ec\uae30\uc11c\ub294 \ucf54\ub4dc\ub97c \ub2e8\uc21c\ud558\uac8c \uc720\uc9c0\ud558\uae30 \uc704\ud574 \uac04\ub2e8\ud55c \uc791\uc5c5\uc5d0 \uc911\uc810\uc744 \ub450\uaca0\uc2b5\ub2c8\ub2e4. \uc880 \ub354 \uace0\uae09\uc758 \uacbd\uc6b0\uc5d0\ub294 \uc774 \ucf54\ub4dc\ub97c \uae30\ubc18\uc73c\ub85c \uc77c\ubc18\ud654\ud558\uc5ec \uc801\uc808\ud558\ub2e4\uace0 \uc0dd\uac01\ub418\ub294 \ub300\ub85c \uc870\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uac8c\uc784\uc744 \uac1c\ubc1c \uc911\uc774\ub77c\uace0 \uac00\uc815\ud574 \ubd05\uc2dc\ub2e4. \uc774 \uac8c\uc784\uc5d0\ub294 \ub18d\uc7a5\uc744 \ub9cc\ub4e4\uace0 \uc6b4\uc601\ud558\ub294 \uac83\uc774 \ud3ec\ud568\ub429\ub2c8\ub2e4(\ubbf8\uce5c \uc18c\ub9ac\ucc98\ub7fc \ub4e4\ub9ac\uaca0\uc9c0\ub9cc). \uc774 \uac8c\uc784\uc5d0\uc11c \ub2ed\uc774 \uba87 \ub9c8\ub9ac \uc788\ub294 \ud5db\uac04\uc774 \uc788\ub2e4\uace0 \uac00\uc815\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uce5c\uad6c\uc5d0\uac8c\ub3c4 \uba87 \ub9c8\ub9ac\uc758 \ub2ed\uc774 \uc788\ub294 \ud5db\uac04\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc5b4\ub290 \uc2dc\uc810\uc5d0 \uc5ec\ub7ec\ubd84\uc740 \uc790\uc2e0\uc758 \ud5db\uac04\uc5d0\uc11c \uce5c\uad6c\uc758 \ud5db\uac04\uc73c\ub85c \ub2ed\uc744 \uc62e\uae30\uace0 \uc2f6\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774 \uacbd\uc6b0 \ub370\uc774\ud130 \uc815\uaddc\ud654\ub294 \ub3c4\uc6c0\uc774 \ub418\uc9c0 \uc54a\uc744 \uac83\uc785\ub2c8\ub2e4. \uc65c\ub0d0\ud558\uba74:<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\ubaa8\ub4e0 \ud5db\uac04\uc744 \ud3ec\ud568\ud558\ub294 \ub2e8\uc77c \ubb38\uc11c\ub294 \uaddc\ubaa8\uac00 \ud070 \uac8c\uc784\uc5d0\ub294 \uc801\ud569\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ub0b4 \ud5db\uac04 \ubb38\uc11c\uc5d0 \uce5c\uad6c\uc758 \ud5db\uac04 \ubb38\uc11c\uac00 \ud3ec\ud568\ub418\ub294 \uac83\uc740 \ub9d0\uc774 \uc548 \ub429\ub2c8\ub2e4(\ub610\ub294 \uadf8 \ubc18\ub300\uc758 \uacbd\uc6b0\ub3c4 \ub9c8\ucc2c\uac00\uc9c0).<\/li>\n<li>\ub098\uba38\uc9c0 \uac8c\uc784 \ub85c\uc9c1\uc740 \ub2e8\uc77c \ubb38\uc11c \uc6d0\uc790\uc131\uc5d0\uc11c \uc798 \uc791\ub3d9\ud569\ub2c8\ub2e4. \uae4c\ub2e4\ub85c\uc6b4 \uac83\uc740 \uce58\ud0a8 \uc804\uc1a1\ubfd0\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc6b0\uc120, \uc6b0\ub9ac\uac00 \uac00\uc9c4 \uac83\uc740 \ub450 \uac1c\uc758 '\ud5db\uac04' \ubb38\uc11c(Grant Barn \ubc0f Miller Barn)\ubfd0\uc785\ub2c8\ub2e4:<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11001-barn-documents-initial.png\" alt=\"Initial barn documents\" \/><\/span><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub2ed\uc744 \uc804\uc1a1\ud558\ub294 \ub370 \uc0ac\uc6a9\ud560 \uc774 \ubc29\ubc95\uc744 \"2\ub2e8\uacc4 \ucee4\ubc0b\"\uc774\ub77c\uace0 \ud569\ub2c8\ub2e4. \ucd1d 6\ub2e8\uacc4\uac00 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/github.com\/couchbaselabs\/blog-source-code\/tree\/master\/Groves\/110AcidPart2\/src\">\uc804\uccb4 \uc18c\uc2a4 \ucf54\ub4dc\ub294 GitHub\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/a>.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><em>\ubaa8\ub4e0 \uc2a4\ud06c\ub9b0\uc0f7\uc744 \ucc0d\uace0 \ucf54\ub4dc \uc0d8\ud50c\uc744 \uc791\uc131\ud558\uba74\uc11c \ub2ed\uc740 \ucd95\uc0ac\uac00 \uc544\ub2cc \ub2ed\uc7a5\uc5d0 \uc0b0\ub2e4\ub294 \uc0dd\uac01\uc774 \ub4e4\uc5c8\ub098\uc694? \ud558\uc9c0\ub9cc \uc800\uc640 \ud568\uaed8 \uac00\ubcf4\uc138\uc694.<\/em><\/p>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_0_transaction_document\">0) \uac70\ub798 \ubb38\uc11c<\/h3>\n<div class=\"paragraph\">\n<p>\uccab \ubc88\uc9f8 \ub2e8\uacc4\ub294 \ud2b8\ub79c\uc7ad\uc158 \ubb38\uc11c\ub97c \ub9cc\ub4dc\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc11c\ub294 \uc5ec\ub7ec \ubb38\uc11c\ub85c \uc774\ub8e8\uc5b4\uc9c4 \ud2b8\ub79c\uc7ad\uc158\uc744 \ucd94\uc801\ud558\uace0 <strong>\uc0c1\ud0dc<\/strong> \uc758 \ud2b8\ub79c\uc7ad\uc158\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. C#\ub97c \ub9cc\ub4e4\uc5c8\uc2b5\ub2c8\ub2e4. <code>Enum<\/code> \ub97c \ud2b8\ub79c\uc7ad\uc158\uc5d0 \uc0ac\uc6a9\ub418\ub294 \uac00\ub2a5\ud55c \uc0c1\ud0dc\uc640 \ud568\uaed8 \uc124\uc815\ud569\ub2c8\ub2e4. Couchbase\uc5d0 \uc800\uc7a5\ud560 \ub54c\ub294 \uc22b\uc790\uac00 \ub418\uc9c0\ub9cc \uc6d0\ud558\ub294 \uacbd\uc6b0 \ubb38\uc790\uc5f4\uc774\ub098 \ub2e4\ub978 \ud45c\ud604\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">public enum TransactionStates\r\n{\r\n    Initial = 0,\r\n    Pending = 1,\r\n    Committed = 2,\r\n    Done = 3,\r\n    Cancelling = 4,\r\n    Cancelled = 5\r\n}<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\ud2b8\ub79c\uc7ad\uc158\uc740 \"\ucd08\uae30\" \uc0c1\ud0dc\ub85c \uc2dc\uc791\ub429\ub2c8\ub2e4. \uc774 \ud2b8\ub79c\uc7ad\uc158\uc744 \uc0b4\ud3b4\ubcf4\uba74 \"\uc18c\uc2a4\" \ub2ed\uc7a5, \"\ub300\uc0c1\" \ub2ed\uc7a5, \uadf8\ub9ac\uace0 \uc804\uc1a1\ud560 \ub2ed\uc758 \uc218\uac00 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">var transaction = _bucket.Upsert(new Document&lt;TransactionRecord&gt;\r\n{\r\n    Id = transactionDocumentKey,\r\n    Content = new TransactionRecord\r\n    {\r\n        SourceId = source.Id,\r\n        Source = source.Value,\r\n        DestinationId = destination.Id,\r\n        Destination = destination.Value,\r\n        Amount = amountToTransfer,\r\n        State = TransactionStates.Initial\r\n    }\r\n});<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub370\uc774\ud130\ub97c \ub2e4\uc2dc \uc790\uc138\ud788 \uc0b4\ud3b4\ubd05\uc2dc\ub2e4. \uc774\uc81c \uc138 \uac1c\uc758 \ubb38\uc11c\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ud2b8\ub79c\uc7ad\uc158\uc740 \uc0c8 \ubb38\uc11c\uc774\uace0, \ud5db\uac04 \ubb38\uc11c\ub294 \ucc98\uc74c\uacfc \ub3d9\uc77c\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11002-barn-documents-initial-transaction-document.png\" alt=\"Initial multi-document transactions document\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_1_switch_to_pending\">1) \ubcf4\ub958 \uc911\uc73c\ub85c \uc804\ud658<\/h3>\n<div class=\"paragraph\">\n<p>\ub2e4\uc74c\uc73c\ub85c \ud2b8\ub79c\uc7ad\uc158 \ubb38\uc11c\ub97c '\ubcf4\ub958 \uc911' \uc0c1\ud0dc\ub85c \uc124\uc815\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ud2b8\ub79c\uc7ad\uc158\uc758 '\uc0c1\ud0dc'\uac00 \uc911\uc694\ud55c \uc774\uc720\ub294 \ub098\uc911\uc5d0 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">var transCas = UpdateWithCas&lt;TransactionRecord&gt;(transaction.Id, x =&gt; x.State = TransactionStates.Pending, transaction.Document.Cas);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc800\ub294 \uc5ec\uae30\uc11c \uc57d\uac04\uc758 \uc18d\uc784\uc218\ub97c \uc37c\uc2b5\ub2c8\ub2e4. <code>UpdateWithCas<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. .NET\uc5d0\uc11c Cas \uc5f0\uc0b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc11c\ub97c \uc5c5\ub370\uc774\ud2b8\ud558\ub294 \uac83\uc740 \ub2e4\uc18c \uc7a5\ud669\ud560 \uc218 \uc788\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \ub9ce\uc774 \ud560 \uac83\uc785\ub2c8\ub2e4. \uadf8\ub798\uc11c \uc791\uc740 \ub3c4\uc6b0\ubbf8 \ud568\uc218\ub97c \ub9cc\ub4e4\uc5c8\uc2b5\ub2c8\ub2e4:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">private ulong UpdateWithCas&lt;T&gt;(string documentId, Action&lt;T&gt; act, ulong? cas = null)\r\n{\r\n    var document = _bucket.Get&lt;T&gt;(documentId);\r\n    var content = document.Value;\r\n    act(content);\r\n    var result = _bucket.Replace(new Document&lt;T&gt;\r\n    {\r\n        Cas = cas ?? document.Cas,\r\n        Id = document.Id,\r\n        Content = content\r\n    });\r\n    \/\/ NOTE: could put retr(ies) here\r\n    \/\/ or throw exception when cas values don't match\r\n    return result.Document.Cas;\r\n}<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774\ub294 \uc911\uc694\ud55c \ub3c4\uc6b0\ubbf8 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc740 <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/optimistic-or-pessimistic-locking-which-one-should-you-pick\/\">\ub099\uad00\uc801 \uc7a0\uae08<\/a> \ub97c \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc11c\ub97c \uc5c5\ub370\uc774\ud2b8\ud560 \uc218 \uc788\uc9c0\ub9cc \uc7ac\uc2dc\ub3c4\ub098 \uc624\ub958 \ucc98\ub9ac\ub294 \uc218\ud589\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub370\uc774\ud130\ub85c \ub3cc\uc544\uac00 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\uc9c1 3\uac1c\uc758 \ubb38\uc11c\uac00 \uc788\uc9c0\ub9cc \ud2b8\ub79c\uc7ad\uc158 \ubb38\uc11c '\uc0c1\ud0dc'\uac00 \uc5c5\ub370\uc774\ud2b8\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11003-barns-and-transaction-pending.png\" alt=\"Multi-document Transaction pending\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_2_change_the_documents\">2) \ubb38\uc11c \ubcc0\uacbd<\/h3>\n<div class=\"paragraph\">\n<p>\ub2e4\uc74c\uc73c\ub85c, \uc2e4\uc81c\ub85c \ucd95\uc0ac \ubb38\uc11c\uc5d0 \ud544\uc694\ud55c \ubcc0\ud615\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. \uc18c\uc2a4 \ud5db\uac04\uc5d0\uc11c \ub2ed \ud55c \ub9c8\ub9ac\ub97c \ube7c\uace0 \ub300\uc0c1 \ud5db\uac04\uc5d0 \ub2ed \ud55c \ub9c8\ub9ac\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \ub3d9\uc2dc\uc5d0 \uc774\ub7ec\ud55c \ud5db\uac04 \ubb38\uc11c\uc5d0 \ud2b8\ub79c\uc7ad\uc158 \ubb38\uc11c ID\ub97c '\ud0dc\uadf8'\ud558\ub824\uace0 \ud569\ub2c8\ub2e4. \uc774\uac83\uc774 \uc65c \uc911\uc694\ud55c\uc9c0 \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c \ub098\uc911\uc5d0 \uc774\ub7ec\ud55c \ubb38\uc11c\ub97c \ucd94\uac00\ub85c \ubcc0\uacbd\ud560 \ub54c \ud544\uc694\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774\ub7ec\ud55c \ub3cc\uc5f0\ubcc0\uc774\uc758 Cas \uac12\ub3c4 \uc800\uc7a5\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">var sourceCas = UpdateWithCas&lt;Barn&gt;(source.Id, x =&gt; { x.Chickens -= amountToTransfer; x.Transaction = transaction.Id; });\r\n\r\nvar destCas = UpdateWithCas&lt;Barn&gt;(destination.Id, x =&gt; { x.Chickens += amountToTransfer; x.Transaction = transaction.Id; });<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774 \uc2dc\uc810\uc5d0\uc11c \ucf54\ub4dc\ub294 \ub2ed\uc744 \ud5db\uac04 \uc0ac\uc774\ub85c \uc774\ub3d9\uc2dc\ucf30\uc2b5\ub2c8\ub2e4. \ub610\ud55c \ud5db\uac04\uc5d0 \uc788\ub294 \ud2b8\ub79c\uc7ad\uc158 '\ud0dc\uadf8'\ub3c4 \uc8fc\ubaa9\ud558\uc138\uc694.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11004-barns-tagged-and-transaction-pending.png\" alt=\"Barns tagged with transaction\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_3_switch_to_committed\">3) \ucee4\ubc0b\uc73c\ub85c \uc804\ud658<\/h3>\n<div class=\"paragraph\">\n<p>\uc5ec\uae30\uae4c\uc9c0\uc785\ub2c8\ub2e4. \ubcc0\uacbd\uc774 \uc644\ub8cc\ub418\uc5c8\uc73c\ub2c8 \uc774\uc81c \ud2b8\ub79c\uc7ad\uc158\uc744 \"\ucee4\ubc0b\ub428\"\uc73c\ub85c \ud45c\uc2dc\ud560 \ucc28\ub840\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">transCas = UpdateWithCas&lt;TransactionRecord&gt;(transaction.Id, x =&gt; x.State = TransactionStates.Committed, transCas);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\ubcc0\uacbd\ub41c \uac83\uc740 \ud2b8\ub79c\uc7ad\uc158\uc758 '\uc0c1\ud0dc'\ubfd0\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11005-barn-documents-tags-transaction-committed.png\" alt=\"Transaction committed\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_4_remove_transaction_tags\">4) \ud2b8\ub79c\uc7ad\uc158 \ud0dc\uadf8 \uc81c\uac70<\/h3>\n<div class=\"paragraph\">\n<p>\uc774\uc81c \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc774 \"\ucee4\ubc0b\ub41c\" \uc0c1\ud0dc\uac00 \ub418\uc5c8\uc73c\ubbc0\ub85c \uc800\uc7a5\uc18c\ub294 \ub354 \uc774\uc0c1 \ud2b8\ub79c\uc7ad\uc158\uc758 \uc77c\ubd80\ub77c\ub294 \uc0ac\uc2e4\uc744 \uc54c \ud544\uc694\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \uc800\uc7a5\uc18c\uc5d0\uc11c \uc774\ub7ec\ud55c \"\ud0dc\uadf8\"\ub97c \uc81c\uac70\ud558\uc138\uc694.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">UpdateWithCas&lt;Barn&gt;(source.Id, x =&gt; { x.Transaction = null; }, sourceCas);\r\nUpdateWithCas&lt;Barn&gt;(destination.Id, x =&gt; { x.Transaction = null; }, destCas);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774\uc81c \ud5db\uac04\uc740 \uac70\ub798\uc5d0\uc11c \uc790\uc720\ub85c\uc6cc\uc84c\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11006-barns-no-tags-transaction-committed.png\" alt=\"Multi-document Transactions tags removed\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_5_transaction_is_done\">5) \uac70\ub798 \uc644\ub8cc<\/h3>\n<div class=\"paragraph\">\n<p>\ub9c8\uc9c0\ub9c9 \ub2e8\uacc4\ub294 \ud2b8\ub79c\uc7ad\uc158 \uc0c1\ud0dc\ub97c '\uc644\ub8cc'\ub85c \ubcc0\uacbd\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">UpdateWithCas&lt;TransactionRecord&gt;(transaction.Id, x =&gt; x.State = TransactionStates.Done, transCas);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc5ec\uae30\uae4c\uc9c0 \uc654\ub2e4\uba74 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc774 \uc644\ub8cc\ub41c \uac83\uc785\ub2c8\ub2e4. \uc804\uc1a1 \ud6c4 \uacc4\uc0ac\uc5d0\ub294 \uc815\ud655\ud55c \uc218\uc758 \ub2ed\uc774 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11007-transaction-done.png\" alt=\"Transaction done\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_rollback_what_if_something_goes_wrong\">\ub864\ubc31: \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud558\uba74 \uc5b4\ub5bb\uac8c \ud558\ub098\uc694?<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158 \uc911\uc5d0 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud560 \uac00\ub2a5\uc131\uc740 \uc804\uc801\uc73c\ub85c \uc788\uc2b5\ub2c8\ub2e4. \uadf8\uac8c \ubc14\ub85c \ud2b8\ub79c\uc7ad\uc158\uc758 \ud575\uc2ec\uc785\ub2c8\ub2e4. \ubaa8\ub4e0 \uc791\uc5c5\uc774 \uc131\uacf5\ud560 \uc218\ub3c4 \uc788\uace0 \uc2e4\ud328\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc704\uc758 1~5\ub2e8\uacc4\uc758 \ucf54\ub4dc\ub97c \ud558\ub098\uc758 \uc2dc\ub3c4\/\uce90\uce58 \ube14\ub85d \uc548\uc5d0 \ub123\uc5c8\uc2b5\ub2c8\ub2e4. \ub3c4\uc911\uc5d0 \uc608\uc678\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc9c0\ub9cc \ub450 \uac00\uc9c0 \uc911\uc694\ud55c \uc0ac\ud56d\uc5d0 \uc9d1\uc911\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\"\ubcf4\ub958 \uc911\" \uc608\uc678<\/strong> - 2\ub2e8\uacc4 \uc911\uac04\uc5d0 \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uba74 \uc5b4\ub5bb\uac8c \ucc98\ub9ac\ud574\uc57c \ud558\ub098\uc694? \uc989, \uc18c\uc2a4 \ud5db\uac04\uc5d0\uc11c \ub2ed \ud55c \ub9c8\ub9ac\ub97c \ube80 \ud6c4 \ub300\uc0c1 \ud5db\uac04\uc5d0 \ub2ed \ud55c \ub9c8\ub9ac\ub97c \ucd94\uac00\ud558\uae30 \uc804\uc785\ub2c8\ub2e4. \uc774 \uc0c1\ud669\uc744 \ucc98\ub9ac\ud558\uc9c0 \uc54a\uc73c\uba74 \ub2ed\uc774 \uc5d0\ud14c\ub974 \uc18d\uc73c\ub85c \uc0ac\ub77c\uc9c0\uace0 \uac8c\uc784 \ud50c\ub808\uc774\uc5b4\ub294 \ub2ed \uc6b8\uc74c\uc18c\ub9ac\ub97c \ub0bc \uac83\uc785\ub2c8\ub2e4!<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\ud2b8\ub79c\uc7ad\uc158 \"\ucee4\ubc0b\" \ud6c4 \uc608\uc678<\/strong> - \ud2b8\ub79c\uc7ad\uc158\uc758 \uc0c1\ud0dc\uac00 \"\ucee4\ubc0b\ub428\"\uc774\uc9c0\ub9cc \ud2b8\ub79c\uc7ad\uc158 \ud0dc\uadf8\uac00 \ub354 \uc774\uc0c1 \uc800\uc7a5\uc18c\uc5d0 \uc5c6\uae30 \uc804\uc5d0 \uc624\ub958\uac00 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ucc98\ub9ac\ud558\uc9c0 \uc54a\uc73c\uba74 \ub2e4\ub978 \ud504\ub85c\uc138\uc2a4\uc5d0\uc11c \uc5ec\uc804\ud788 \ud2b8\ub79c\uc7ad\uc158 \ub0b4\ubd80\uc5d0 \uc788\ub294 \uac83\uc73c\ub85c \ubcf4\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud2b8\ub79c\uc7ad\uc158\uc758 <em>\uba3c\uc800<\/em> \ub2ed \uc804\uc1a1\uc740 \uc131\uacf5\ud558\uc9c0\ub9cc \ub354 \uc774\uc0c1 \ub2ed\uc744 \uc804\uc1a1\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ucf54\ub4dc\ub294 \uc774\ub7ec\ud55c \ubb38\uc81c\ub97c \ub0b4\ubd80\uc5d0\uc11c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <code>catch<\/code> \ube14\ub85d\uc73c\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4. \ud2b8\ub79c\uc7ad\uc158\uc758 '\uc0c1\ud0dc'(\ud2b8\ub79c\uc7ad\uc158 '\ud0dc\uadf8'\uc640 \ud568\uaed8)\uac00 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud558\ub294 \uacf3\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_exception_during_pending\">\"\ubcf4\ub958 \uc911\" \uc608\uc678<\/h3>\n<div class=\"paragraph\">\n<p>\ub2ed\uc744 \uc783\uc5b4\ubc84\ub9b0 \uc0c1\ud669\uc740 \uac8c\uc774\uba38\ub97c \ud654\ub098\uac8c \ud560 \uc218 \uc788\ub294 \uc0c1\ud669\uc785\ub2c8\ub2e4. \ubaa9\ud45c\ub294 \uc783\uc5b4\ubc84\ub9b0 \ub2ed\uc744 \ubaa8\ub450 \uad50\uccb4\ud558\uace0 \ucd95\uc0ac\ub97c \uac70\ub798 \uc804 \uc0c1\ud0dc\ub85c \ub418\ub3cc\ub9ac\uae30 \uc704\ud55c \uac83\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ubc14\ub85c \uc911\uac04\uc5d0 \uc77c\uc5b4\ub09c\ub2e4\uace0 \uac00\uc815\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \uc0c8 \ud2b8\ub79c\uc7ad\uc158\uc774 \ubc1c\uc0dd\ud558\uc5ec Burrows \ud5db\uac04(\ub2ed 12\ub9c8\ub9ac)\uc5d0\uc11c White \ud5db\uac04(\ub2ed 13\ub9c8\ub9ac)\uc73c\ub85c \ub2ed 1\ub9c8\ub9ac\ub97c \uc804\uc1a1\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11013-rollback.png\" alt=\"Barns before rollback\" \/><\/span><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc911\uac04\uc5d0 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \uc18c\uc2a4 \ucd95\uc0ac\uc5d0\ub294 \ub2ed \ud55c \ub9c8\ub9ac\uac00 \ubd80\uc871\ud558\uc9c0\ub9cc \ubaa9\uc801\uc9c0 \ucd95\uc0ac\uc5d0\ub294 \ub2ed\uc774 \ub4e4\uc5b4\uac00\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11008-barns-inconsistent-state-with-transaction.png\" alt=\"Barns inconsistent and transaction\" \/><\/span><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ubcf5\uad6c\ud558\ub294 3\ub2e8\uacc4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<\/div>\n<div class=\"sect3\">\n<h4 id=\"_1_cancel_transaction\">1) \uac70\ub798 \ucde8\uc18c<\/h4>\n<div class=\"paragraph\">\n<p>\ud2b8\ub79c\uc7ad\uc158 \uc0c1\ud0dc\ub97c \"\ucde8\uc18c\"\ub85c \ubcc0\uacbd\ud569\ub2c8\ub2e4. \ub098\uc911\uc5d0 \"\ucde8\uc18c\ub428\"\uc73c\ub85c \ubcc0\uacbd\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">UpdateWithCas&lt;TransactionRecord&gt;(transaction.Id, x =&gt; x.State = TransactionStates.Cancelling, transactionRecord.Cas);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc9c0\uae08\uae4c\uc9c0 \ubcc0\uacbd\ub41c \uac83\uc740 \uac70\ub798 \ubb38\uc11c\ubfd0\uc785\ub2c8\ub2e4:<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11009-transaction-cancelling.png\" alt=\"Transaction now cancelling\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect3\">\n<h4 id=\"_2_revert_changes\">2) \ubcc0\uacbd \uc0ac\ud56d \ub418\ub3cc\ub9ac\uae30<\/h4>\n<div class=\"paragraph\">\n<p>\ub2e4\uc74c\uc73c\ub85c, \ud5db\uac04\uc758 \uc0c1\ud0dc\ub97c \uc774\uc804 \uc0c1\ud0dc\ub85c \ub418\ub3cc\ub824\uc57c \ud569\ub2c8\ub2e4. \uc774 \uc791\uc5c5\uc740 \ud5db\uac04\uc5d0 \ud2b8\ub79c\uc7ad\uc158 \ud0dc\uadf8\uac00 \uc788\ub294 \uacbd\uc6b0\uc5d0\ub9cc \ud544\uc694\ud558\ub2e4\ub294 \uc810\uc5d0 \uc720\uc758\ud558\uc138\uc694. \ud0dc\uadf8\uac00 \uc5c6\uc73c\uba74 \uc774\ubbf8 \ud2b8\ub79c\uc7ad\uc158 \uc774\uc804 \uc0c1\ud0dc\uc778 \uac83\uc785\ub2c8\ub2e4. \ud0dc\uadf8\uac00 \uc788\uc73c\uba74 \uc81c\uac70\ud558\uc138\uc694.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">UpdateWithCas&lt;Barn&gt;(source.Id, x =&gt;\r\n{\r\n    if (x.Transaction != null)\r\n    {\r\n        x.Chickens += transactionRecord.Value.Amount;\r\n        x.Transaction = null;\r\n    }\r\n});\r\n\r\nUpdateWithCas&lt;Barn&gt;(destination.Id, x =&gt;\r\n{\r\n    if (x.Transaction != null)\r\n    {\r\n        x.Chickens -= transactionRecord.Value.Amount;\r\n        x.Transaction = null;\r\n    }\r\n});<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774\uc81c \ud5db\uac04\uc740 \uc608\uc804\uc73c\ub85c \ub3cc\uc544\uac14\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11010-barns-rolled-back-transaction-still-cancelling.png\" alt=\"Barns rolled back\" \/><\/span><\/p>\n<\/div>\n<\/div>\n<div class=\"sect3\">\n<h4 id=\"_3_cancelled_transaction\">3) \ucde8\uc18c\ub41c \uac70\ub798<\/h4>\n<div class=\"paragraph\">\n<p>\ub9c8\uc9c0\ub9c9\uc73c\ub85c \ud560 \uc77c\uc740 \uac70\ub798\ub97c '\ucde8\uc18c\ub428'\uc73c\ub85c \uc124\uc815\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight decode:true\"><code class=\"language-C#\">UpdateWithCas&lt;TransactionRecord&gt;(transaction.Id, x =&gt; x.State = TransactionStates.Cancelled);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774\uc81c \uac70\ub798\uac00 '\ucde8\uc18c'\ub429\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2018\/07\/11011-transaction-cancelled.png\" alt=\"Transaction cancelled\" \/><\/span><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774\ub807\uac8c \ud558\uba74 \uac8c\uc784\uc758 \ucd1d \ub2ed \uc218\uac00 \uc720\uc9c0\ub429\ub2c8\ub2e4. \uc774 \uc2dc\uc810\uc5d0\uc11c \ub864\ubc31\uc774 \ud544\uc694\ud55c \uc624\ub958\ub97c \ucc98\ub9ac\ud574\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uac70\ub098, \ud50c\ub808\uc774\uc5b4\uc5d0\uac8c \uc54c\ub9ac\uac70\ub098, \uc624\ub958\ub97c \uae30\ub85d\ud558\uac70\ub098, \uc704\uc758 \ubaa8\ub4e0 \uc791\uc5c5\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_exception_during_committed\">\"\ucee4\ubc0b\" \uc911 \uc608\uc678<\/h3>\n<div class=\"paragraph\">\n<p>\ub2e4\uc74c\uc73c\ub85c, \ud5db\uac04\uc5d0 \ub300\ud55c \ubcc0\uacbd\uc774 \uc644\ub8cc\ub418\uc5c8\uc9c0\ub9cc \uc544\uc9c1 \ud2b8\ub79c\uc7ad\uc158 \ud0dc\uadf8\uac00 \uc81c\uac70\ub418\uc9c0 \uc54a\uc740 \ub2e4\ub978 \uacbd\uc6b0\ub97c \uc0b4\ud3b4\ubd05\uc2dc\ub2e4. \uac8c\uc784 \ub85c\uc9c1\uc774 \uc774\ub7ec\ud55c \ud0dc\uadf8\ub97c \uc2e0\uacbd \uc4f4\ub2e4\uace0 \uac00\uc815\ud558\uba74 \ud5a5\ud6c4 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc774 \ubd88\uac00\ub2a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774 \uc0c1\ud669\ub3c4 \ub611\uac19\uc740 \ub864\ubc31 \ub85c\uc9c1\uc73c\ub85c \ucc98\ub9ac\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_problems_and_edge_cases\">\ubb38\uc81c \ubc0f \uc5d0\uc9c0 \uc0ac\ub840<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc774 \uac04\ub2e8\ud55c \uc608\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc694\ub839\uc5d0 \ubd88\uacfc\ud560 \uc218 \uc788\uc9c0\ub9cc \uace0\ub824\ud574\uc57c \ud560 \uc5e3\uc9c0 \uc0ac\ub840\ub294 \ub9e4\uc6b0 \ub9ce\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\ud504\ub85c\uc138\uc2a4\uac00 \ub3c4\uc911\uc5d0 \uc911\ub2e8\ub418\uba74 \uc5b4\ub5bb\uac8c \ub418\ub098\uc694?<\/strong> \uc989, \ucf54\ub4dc\uac00 \ucf54\ub4dc\uc758 <code>catch<\/code> \ube14\ub85d\uc73c\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4. \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc2dc\uc791 \uc2dc \uc644\ub8cc\ub418\uc9c0 \uc54a\uc740 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc774 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uace0 \uac70\uae30\uc11c \ubcf5\uad6c\ub97c \uc218\ud589\ud574\uc57c \ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ub294 \ubd88\uc644\uc804\ud55c \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc744 \ucc3e\ub294 \ub2e4\ub978 \uac10\uc2dc \ud504\ub85c\uc138\uc2a4\uac00 \ud544\uc694\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\uac70\ub798 \uc911\uc5d0 \uc77d\uae30\uac00 \ubc1c\uc0dd\ud558\uba74 \uc5b4\ub5bb\uac8c \ud558\ub098\uc694?<\/strong> \uc5c5\ub370\uc774\ud2b8 \uc0ac\uc774\uc5d0 \ud5db\uac04\uc744 \"\uac00\uc838\uc628\ub2e4\"\uace0 \uac00\uc815\ud574 \ubd05\uc2dc\ub2e4. \uc774\ub294 '\ub354\ud2f0' \uc77d\uae30\uac00 \ub418\uc5b4 \ubb38\uc81c\uac00 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\ubaa8\ub4e0 \uac83\uc774 \uc5b4\ub5a4 \uc0c1\ud0dc\ub85c \ub0a8\uc544 \uc788\ub098\uc694?<\/strong> \ubcf4\ub958 \uc911\uc778 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc744 \uc644\ub8cc\/\ub864\ubc31\ud558\ub294 \uac83\uc740 \ub204\uad6c\uc758 \ucc45\uc784\uc778\uac00\uc694?<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\ub3d9\uc77c\ud55c \ubb38\uc11c\uac00 \ub3d9\uc2dc\uc5d0 \ub450 \uac1c\uc758 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc5d0 \ud3ec\ud568\ub418\uba74 \uc5b4\ub5bb\uac8c \ub418\ub098\uc694?<\/strong> \uc774\ub7ec\ud55c \uc77c\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\ub3c4\ub85d \ub85c\uc9c1\uc744 \uad6c\ucd95\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\uc0d8\ud50c\uc5d0\ub294 \ub864\ubc31\uc744 \uc704\ud55c \ubaa8\ub4e0 \uc0c1\ud0dc\uac00 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \ub354 \ub9ce\uc740 \ud2b8\ub79c\uc7ad\uc158 \uc720\ud615\uc744 \uc6d0\ud55c\ub2e4\uba74(\uc18c\ub97c \uc804\uc1a1\ud558\uace0 \uc2f6\uc744 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4)?<\/strong> \ud2b8\ub79c\uc7ad\uc158 \uc720\ud615 \uc2dd\ubcc4\uc790\uac00 \ud544\uc694\ud558\uac70\ub098, \uc704\uc758 \uc608\uc5d0\uc11c \uc0ac\uc6a9\ub41c '\uae08\uc561'\uc744 \ucd94\uc0c1\ud654\ud558\uace0 \ub300\uc2e0 \ubb38\uc11c\uc758 \uc5c5\ub370\uc774\ud2b8\ub41c \ubc84\uc804\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\ub3c4\ub85d \ud2b8\ub79c\uc7ad\uc158 \ucf54\ub4dc\ub97c \uc77c\ubc18\ud654\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><strong>\uae30\ud0c0 \uc5e3\uc9c0 \uc0ac\ub840<\/strong>. \ud074\ub7ec\uc2a4\ud130\uc5d0 \ud2b8\ub79c\uc7ad\uc158 \uc911\uac04\uc5d0 \uc2e4\ud328\ud558\ub294 \ub178\ub4dc\uac00 \uc788\uc73c\uba74 \uc5b4\ub5bb\uac8c \ub418\ub098\uc694? \uc6d0\ud558\ub294 \uc7a0\uae08\uc744 \uc5bb\uc9c0 \ubabb\ud558\uba74 \uc5b4\ub5bb\uac8c \ub418\ub098\uc694? \uc5bc\ub9c8\ub098 \uc624\ub7ab\ub3d9\uc548 \uacc4\uc18d \uc7ac\uc2dc\ub3c4\ud574\uc57c \ud558\ub098\uc694? \uc2e4\ud328\ud55c \ud2b8\ub79c\uc7ad\uc158(\uc2dc\uac04 \ucd08\uacfc)\uc744 \uc5b4\ub5bb\uac8c \uc2dd\ubcc4\ud560 \uc218 \uc788\ub098\uc694? \ucc98\ub9ac\ud574\uc57c \ud560 \uc5e3\uc9c0 \ucf00\uc774\uc2a4\ub294 \ub9e4\uc6b0 \ub9ce\uc2b5\ub2c8\ub2e4. \ud504\ub85c\ub355\uc158 \ud658\uacbd\uc5d0\uc11c \ubc1c\uc0dd\ud560 \uac83\uc73c\ub85c \uc608\uc0c1\ub418\ub294 \ubaa8\ub4e0 \uc870\uac74\uc744 \ucca0\uc800\ud788 \ud14c\uc2a4\ud2b8\ud574\uc57c \ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \uacb0\uad6d\uc5d0\ub294 \uc77c\uc885\uc758 \uc644\ud654 \uc804\ub7b5\uc744 \uace0\ub824\ud574\uc57c \ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \ubb38\uc81c\ub97c \uac10\uc9c0\ud558\uac70\ub098 \ubc84\uadf8\ub97c \ubc1c\uacac\ud558\uba74 \ubc84\uadf8\ub97c \uc218\uc815\ud55c \ud6c4 \uad00\ub828\ub41c \ubaa8\ub4e0 \ub2f9\uc0ac\uc790\uc5d0\uac8c \ubb34\ub8cc \uce58\ud0a8\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_other_options\">\uae30\ud0c0 \uc635\uc158<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc800\ud76c \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \ud300\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc2e4\ud5d8\uc744 \ud574\uc654\uc2b5\ub2c8\ub2e4. <strong>RAMP \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21 \ud2b8\ub79c\uc7ad\uc158<\/strong>. RAMP(\uc77d\uae30 \uc6d0\uc790 \ub2e4\uc911 \ud30c\ud2f0\uc158)\ub294 \ub2e4\uc74c\uc5d0\uc11c \uc6d0\uc790 \uac00\uc2dc\uc131\uc744 \ubcf4\uc7a5\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/distributed-databases-overview\/\">\ubd84\uc0b0 \ub370\uc774\ud130\ubca0\uc774\uc2a4<\/a>. \uc790\uc138\ud55c \ub0b4\uc6a9\uc740 \ub2e4\uc74c\uc744 \ud655\uc778\ud558\uc138\uc694. <a href=\"https:\/\/rustyrazorblade.com\/post\/2015\/ramp-made-easy\/\">\uac04\ud3b8\ud55c RAM<\/a> \uc874 \ud558\ub2e4\ub4dc \ub610\ub294 <a href=\"https:\/\/www.bailis.org\/blog\/scalable-atomic-visibility-with-ramp-transactions\/\">RAMP \ud2b8\ub79c\uc7ad\uc158\uc744 \ud1b5\ud55c \ud655\uc7a5 \uac00\ub2a5\ud55c \uc6d0\uc790 \uac00\uc2dc\uc131<\/a> \uc791\uc131\uc790: \ud53c\ud130 \ubca0\uc77c\ub9ac\uc2a4<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc5d0\uc11c \uac00\uc7a5 \uc131\uc219\ud55c \uc608\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/github.com\/subalakr\/ramptransactionsimple\">Java SDK\ub97c \uc0ac\uc6a9\ud558\ub294 Graham \uc0ac\ub78c\ub4e4<\/a>. <strong>\uc774 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc5ed\uc2dc \ud504\ub85c\ub355\uc158\uc5d0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \uc544\ub2d9\ub2c8\ub2e4.<\/strong> \ud558\uc9c0\ub9cc \uadf8\ub808\uc774\uc5c4\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc73c\ub85c \ud765\ubbf8\ub85c\uc6b4 \uc791\uc5c5\uc744 \ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uacc4\uc18d \uc9c0\ucf1c\ubd10 \uc8fc\uc138\uc694!<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub610 \ub2e4\ub978 \uc635\uc158\uc740 \uc624\ud508 \uc18c\uc2a4\uc785\ub2c8\ub2e4. <a href=\"https:\/\/ndescribe.atlassian.net\/wiki\/spaces\/DOC\/pages\/1081383\/Transactional+Documents\">NDescribe \ub77c\uc774\ube0c\ub7ec\ub9ac<\/a> \uc774\uc5b8 \uce74\ud2b8\ub9ac\uc9c0( <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/get-to-know-couchbase-community-iain-cartledge\/\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ucee4\ubba4\ub2c8\ud2f0 \ucc54\ud53c\uc5b8<\/a>).<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub9c8\uc9c0\ub9c9\uc73c\ub85c <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/saga-pattern-implement-business-transactions-using-microservices-part\/\">\uc0ac\uac00 \ud328\ud134<\/a>\ub97c \uc0ac\uc6a9\ud558\uba74 \ub9c8\uc774\ud06c\ub85c \uc11c\ube44\uc2a4 \uac04\uc758 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc5d0 \ud2b9\ud788 \uc720\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_conclusion\">\uacb0\ub860<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc5d0\uc11c\ub294 \ubd84\uc0b0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc704\ud55c \uc77c\uc885\uc758 \uc6d0\uc790\uc801 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc744 \uc0dd\uc131\ud558\uae30 \uc704\ud574 Couchbase\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 ACID \ud504\ub9ac\ubbf8\ud2f0\ube0c\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud588\uc2b5\ub2c8\ub2e4. \uc774\uac83\uc740 \uc5ec\uc804\ud788 ACID\ub97c \uc644\uc804\ud788 \ub300\uccb4\ud560 \uc218\ub294 \uc5c6\uc9c0\ub9cc, \ub300\ubd80\ubd84\uc758 \ucd5c\uc2e0 \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4 \uae30\ubc18 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ud544\uc694\ud55c \uac83\uc5d0\ub294 \ucda9\ubd84\ud569\ub2c8\ub2e4. \ucd94\uac00\uc801\uc778 \ud2b8\ub79c\uc7ad\uc158 \ubcf4\uc7a5\uc774 \ud544\uc694\ud55c \uc18c\uc218\uc758 \uc0ac\uc6a9 \uc0ac\ub840\ub97c \uc704\ud574 Couchbase\ub294 \uacc4\uc18d\ud574\uc11c \ud601\uc2e0\uc744 \uac70\ub4ed\ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc744 \uac80\ud1a0\ud558\ub294 \ub370 \ub3c4\uc6c0\uc744 \uc8fc\uc2e0 \ub9c8\uc774\ud06c \uace8\ub4dc\uc2a4\ubbf8\uc2a4, \uadf8\ub808\uc774\uc5c4 \ud3ec\ud50c, \uc2dc\ubc14\ub2c8 \uad7d\ud0c0\uc5d0\uac8c \uac10\uc0ac\ub4dc\ub9bd\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>Couchbase\uc640 \uac19\uc740 \ubd84\uc0b0 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 \uc774\uc810\uc744 \ud65c\uc6a9\ud558\uace0 \uc2f6\uc9c0\ub9cc \uc5ec\uc804\ud788 \ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158\uc5d0 \ub300\ud55c \uc6b0\ub824\uac00 \uc788\uc73c\uc2dc\ub2e4\uba74 \uc800\ud76c\uc5d0\uac8c \uc5f0\ub77d\uc8fc\uc138\uc694! \ub2e4\uc74c\uc5d0\uc11c \uc9c8\ubb38\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/forums\/\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ud3ec\ub7fc<\/a> \ub610\ub294 \ub2e4\uc74c \uc5f0\ub77d\ucc98\ub85c \ubb38\uc758\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/twitter.com\">\ud2b8\uc704\ud130 @mgroves<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Important note: Multi-Document ACID Transactions are now available in Couchbase. See: ACID Transactions for NoSQL Applications for more information! Multi-document transactions were not covered in the previous post in this series: ACID Properties and Couchbase. That blog post covered the [&hellip;]<\/p>","protected":false},"author":71,"featured_media":5109,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1811,1816],"tags":[9499],"ppma_author":[8937],"class_list":["post-5437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-couchbase-server","tag-acid-transactions"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.8 (Yoast SEO v25.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Multi-document transactions: ACID and Couchbase Part 2<\/title>\n<meta name=\"description\" content=\"Multi-document transactions are possible using the single-document ACID properties of Couchbase Server and some client-side code.\" \/>\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\/multi-document-transactions-acid-couchbase-2\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multi-document transactions: ACID and Couchbase Part 2\" \/>\n<meta property=\"og:description\" content=\"Multi-document transactions are possible using the single-document ACID properties of Couchbase Server and some client-side code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/multi-document-transactions-acid-couchbase-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-09T13:35:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T02:28:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"767\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Matthew Groves\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mgroves\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matthew Groves\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/\"},\"author\":{\"name\":\"Matthew Groves\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/3929663e372020321b0152dc4fa65a58\"},\"headline\":\"Multi-document transactions: ACID and Couchbase Part 2\",\"datePublished\":\"2018-07-09T13:35:10+00:00\",\"dateModified\":\"2025-06-14T02:28:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/\"},\"wordCount\":1996,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg\",\"keywords\":[\"ACID transactions\"],\"articleSection\":[\".NET\",\"Couchbase Server\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/\",\"name\":\"Multi-document transactions: ACID and Couchbase Part 2\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg\",\"datePublished\":\"2018-07-09T13:35:10+00:00\",\"dateModified\":\"2025-06-14T02:28:04+00:00\",\"description\":\"Multi-document transactions are possible using the single-document ACID properties of Couchbase Server and some client-side code.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg\",\"width\":1920,\"height\":767},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi-document transactions: ACID and Couchbase Part 2\"}]},{\"@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\/3929663e372020321b0152dc4fa65a58\",\"name\":\"Matthew Groves\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/ba51e6aacc53995c323a634e4502ef54\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g\",\"caption\":\"Matthew Groves\"},\"description\":\"Matthew D. Groves is a guy who loves to code. It doesn't matter if it's C#, jQuery, or PHP: he'll submit pull requests for anything. He has been coding professionally ever since he wrote a QuickBASIC point-of-sale app for his parent's pizza shop back in the 90s. He currently works as a Senior Product Marketing Manager for Couchbase. His free time is spent with his family, watching the Reds, and getting involved in the developer community. He is the author of AOP in .NET, Pro Microservices in .NET, a Pluralsight author, and a Microsoft MVP.\",\"sameAs\":[\"https:\/\/crosscuttingconcerns.com\",\"https:\/\/x.com\/mgroves\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/ko\/author\/matthew-groves\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158 ACID\uc640 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4 2\ubd80","description":"Multi-document transactions are possible using the single-document ACID properties of Couchbase Server and some client-side code.","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\/multi-document-transactions-acid-couchbase-2\/","og_locale":"ko_KR","og_type":"article","og_title":"Multi-document transactions: ACID and Couchbase Part 2","og_description":"Multi-document transactions are possible using the single-document ACID properties of Couchbase Server and some client-side code.","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/multi-document-transactions-acid-couchbase-2\/","og_site_name":"The Couchbase Blog","article_published_time":"2018-07-09T13:35:10+00:00","article_modified_time":"2025-06-14T02:28:04+00:00","og_image":[{"width":1920,"height":767,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg","type":"image\/jpeg"}],"author":"Matthew Groves","twitter_card":"summary_large_image","twitter_creator":"@mgroves","twitter_misc":{"Written by":"Matthew Groves","Est. reading time":"12\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/"},"author":{"name":"Matthew Groves","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/3929663e372020321b0152dc4fa65a58"},"headline":"Multi-document transactions: ACID and Couchbase Part 2","datePublished":"2018-07-09T13:35:10+00:00","dateModified":"2025-06-14T02:28:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/"},"wordCount":1996,"commentCount":1,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg","keywords":["ACID transactions"],"articleSection":[".NET","Couchbase Server"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/","url":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/","name":"\ub2e4\uc911 \ubb38\uc11c \ud2b8\ub79c\uc7ad\uc158 ACID\uc640 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4 2\ubd80","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg","datePublished":"2018-07-09T13:35:10+00:00","dateModified":"2025-06-14T02:28:04+00:00","description":"Multi-document transactions are possible using the single-document ACID properties of Couchbase Server and some client-side code.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/05\/105-acid-properties-hero.jpg","width":1920,"height":767},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/multi-document-transactions-acid-couchbase-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Multi-document transactions: ACID and Couchbase Part 2"}]},{"@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\/3929663e372020321b0152dc4fa65a58","name":"\ub9e4\ud29c \uadf8\ub85c\ube0c\uc2a4","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/ba51e6aacc53995c323a634e4502ef54","url":"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g","caption":"Matthew Groves"},"description":"Matthew D. Groves\ub294 \ucf54\ub529\uc744 \uc88b\uc544\ud558\ub294 \uc0ac\ub78c\uc785\ub2c8\ub2e4. C#, jQuery, PHP \ub4f1 \ubb34\uc5c7\uc774\ub4e0 \ud480 \ub9ac\ud018\uc2a4\ud2b8\ub97c \uc81c\ucd9c\ud560 \uc815\ub3c4\ub85c \ucf54\ub529\uc744 \uc88b\uc544\ud569\ub2c8\ub2e4. 90\ub144\ub300\uc5d0 \ubd80\ubaa8\ub2d8\uc758 \ud53c\uc790 \uac00\uac8c\ub97c \uc704\ud574 QuickBASIC POS \uc571\uc744 \ub9cc\ub4e0 \uc774\ud6c4\ub85c \uc804\ubb38\uc801\uc73c\ub85c \ucf54\ub529\uc744 \ud574\uc654\uc2b5\ub2c8\ub2e4. \ud604\uc7ac Couchbase\uc758 \uc120\uc784 \uc81c\ud488 \ub9c8\ucf00\ud305 \uad00\ub9ac\uc790\ub85c \uc77c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uac00 \uc2dc\uac04\uc5d0\ub294 \uac00\uc871\uacfc \ud568\uaed8 \ucd95\uad6c \uacbd\uae30\ub97c \uad00\ub78c\ud558\uace0 \uac1c\ubc1c\uc790 \ucee4\ubba4\ub2c8\ud2f0\uc5d0 \ucc38\uc5ec\ud558\uba70 \uc2dc\uac04\uc744 \ubcf4\ub0c5\ub2c8\ub2e4. \uadf8\ub294 .NET\uc758 AOP, .NET\uc758 \ud504\ub85c \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4, Pluralsight \uc800\uc790, Microsoft MVP\uc758 \uc800\uc790\uc774\uae30\ub3c4 \ud569\ub2c8\ub2e4.","sameAs":["https:\/\/crosscuttingconcerns.com","https:\/\/x.com\/mgroves"],"url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/matthew-groves\/"}]}},"authors":[{"term_id":8937,"user_id":71,"is_guest":0,"slug":"matthew-groves","display_name":"Matthew Groves","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g","author_category":"","last_name":"Groves","first_name":"Matthew","job_title":"","user_url":"https:\/\/crosscuttingconcerns.com","description":"Matthew D. Groves\ub294 \ucf54\ub529\uc744 \uc88b\uc544\ud558\ub294 \uc0ac\ub78c\uc785\ub2c8\ub2e4.  C#, jQuery, PHP \ub4f1 \ubb34\uc5c7\uc774\ub4e0 \ud480 \ub9ac\ud018\uc2a4\ud2b8\ub97c \uc81c\ucd9c\ud560 \uc815\ub3c4\ub85c \ucf54\ub529\uc744 \uc88b\uc544\ud569\ub2c8\ub2e4.  90\ub144\ub300\uc5d0 \ubd80\ubaa8\ub2d8\uc758 \ud53c\uc790 \uac00\uac8c\ub97c \uc704\ud574 QuickBASIC POS \uc571\uc744 \ub9cc\ub4e0 \uc774\ud6c4\ub85c \uc804\ubb38\uc801\uc73c\ub85c \ucf54\ub529\uc744 \ud574\uc654\uc2b5\ub2c8\ub2e4.  \ud604\uc7ac Couchbase\uc758 \uc120\uc784 \uc81c\ud488 \ub9c8\ucf00\ud305 \uad00\ub9ac\uc790\ub85c \uc77c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uac00 \uc2dc\uac04\uc5d0\ub294 \uac00\uc871\uacfc \ud568\uaed8 \ucd95\uad6c \uacbd\uae30\ub97c \uad00\ub78c\ud558\uace0 \uac1c\ubc1c\uc790 \ucee4\ubba4\ub2c8\ud2f0\uc5d0 \ucc38\uc5ec\ud558\uba70 \uc2dc\uac04\uc744 \ubcf4\ub0c5\ub2c8\ub2e4.  \uadf8\ub294 .NET\uc758 AOP, .NET\uc758 \ud504\ub85c \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4, Pluralsight \uc800\uc790, Microsoft MVP\uc758 \uc800\uc790\uc774\uae30\ub3c4 \ud569\ub2c8\ub2e4."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/5437","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\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=5437"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/5437\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/5109"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=5437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=5437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=5437"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=5437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}