{"id":30,"date":"2007-07-23T17:59:52","date_gmt":"2007-07-23T09:59:52","guid":{"rendered":"https:\/\/lifeparty.idv.tw\/blog\/archives\/30"},"modified":"2007-08-24T14:44:29","modified_gmt":"2007-08-24T06:44:29","slug":"%e6%b5%81%e7%a8%8b%e8%88%87%e4%ba%a4%e6%98%93%e7%9a%84%e6%95%b4%e5%90%88%ef%bc%88%e5%85%b6%e4%b8%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lifeparty.idv.tw\/blog\/archives\/30","title":{"rendered":"\u6d41\u7a0b\u8207\u4ea4\u6613\u7684\u6574\u5408\uff08\u5176\u4e00\uff09"},"content":{"rendered":"<p>\u4f01\u696d\u6216\u7522\u696d<a href=\"http:\/\/en.wikipedia.org\/wiki\/Value_chain\">\u50f9\u503c\u934a<\/a>\u7684\u6574\u5408\uff0c\u5e38\u5e38\u6703\u727d\u6d89\u8de8\u90e8\u9580\u3001\u8de8\u7d44\u7e54\u7684\u8cc7\u8a0a\u7cfb\u7d71\u3002\u5728\u50f9\u503c\u934a\u6d3b\u52d5\u904e\u7a0b\u4e2d\u6240\u767c\u751f\u7684\u4ea4\u6613\uff0c\u9700\u8981\u8207\u50f9\u503c\u934a\u5176\u5b83\u6d3b\u52d5\u76f8\u4e92\u6574\u5408\uff0c\u56e0\u6b64\u6703\u7d93\u6b77\u8f03\u9577\u7684\u8655\u7406\u904e\u7a0b\uff0c\u4e00\u822c\u7a31\u70ba<a href=\"http:\/\/en.wikipedia.org\/wiki\/Long-running_transaction\">\u9577\u6642\u9593\u4ea4\u6613<\/a>\u3002\u9019\u7a2e\u4ea4\u6613\u907f\u514d<a href=\"http:\/\/en.wikipedia.org\/wiki\/Lock_%28computer_science%29\">\u9396\u5b9a<\/a>\u975e\u672c\u5730\u7aef\u8cc7\u6e90\u3001\u4f7f\u7528\u88dc\u511f\u4f5c\u696d\u4f86\u8655\u7406\u4ea4\u6613\u5931\u6557\u3001\u6f5b\u5728\u5730\u805a\u5408\u8f03\u5c0f\u800c\u5177\u6709 <a href=\"http:\/\/en.wikipedia.org\/wiki\/ACID\">ACID<\/a> \u7279\u6027\u7684\u4ea4\u6613\u3001\u901a\u5e38\u5229\u7528\u4e00\u500b\u5354\u8abf\u5668\u4f86\u5b8c\u6210\u6216\u653e\u68c4\u4ea4\u6613<span class=\"footnote\"><a href=\"http:\/\/en.wikipedia.org\/w\/index.php?title=Long-running_transaction&amp;oldid=132156050\">Long-running transaction<\/a>. (2007, May 20). In Wikipedia, The Free Encyclopedia. Retrieved 02:50, July 24, 2007.<\/span>\u3002<\/p>\n<p>\u9577\u6642\u9593\u4ea4\u6613\u6709\u8907\u96dc\u7684\u8655\u7406\u904e\u7a0b\uff0c\u7576\u4ea4\u6613\u56e0\u6545\u7121\u6cd5\u5b8c\u6210\u6642\uff0c\u7121\u6cd5\u4ee5 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Rollback_%28data_management%29\">rollback<\/a> \u7684\u65b9\u5f0f\uff0c\u56de\u5fa9\u7570\u52d5\u524d\u7684\u8cc7\u6599\u72c0\u614b\uff0c\u800c\u662f\u5fc5\u9808\u5c0d\u6b64\u7b46\u4ea4\u6613\u57f7\u884c\u88dc\u511f\u4f5c\u696d\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6709\u4eba\u5411\u9280\u884c\u767c\u9001\u4e00\u7b46\u4ed8\u6b3e\u6307\u793a\uff0c\u4ed8\u6b3e\u9280\u884c\u5728\u6263\u5e33\u5f8c\uff0c\u537b\u6536\u5230\u4e86\u53d7\u6b3e\u5e33\u865f\u767c\u9001\u4e86\u7121\u6cd5\u5165\u5e33\u7684\u901a\u77e5\uff0c\u4ed8\u6b3e\u9280\u884c\u5c31\u5fc5\u9808\u57f7\u884c\u9000\u6b3e\u7684\u88dc\u511f\u4f5c\u696d\u4ee5\u9084\u539f\u4ed8\u6b3e\u5e33\u865f\u5728\u4ea4\u6613\u524d\u4e4b\u72c0\u614b\uff0c\u6545\u9577\u6642\u9593\u7684\u4ea4\u6613\u4ea6\u5e38\u88ab\u7a31\u505a\u88dc\u511f\u5f0f\u4ea4\u6613\u3002<\/p>\n<p>\u63db\u8a00\u4e4b\uff0c\u9577\u6642\u9593\u4ea4\u6613\u4e26\u4e0d\u5c6c\u65bc\u4e0d\u53ef\u5206\u5272\u7684\u4ea4\u6613\u3002\u5728\u4ea4\u6613\u904e\u7a0b\u4e2d\uff0c\u5fc5\u9808\u6839\u64da\u4ea4\u6613\u7684\u8655\u7406\u72c0\u614b\u4f86\u6c7a\u5b9a\u5f8c\u7e8c\u7684\u4f5c\u696d\uff0c\u9019\u4e9b\u4f5c\u696d\u53ef\u80fd\u662f\u4e00\u7d44\u6d41\u7a0b\u6216\u662f\u5177\u6709 ACID \u7279\u6027\u7684\u4ea4\u6613\uff08\u9019\u985e\u4ea4\u6613\u624d\u5177\u6709\u4e0d\u53ef\u5206\u5272\u7684\u7279\u6027\uff09\u3002<\/p>\n<p>\u7531\u4e0a\u53ef\u77e5\uff0c\u6b32\u89e3\u6c7a\u9577\u6642\u9593\u4ea4\u6613\u7684\u8655\u7406\u554f\u984c\uff0c\u4ea4\u6613\u7684\u8655\u7406\u72c0\u614b\u5c07\u8b8a\u6210\u5f88\u91cd\u8981\u7684\u6982\u5ff5\u3002\u6709\u4e86\u8655\u7406\u72c0\u614b\u7684\u6982\u5ff5\uff0c\u9577\u6642\u9593\u4ea4\u6613\u7684\u8a2d\u8a08\u5c31\u8b8a\u5f97\u7c21\u55ae\u591a\u4e86\uff0c\u8b93\u4ea4\u6613\u904e\u7a0b\u662f\u975e\u540c\u6b65\u7684\uff0c\u4e26\u975e\u8b93\u4f7f\u7528\u8005\u67af\u7b49\u4ea4\u6613\u7d50\u679c\u537b\u4e0d\u80fd\u505a\u5225\u7684\u4e8b\uff0c\u800c\u662f\u7576\u4f7f\u7528\u8005\u767c\u9001\u4ea4\u6613\u4e4b\u5f8c\uff0c\u4f7f\u7528\u8005\u4e0d\u9808\u7b49\u5f85\u4ea4\u6613\u8655\u7406\u5b8c\u7562\uff0c\u7cfb\u7d71\u6703\u9ed8\u9ed8\u8655\u7406\u6b64\u4ea4\u6613\uff0c\u800c\u96a8\u5f8c\u53ef\u7531\u4f7f\u7528\u8005\u67e5\u8a62\u4ea4\u6613\u8655\u7406\u7684\u9032\u5ea6\uff0c\u6216\u662f\u5728\u4ea4\u6613\u5b8c\u6210\u5f8c\uff0c\u7531\u7cfb\u7d71\u767c\u9001\u901a\u77e5\u7d66\u4f7f\u7528\u8005\u3002<br \/>\n<!--more--><\/p>\n<p>\u65bc\u662f\u904b\u7528\u4e0a\u8ff0\u7684\u8a2d\u8a08<a href=\"http:\/\/en.wikipedia.org\/wiki\/Concept\">\u6982\u5ff5<\/a>\uff0c\u6211\u5011\u53ef\u4ee5\u8a2d\u8a08\u51fa\u53ef\u4ee5\u89e3\u6c7a\u9577\u6642\u9593\u4ea4\u6613\u7684\u8a2d\u8a08<a href=\"http:\/\/en.wikipedia.org\/wiki\/Software_architecture\">\u67b6\u69cb<\/a>\u3002\u5982\u679c\u6211\u5011\u8981\u8a2d\u8a08\u9280\u884c\u7684\u4ed8\u6b3e\u7cfb\u7d71\uff0c\u5047\u8a2d\u5b89\u63a7<a href=\"http:\/\/en.wikipedia.org\/wiki\/Public_key_infrastructure\">\u7c3d\u9a57\u7ae0<\/a>\u6a21\u7d44\u3001\u5e33\u52d9\u4e3b\u6a5f\u7cfb\u7d71\u53ca\u9280\u884c\u7db2\u8def\u74b0\u5883\u90fd\u5df2\u7d93\u662f\u73fe\u6210\u7684\uff0c\u6211\u5011\u8981\u5982\u4f55\u6574\u5408\u9019\u4e9b\u65e2\u5b58\u7684\u6a21\u7d44\u3001\u7cfb\u7d71\u53ca\u74b0\u5883\u5462\uff1f\u5176\u5be6\u628a\u5b83\u5011\u90fd\u770b\u505a<a href=\"http:\/\/en.wikipedia.org\/wiki\/Software_componentry\">\u5143\u4ef6<\/a>\uff0c\u7136\u5f8c\u518d\u7528<a href=\"http:\/\/en.wikipedia.org\/wiki\/Service_%28Systems_Architecture%29\">\u670d\u52d9<\/a>\u7684\u6982\u5ff5\u4f86\u5c01\u88dd\u5b83\u5011\uff0c\u554f\u984c\u5c31\u55ae\u7d14\u591a\u4e86\uff0c\u6211\u5011\u53ef\u4ee5\u9019\u6a23\u8a2d\u8a08\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lifeparty.idv.tw\/blog\/wp-content\/uploads\/2007\/07\/payment.PNG\" \/><\/p>\n<p>\u6b64\u8a2d\u8a08\u5716\u4e2d\uff0cInbound \u77e5\u9053\u5982\u4f55\u5f9e\u9280\u884c\u7db2\u8def\u74b0\u5883\u53d6\u5f97\u4ea4\u6613\u8a0a\u606f\uff0c\u4e26\u900f\u904e SignatureService \u4f86\u6aa2\u9a57\u4ea4\u6613\u8a0a\u606f\u7684\u7c3d\u7ae0\u3002\u7136\u5f8c\u518d\u547c\u53eb TxnProcessor \u4f86\u8655\u7406\u4ea4\u6613\u3002\u800c PaymentProcessor \u5be6\u4f5c\u4e86 TxnProcessor\uff0c\u5b83\u6703\u4f9d\u64da\u4ea4\u6613\u7684\u8655\u7406\u72c0\u614b\uff0c\u77e5\u9053\u8a72\u5982\u4f55\u4f86\u8655\u7406\u4ea4\u6613\u3002\u4f8b\u5982\uff0c\u6aa2\u6838\u4ea4\u6613\u3001\u57f7\u884c\u6263\u5e33\u4f5c\u696d\u3001\u6216\u662f\u767c\u9001\u8a0a\u606f\u901a\u77e5\uff0c\u800c\u8655\u7406\u4ea4\u6613\u904e\u7a0b\u4e2d\uff0cPaymentProcessor \u900f\u904e TxnStateService \u4f86\u66f4\u65b0\u4ea4\u6613\u72c0\u614b\u3002<\/p>\n<p>\u6b64\u8a2d\u8a08\u770b\u8d77\u4f86\u5f88\u5bb9\u6613\u7406\u89e3\uff0c\u4f46\u5be6\u4f5c\u8d77\u4f86\u537b\u6709\u500b\u5730\u65b9\u8981\u7279\u5225\u6ce8\u610f\u3002\u90a3\u5c31\u662f Inbound \u547c\u53eb TxnProcessor \u53ca TxnProcessor \u547c\u53eb ForwardService \u7684\u90e8\u5206\uff0c\u5fc5\u9808\u7528\u975e\u540c\u6b65\u7684\u547c\u53eb\u65b9\u5f0f\u3002\u56e0\u70ba Inbound \u53ea\u9808\u901a\u77e5 TxnProcessor \u6709\u90a3\u4e00\u7b46\u8a0a\u606f\u8981\u8655\u7406\u5f8c\uff0c\u5c31\u53ef\u4ee5\u7e7c\u7e8c\u81ea\u5df1\u5f8c\u7e8c\u7684\u5de5\u4f5c\u4e86\uff0c\u800c\u4e0d\u61c9\u8a72\u7b49\u5f85 TxnProcessor\uff1b\u540c\u6a23\u7684\u9053\u7406\uff0cTxnProcessor \u4e5f\u4e0d\u61c9\u8a72\u7b49\u5f85 ForwardService \u628a\u8a0a\u606f\u8f49\u905e\u5b8c\u6210\u624d\u80fd\u7e7c\u7e8c\u8655\u7406\u5f8c\u9762\u7684\u4ea4\u6613\u3002<\/p>\n<p>\u56e0\u61c9<a href=\"http:\/\/en.wikipedia.org\/wiki\/Enterprise_application_integration\">\u4ea4\u6613\u6d41\u7a0b\u6574\u5408<\/a>\u7684\u975e\u540c\u6b65\u547c\u53eb\u8003\u91cf\uff0c\u6709\u5169\u7a2e\u5be6\u4f5c\u65b9\u5f0f\u53ef\u4ee5\u9054\u6210\u76ee\u7684\u3002\u4e00\u7a2e\u505a\u6cd5\u662f <a href=\"http:\/\/en.wikipedia.org\/wiki\/Database\">database<\/a> sharing\uff0c\u53e6\u4e00\u7a2e\u5247\u662f\u63a1\u7528 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Message_queue\">message queue<\/a> \u7684\u6982\u5ff5\uff1b\u524d\u8005\u662f\u900f\u904e\u80cc\u666f\u7a0b\u5f0f\u4ee5 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Polling_%28computer_science%29\">polling<\/a> \u7684\u65b9\u5f0f\uff0c\u5f9e\u8cc7\u6599\u5eab\u4e2d\u8b80\u53d6\u4ea4\u6613\u8655\u7406\u72c0\u614b\uff0c\u800c\u5f8c\u8005\u5247\u900f\u904e <a href=\"http:\/\/en.wikipedia.org\/wiki\/Message-oriented_middleware\">messaging system<\/a>\uff0c\u5c07\u4ea4\u6613\u8a0a\u606f\u50b3\u9001\u7d66\u8a0a\u606f\u8655\u7406\u8005\u3002\u9019\u5169\u7a2e\u5be6\u4f5c\u65b9\u5f0f\u6703\u6b8a\u9014\u800c\u540c\u6b78\uff0c\u6700\u5f8c\u90fd\u6703\u4f9d\u64da\u8655\u7406\u72c0\u614b\uff0c\u547c\u53eb\u5f8c\u7aef\u670d\u52d9\u9032\u884c\u5f8c\u7e8c\u8655\u7406\u3002<\/p>\n<p>\u5176\u5be6\uff0c\u7531\u524d\u8ff0\u7684\u5143\u4ef6\u5716\uff0c\u4e0d\u96e3\u7406\u89e3\u5176\u5be6 TxnProcessor \u4ea6\u53ef\u8996\u70ba\u662f\u4e00\u7a2e\u670d\u52d9\uff0c\u9019\u7a2e\u8a2d\u8a08\u601d\u8def\u8b93\u6211\u5011\u53ef\u4ee5\u7528\u670d\u52d9\u7684\u6982\u5ff5\u4f86<a href=\"http:\/\/en.wikipedia.org\/wiki\/Information_hiding\">\u5c01\u88dd<\/a>\u4ea4\u6613\u8207\u6d41\u7a0b\uff0c\u7b49\u540c\u770b\u5f85\u5169\u8005\uff0c\u8a2d\u8a08\u53ef\u4ee5\u8b8a\u5f97\u7c21\u6f54\u800c\u66f4\u5177\u5f48\u6027\u3002\u5c0d\u65bc\u6d41\u7a0b\u76f8\u7576\u55ae\u7d14\u7684\u9577\u6642\u9593\u4ea4\u6613\u800c\u8a00\uff0c\u4ea4\u6613\u6d41\u7a0b\u7684\u8b8a\u52d5\u4e26\u4e0d\u6703\u885d\u64ca\u5230\u500b\u5225\u7684\u4ea4\u6613\u5143\u4ef6\uff0c\u53ea\u8981\u6539\u8b8a TxnProcessor \u7684\u5be6\u4f5c\uff08PaymentProcessor\uff09\u5373\u53ef\uff0c\u800c\u4e14\u4e5f\u5f88\u5bb9\u6613\u56e0\u61c9<a href=\"http:\/\/en.wikipedia.org\/wiki\/Business_process\">\u696d\u52d9\u9700\u6c42<\/a>\u800c\u589e\u6dfb\u5176\u4ed6\u4ea4\u6613\u6d41\u7a0b\u5143\u4ef6\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u5011\u53ef\u589e\u52a0\u4e00\u500b FinpayProcessor \u7684\u8de8\u884c\u4ed8\u6b3e\u4ea4\u6613\u7684\u6d41\u7a0b\u5143\u4ef6\uff0c\u7528\u4f86\u8655\u7406\u8de8\u884c\u4ed8\u6b3e\u7684\u4ea4\u6613\u8a0a\u606f<span class=\"footnote\">\u5728\u91d1\u878d<a href=\"http:\/\/en.wikipedia.org\/wiki\/Electronic_Data_Interchange\">\u96fb\u5b50\u8cc7\u6599\u4ea4\u63db<\/a>\uff08FEDI\uff09\u7684\u9818\u57df\u4e2d\uff0c\u7576\u4ed8\u6b3e\u9280\u884c\u5728\u8655\u7406\u5b8c\u4ed8\u6b3e\u6307\u793a\uff08PAYEXT\uff09\u8a0a\u606f\u4e26\u4e14\u7531\u4ed8\u6b3e\u5e33\u865f\u6263\u6b3e\u6210\u529f\u5f8c\uff0c\u6703\u767c\u4e00\u7b46\u8de8\u884c\u4ed8\u6b3e\u4ea4\u6613\u8a0a\u606f\uff08FINPAY\uff09\u7d66\u6536\u6b3e\u9280\u884c\uff0c\u4e2d\u9593\u6703\u7d93\u904e<a href=\"http:\/\/www.fisc.com.tw\/FISCWeb\/default.aspx\">\u8ca1\u91d1\u516c\u53f8<\/a>\uff08FISC\uff09\u6e05\u7b97\u5e33\u52d9\uff0c\u7136\u5f8c\u6536\u6b3e\u9280\u884c\u5fc5\u9808\u8655\u7406\u6b64\u4ea4\u6613\u8a0a\u606f\uff0c\u4e26\u70ba\u6536\u6b3e\u5e33\u865f\u5165\u5e33\u3002<\/span>\uff0c\u800c\u5e33\u52d9\u8655\u7406\u3001\u8a0a\u606f\u50b3\u9001\u53ca\u8655\u7406\u72c0\u614b\u7dad\u8b77\u7b49\u5143\u4ef6\u90fd\u53ef\u4ee5\u518d\u7528\u6216\u52a0\u4ee5\u62bd\u63db\u9069\u7528\u7684\u5143\u4ef6\uff0c\u9019\u662f\u56e0\u70ba\u5143\u4ef6\u4e26\u975e\u8207\u5143\u4ef6\u7dca\u5bc6\u8026\u5408\uff0c\u800c\u662f\u900f\u904e\u670d\u52d9\u52a0\u4ee5<a href=\"http:\/\/en.wikipedia.org\/wiki\/Loose_coupling\">\u9b06\u7d81<\/a>\u3002\u6240\u4ee5\uff0c<a href=\"http:\/\/www.martinfowler.com\/eaaCatalog\/serviceLayer.html\">\u670d\u52d9\u5c64<\/a>\u5176\u5be6\u662f\u6574\u5408\u4ea4\u6613\u8207\u6d41\u7a0b\u7684\u6700\u4f73\u5229\u5668\u5440\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f01\u696d\u6216\u7522\u696d\u50f9\u503c\u934a\u7684\u6574\u5408\uff0c\u5e38\u5e38\u6703\u727d\u6d89\u8de8\u90e8\u9580\u3001\u8de8\u7d44\u7e54\u7684\u8cc7\u8a0a\u7cfb\u7d71\u3002\u5728\u50f9\u503c\u934a\u6d3b\u52d5\u904e\u7a0b\u4e2d\u6240 &hellip; <a href=\"https:\/\/lifeparty.idv.tw\/blog\/archives\/30\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,19,3],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-29","category-19","category-3"],"_links":{"self":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}