{"id":440447,"date":"2021-04-13T02:43:25","date_gmt":"2021-04-12T18:43:25","guid":{"rendered":"http:\/\/4563.org\/?p=440447"},"modified":"2021-04-13T02:43:25","modified_gmt":"2021-04-12T18:43:25","slug":"%e6%b1%82%e9%a2%86%e5%9f%9f%e9%a9%b1%e5%8a%a8%e8%ae%be%e8%ae%a1-java-%e9%a1%b9%e7%9b%ae%e6%95%99%e7%a8%8b%ef%bc%9f%e5%b7%b2%e5%85%a8%e7%bd%91%e6%90%9c%e7%b4%a2%e6%97%a0%e6%9e%9c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=440447","title":{"rendered":"\u6c42\u201c\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u201c Java \u9879\u76ee\u6559\u7a0b\uff1f\u5df2\u5168\u7f51\u641c\u7d22\u65e0\u679c"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6c42\u201c\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u201c Java \u9879\u76ee\u6559\u7a0b\uff1f\u5df2\u5168\u7f51\u641c\u7d22\u65e0\u679c               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u542c\u95fb\u4e86 DDD(\u9886\u57df\u9a71\u52a8)\u7684\u725b\uff0c\u60f3\u5b9e\u8df5\u4e00\u4e0b\u3002<\/p>\n<p>\u5df2\u770b\u5b8c\u300a\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u7cbe\u7cb9\u300b\u3001\u770b\u4e86 50%\u300a\u5b9e\u73b0\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u300b\uff0c\u624b\u5934\u4e0a\u8fd8\u6709\u300a\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u300b<\/p>\n<p>\u60f3\u627e\u4e2a\u4ece\u642d\u5efa\u9879\u76ee\u3001\u5206\u5305\u3001\u5efa\u9886\u57df\u6a21\u578b\u7684\u89c6\u9891\u9879\u76ee\u6559\u7a0b\u5b66\u4e00\u4e0b\u771f\u5b9e\u7684\u7f16\u7801\uff08\u4e0d\u662f\u8bb2 PPT \u6982\u5ff5\u7684\uff09\uff0c\u6700\u597d\u662f java<\/p>\n<p>\u5df2\u5728 B \u7ad9\u3001google \u3001\u7f51\u6613\u8bfe\u5802\u3001\u6155\u8bfe\u3001\u817e\u8baf\u8bfe\u5802\u7b49\u641c\u7d22\u540e\u65e0\u679c\uff0c\u8fd9\u4e00\u5757\u56fd\u5185\u662f\u4e0d\u662f\u8fd8\u5c5e\u4e8e&#8221;\u84dd\u6d77&#8221;\uff0c\u6559\u4eba\u505a\u9879\u76ee\u7684\u89c6\u9891\u5df2\u7ecf\u4e00\u5927\u5806\u4e86<\/p>\n<p>\u5728 github \u4e0a\u627e\u5230\u4e86\u4e00\u4e2a\u53ef\u80fd\u7b26\u5408\u9884\u671f\u7684\uff0c\u5f20\u9038\u5927\u4f6c\u7684\u6536\u8d39 199\uff0c\u6709\u70b9\u5c0f\u8d35\u3002 https:\/\/github.com\/agiledon\/eas-ddd<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>26<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5661918\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zwx327634 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6781\u5ba2\u65f6\u95f4\u4e5f\u6709 DDD\uff0c\u4f46\u662f\u6211\u6ca1\u770b\u8fc7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661919\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zwx327634 \u53bb\u770b\u4e86\u4e00\u4e0b\u76ee\u5f55\uff0c\u5e94\u8be5\u4e5f\u662f\u6982\u5ff5\u5927\u4e8e\u4ee3\u7801\u7684\u3002\u4e0d\u8fc7\u771f\u662f\u5947\u602a\uff0c\u6709 1w+\u7684\u4eba\u5b66\u4e60\uff0cDDD \u8fd9\u4e48\u706b\u561b\uff0c\u5728\u7f51\u4e0a\u4e5f\u6ca1\u5f88\u5927\u7684\u201c\u58f0\u97f3\u201d\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661920\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jooooooooo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             DDD \u662f\u4e1a\u52a1\u9a71\u52a8\u7684, \u5927\u516c\u53f8\u7684\u590d\u6742\u4e1a\u52a1\u624d\u4f1a\u8d70\u5230\u8fd9\u4e00\u6b65.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661921\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjlin1984 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u5fc5\u8981\u523b\u610f\u53bb\u8ffd\u6c42 DDD \u5427\uff0c\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\u5c31\u597d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661922\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agdhole <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a5\u89e6\u7684\u9879\u76ee\u91cc\u9762\u6ca1\u6709\u4e00\u4e2a\u9879\u76ee\u7684\u89c4\u6a21\u591f\u5f97\u4e0a DDD                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661923\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zjlin1984 \u770b\u4e86\u4e0b DDD \u7684\u6982\u5ff5\u8fd8\u662f\u975e\u5e38\u597d\u7684\uff0c\u5728\u89e3\u51b3\u9879\u76ee\u7684\u590d\u6742\u6027 \/\u4e0d\u53ef\u7ef4\u62a4\u6027\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661924\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wshcdr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u90a3\u4e2a ddd_cargo \u554a\uff0c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661925\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @agdhole \u6211\u770b\u4e86\u8fd9\u51e0\u5929\u4e86\uff0c\u7406\u8bba\u4e0a\u6765\u8bf4\u53ea\u8981\u662f\u4e2a\u4f01\u4e1a\u7ea7\u7684\u9879\u76ee\uff0c\u5c31\u503c\u5f97\u4e0a DDD                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661926\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passerbytiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u518d\u8ba4\u771f\u770b\u4e00\u4e0b\u300a\u5b9e\u73b0\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u300b\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0\u4e0d\u53ef\u80fd\u6709\u53ef\u4ee5\u6a21\u4eff\u7740\u505a\u7684\u9879\u76ee\u6559\u7a0b\u3002DDD \u662f\u4e00\u79cd\u8bbe\u8ba1\u601d\u8def\uff0c\u5e76\u4e0d\u662f\u65b9\u6cd5\u5b66\u3002\u300a\u5b9e\u73b0\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u300b\u672c\u8eab\u5df2\u7ecf\u5728\u7528\u771f\u5b9e\u6848\u4f8b\u5728\u505a\u6f14\u793a\u4e86\uff0c\u4f46\u662f\u4f60\u5374\u6ca1\u6cd5\u7167\u7740\u6a21\u4eff\uff0c\u56e0\u4e3a\u4e1a\u52a1\u4e0d\u4e00\u6837\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661927\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passerbytiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53e6\u5916\u63d0\u9192\u4e00\u4e0b\uff0c\u300a\u5b9e\u73b0\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u300b\u4f5c\u8005\u7684\u4e3b\u8bed\u8a00\u662f .NET \uff0c\u867d\u7136\u6709\u76ee\u7684\u7684\u7528 Java \u505a\u6f14\u793a\uff0c\u4f46\u662f\u5728\u6709\u4e9b\u7f16\u7801\u4e60\u60ef\u4e0a\u662f\u6709\u51fa\u5165\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661928\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wshcdr \u55ef\u55ef\uff0c\u53c8\u53bb\u7ffb\u4e86\u7ffb github \u770b\u5230\u4e86\u3002\u963f\u91cc\u7684\u8fd9\u4e2a\u7cfb\u5217\u4e5f\u80fd\u843d\u5730\uff0chttps:\/\/developer.aliyun.com\/article\/716908                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661929\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @passerbytiny \u55ef\u55ef \u8c22\u8c22\u3002\u8bdd\u8bf4\u770b\u300a IDDD \u300b\u771f\u7684\u4f1a\u4e00\u4e0d\u5c0f\u5fc3\u5c31\u9677\u5165\u6280\u672f\u7ec6\u8282\u91cc\u9762~ \u6211\u662f\u60f3\u627e\u4e00\u4e2a\u5e08\u5085\u9886\u8fdb\u95e8\u7684\u9879\u76ee\uff0c\u628a\u7406\u8bba\u5b9e\u8df5\u4e00\u4e0b\u3002\u627e\u5230\u4e86\u4e00\u4e24\u4e2a\u53ef\u4ee5\u843d\u5730\u7684\u9879\u76ee\u4e86\uff0c\u867d\u7136\u8fd8\u662f\u6ca1\u6709\u8be6\u7ec6\u8bb2\u89e3\u3002\u94fe\u63a5\u6211\u4e0a\u4e00\u6761\u8d34\u4e86\uff0c\u5c31\u4e0d\u91cd\u590d\u8d34\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661930\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Eric \u7684 DDD \u539f\u4e66\u6709\u5199\u4ee3\u7801\u5730\u5740\uff0c\u539f\u6765\u5728 sf.net \u540e\u4e5f\u642c\u5230 Github: https:\/\/github.com\/citerus\/dddsample-core\/ <\/p>\n<p>\u5b9e\u8bdd\u8bf4\uff0c\u56fd\u5185\u7684\u80fd\u7528 DDD \u6765\u505a\u9879\u76ee\u7684\uff0c\u771f\u7684\u5c11\uff0c\u53ef\u4ee5\u5728 V \u7ad9\u95ee\u4e00\u4e0b\uff0c\u5927\u90e8\u5206\u90fd\u662f\u4f1a\u8ba4\u4e3a\u4e0d\u9002\u5408\uff0c\u8131\u79bb\u4e0d\u4e86\u6570\u636e\u5e93\u601d\u7ef4\uff0c\u505a\u6bdb\u7ebf DDD \u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661931\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chendy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             DDD \u9700\u8981\u5f3a\u529b\u4e13\u4e1a\u56e2\uff0c\u81f3\u5c11\u9700\u8981\u6c34\u5e73\u9ad8\u4e00\u4e9b\u7684\u4ea7\u54c1\u7ecf\u7406\uff0c\u5426\u5219\u5c31\u662f\u778e\u73a9\u7136\u540e\u73a9\u6b7b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661932\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u9762\u94fe\u63a5\u4e2d\u7684 DDD \u539f\u4e66\u4f8b\u5b50(Cargotracker)\u662f\u7528 SpringBoot\uff0cHibernate \u5199\u3002<\/p>\n<p>\u5176\u5b9e\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u5df2\u7ecf\u88ab\u91cd\u5199\u6210\u5404\u79cd\u7248\u672c\uff08\u4e0d\u540c\u7684\u8bed\u8a00\uff0c\u6846\u67b6\uff09\uff0cGithub \u4e0a\u5927\u628a\u3002<\/p>\n<p>Eclipse EE4J \u5b98\u65b9 Jakarta EE(Java EE \u7ee7\u627f\u8005) \u4e5f\u7ef4\u62a4\u4e86\u4e00\u4e2a JakartaEE \u7248\u672c\u7684 CargoTracker \u3002\u4e00\u4e2a\u7a0b\u5e8f\u719f\u6089\u6240\u6709\u7684 Java EE \u89c4\u8303\uff08\u4e4b\u540e\u518d\u5199 Spring \u4e5f\u662f\u4e0d\u8d39\u7528\u5439\u7070\u4e4b\u529b\uff09\uff0c\u719f\u6089 DDD \u8bbe\u8ba1\u7406\u5ff5\uff08\u5b8c\u5168\u629b\u5f03\u6570\u636e\u4e3a\u4e2d\u5fc3\u7684\u8bbe\u8ba1\uff09\u3002<\/p>\n<p>\u76f8\u6bd4\u6210\u719f\u89c4\u8303\u548c\u5f00\u6e90\u6846\u67b6 Spring\uff0cHibernate \u7b49\uff0c\u8fd9\u4e2a\u5b8c\u5168\u662f\u5e94\u7528\u7ea7\u522b\uff0c\u96be\u5ea6\u7cfb\u6570\u6781\u4f4e\u3002<\/p>\n<p>https:\/\/github.com\/eclipse-ee4j\/cargotracker<\/p>\n<p>\u6211\u7684 Fork\uff1a<\/p>\n<p>https:\/\/github.com\/hantsy\/cargotracker                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661933\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : charlie21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u8fc7\u7684\u5173\u4e8e\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u7684\u6587\u7ae0<br \/>https:\/\/www.infoq.cn\/article\/alibaba-freshhema-ddd-practice <br \/>https:\/\/insights.thoughtworks.cn\/backend-development-ddd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661934\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shubiao \u6307\u671b\u4e00\u4e2a\u4f8b\u5b50\u641e\u5b9a DDD\uff0c\u4e0d\u53ef\u80fd\uff0cDDD \u66f4\u591a\u7684\u662f\u5b9e\u8df5\u7ecf\u9a8c\uff0c\u4e0d\u662f\u4e00\u5957\u6b7b\u6a21\u5f0f\u3002\u5982\u679c\u4f60\u8f6f\u4ef6\u5f00\u53d1\u591a\u5e74\uff0c\u65f6\u5e38\u4f1a\u601d\u8003\u600e\u4e48\u53bb\u5b9e\u73b0\u66f4\u597d\uff0c\u6211\u60f3\u7ecf\u8fc7\u591a\u5e74\u7ecf\u9a8c\u4e0b\u6765\uff0c\u4f60\u6839\u672c\u5c31\u4e0d\u9700\u8981 DDD \u6765\u6307\u5bfc\u4e86\u3002\u76f8\u53cd\uff0c\u5982\u679c\u4ec5\u4ec5\u662f\u4e3a\u4e86\u5b8c\u6210\u4efb\u52a1\uff0c\u8df3\u51fa\u7ed3\u679c \uff0c\u5c31\u662f\u5de5\u4f5c 10 \u5e74 20 \u5e74\uff0c\u770b\u518d\u591a\u7684 DDD \u4e66\u4e5f\u4e0d\u4f1a\u6709\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661935\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chendy \u6211\u5b9e\u5728\u4e0d\u61c2\u56fd\u5185\u7684\u4ea7\u54c1\u7ecf\u7406\u662f\u505a\u4ec0\u4e48\u7684\uff0c\u90fd\u662f\u4e00\u4e9b\u65e0\u8111\u7684\u4eba\u778e JB \u60f3\u95ee\u9898, \u7136\u540e\u5c31\u662f\u8981\u5b9e\u73b0\u3002<br \/>\u800c DDD \u9700\u8981\u7684\u662f Domain Expert\uff0c\u9700\u8981\u5c06\u95ee\u9898\u57df\u7684\u6765\u9f99\u53bb\u8109\u5206\u6790\u7684\u6e05\u6e05\u695a\u695a\uff08\u8fb9\u754c\uff0c\u5b9e\u4f53\uff0c\u9886\u57df\u4e8b\u4ef6\u7b49\uff09\uff0c\u56fd\u5185\u7684\u516c\u53f8\u597d\u50cf\u6839\u672c\u5c31\u6ca1\u6709\u8fd9\u4e2a\u804c\u4f4d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661936\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crclz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56de\u7b54\u4e3b\uff1a<\/p>\n<p>thoughtworks \u7684\u4e00\u4e2a Java DDD \u8303\u4f8b\u9879\u76ee\uff1a<br \/>https:\/\/github.com\/e-commerce-sample\/ecommerce-order-service<\/p>\n<p>\u5fae\u8f6f\u5b98\u65b9\u7684 ddd \u6559\u7a0b\u9879\u76ee\uff08.Net \uff09\uff1a<br \/>https:\/\/docs.microsoft.com\/en-us\/dotnet\/architecture\/microservices\/microservice-ddd-cqrs-patterns\/<br \/>https:\/\/github.com\/dotnet-architecture\/eShopOnContainers<br \/>https:\/\/github.com\/dotnet-architecture\/eShopOnWeb<br \/>\uff08\u867d\u7136\u662f.Net \uff0c\u4f46\u662f AspNet \u548c SpringBoot \u5dee\u522b\u4e0d\u5927\uff09<\/p>\n<p>\u56de\u590d\u4e0a\u90a3\u4e9b\u8bf4 DDD \u4e0d\u5b9e\u9645\u3001DDD \u53ea\u9002\u5408\u5927\u516c\u53f8\u7684\u590d\u6742\u4e1a\u52a1\u7b49\u8bf4\u6cd5\uff1a<br \/>CRUD Boy \u65e0\u6cd5\u7406\u89e3 DDD \u5c5e\u6b63\u5e38\u73b0\u8c61\uff0c\u4f46\u662f\u5982\u679c\u8f7b\u89c6 DDD\uff0c\u90a3\u5c31\u6ce8\u5b9a\u53ea\u80fd\u5f53\u4e00\u4e2a\u4f4e\u7ea7\u7684 CRUD Boy \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661937\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjlin1984 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6982\u5ff5\u597d\uff0c\u5e76\u4e00\u5b9a\u5c31\u662f\u8bf4\uff0c\u8981\u90a3\u4e48\u505a\uff0c\u6bd5\u7adf\u53ea\u662f\u6982\u5ff5\u3002<br \/>\u5f00\u53d1\u8fc7\u7a0b\u5b8c\u5168\u53ef\u4ee5\u5ffd\u7565\u8fd9\u4e2a\u6982\u5ff5\uff0c\u5b9e\u4e8b\u6c42\u662f\u89e3\u51b3\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661938\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7406\u89e3 DDD\uff0c\u6709\u9009\u62e9\u5730\u5438\u6536\uff0c\u5e76\u5e94\u7528\u5230\u9879\u76ee\u91cc\u9762\u5c31\u597d\u3002\u6ca1\u5fc5\u8981\u4e5f\u5343\u4e07\u4e0d\u8981\u53bb\u751f\u642c\u786c\u5957\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661939\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53bb\u770b\u9879\u76ee\u4ee3\u7801\u6ca1\u6709\u4efb\u4f55\u610f\u4e49\uff0c\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u5176\u5b9e\u90fd\u662f\u5438\u6536\u4e86\u73b0\u6709\u7684\u8f6f\u4ef6\u5f00\u53d1\u539f\u5219\u4f8b\u5982 SOLID DRY<\/p>\n<p>\u4f8b\u5982\u516d\u8fb9\u5f62\u67b6\u6784 \u5176\u5b9e\u5c31\u662f\u63a5\u53e3\u9694\u79bb\u539f\u5219\uff0c\u5b83\u63d0\u5021\u9ad8\u5c42\u6b21\u7684\u4e1a\u52a1\u903b\u8f91\u4e0d\u8981\u8ddf\u4f4e\u5c42\u6b21\u6280\u672f\u7ec6\u8282\u4ee3\u7801\u8026\u5408\uff0c<br \/>\u4e24\u8005\u90fd\u8981\u4f9d\u8d56\u63a5\u53e3\uff0c\u4f8b\u5982\u53d1\u9001\u6d88\u606f\u5230\u6d88\u606f\u961f\u5217\uff0c\u4ece\u4e1a\u52a1\u5c42\u9762\u4e0a\u6765\u770b\u5e94\u8be5\u62bd\u8c61\u51fa\u4e00\u4e2a\u63a5\u53e3\uff0c<br \/>\u81f3\u4e8e\u5177\u4f53\u600e\u4e48\u53d1\u4e0d\u5e94\u8be5\u4f9d\u8d56\u5177\u4f53\u7684\u5b9e\u73b0\u4f8b\u5982 kafka \u8ddf rabbitMQ\uff0c\u8fd9\u6837\u4ee5\u540e\u4f60\u66f4\u6362\u6d88\u606f\u4e2d\u95f4\u4ef6\u4e0d\u9700\u8981\u6539\u5199\u4e1a\u52a1\u4ee3\u7801\uff0c<br \/>\u4f46\u662f\u5b9e\u9645\u4e0a\u5728 CRUD boy \u7684\u773c\u4e2d\uff0c\u8026\u5408\u4ec0\u4e48\u7684\u90fd\u4e0d\u662f\u95ee\u9898.. \u53cd\u6b63\u5c31\u662f Controller \u6345\u5230 Service \u8ddf DAO \u4e00\u628a\u68ad<\/p>\n<p>\u4f8b\u5982\u5171\u4eab\u5185\u6838\u8ddf\u754c\u9650\u4e0a\u4e0b\u6587 \u5176\u5b9e\u672c\u8d28\u4e0a\u7684\u6838\u5fc3\u601d\u60f3\u5c31\u662f\u5355\u4e00\u804c\u8d23\u539f\u5219\u8ddf\u9002\u914d\u5668\u6a21\u5f0f\uff0c\u5982\u679c\u4f60\u5728\u5927\u578b\u7cfb\u7edf\u4e2d\u5efa\u6a21\uff0c<br \/>\u603b\u60f3\u7528\u4e00\u4e2a\u6a21\u578b\u6982\u5ff5\u53bb\u89e3\u51b3\u6240\u6709\u7684\u9886\u57df\u95ee\u9898\uff0c\u90a3\u4e48\u4f60\u7684\u6a21\u578b\u6982\u5ff5\u5c31\u96be\u4ee5\u7406\u89e3\uff0c<br \/>\u4ee5\u6211\u4e0a\u5bb6\u4e3a\u4f8b\uff0c\u6211\u4eec\u5b9e\u8df5 DDD \u505a\u4e86\u4e00\u5957\u62a4\u58eb\u6559\u80b2\u8003\u8bd5\u7cfb\u7edf\uff0c\u4f46\u662f\u6709\u7684\u533b\u9662\u786c\u662f\u8981\u585e\u8fdb\u53bb\u4e00\u4e2a\u62a4\u58eb\u6392\u73ed\u7cfb\u7edf\uff0c<br \/>\u8fd9\u6837\u5728\u5efa\u6a21\u7684\u65f6\u5019 \u5c31\u8981\u5e94\u7528\u5171\u4eab\u5185\u6838\uff0c<\/p>\n<p>\u5728\u8003\u8bd5\u7cfb\u7edf\u4e0a\u4e0b\u6587\u6211\u4eec\u5173\u5fc3\u7684\u662f\u62a4\u58eb\u7684\u804c\u4e1a\u7ea7\u522b\uff0c\u56e0\u4e3a\u6839\u636e\u4e00\u4e9b\u516c\u7acb\u533b\u9662\u7684\u89c4\u5219<br \/>\u62a4\u58eb\u901a\u8fc7\u8003\u8bd5\uff0c\u5e94\u8be5\u5728\u6279\u51c6\u540e\u5f97\u5230\u664b\u5347\uff0c\u8fd9\u6837\u5728\u8fd9\u4e2a\u4e0a\u4e0b\u6587\u6211\u4eec\u5173\u6ce8\u7684\u662f\u62a4\u58eb\u7684 \u804c\u4e1a\u7b49\u7ea7\u76f8\u5173\u7684\u5c5e\u6027<\/p>\n<p>\u5728\u6392\u73ed\u7cfb\u7edf\u4e0a\u4e0b\u6587\uff0c\u6211\u4eec\u5173\u6ce8\u7684\u662f\u62a4\u58eb\u7684\u5de5\u4f5c\u65f6\u957f\uff0c\u62a4\u58eb\u7684\u8bf7\u5047\uff0c\u533b\u9662\u7684\u6392\u73ed\u89c4\u5219\u7b49<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u5efa\u4e00\u4e2a\u5927\u4e00\u7edf\u7684\u62a4\u58eb\u6a21\u578b\uff0c\u90a3\u4e48\u5bf9\u4e0d\u8d77\uff0c\u8fd9\u4e2a\u62a4\u58eb\u6a21\u578b\u6ca1\u6709\u4efb\u4f55\u4eba\u80fd\u7406\u89e3\u900f\uff0c\u8fd9\u8fd8\u662f\u4e24\u4e2a\u7cfb\u7edf\uff0c<br \/>\u5982\u679c\u518d\u6d89\u53ca\u5230\u533b\u9662\u62a4\u58eb \u62a4\u58eb\u957f\u7b49\u5ba1\u6279\u6d41\u7a0b\u7cfb\u7edf\u4e4b\u7c7b\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6a21\u578b\u7684\u804c\u8d23\u4f1a\u5927\u5230\u4f60\u96be\u4ee5\u7406\u89e3\u3002<\/p>\n<p>\u6240\u4ee5\u5171\u4eab\u5185\u6838\u8ddf\u754c\u9650\u4e0a\u4e0b\u6587\u7684\u6839\u672c\u601d\u60f3\u5c31\u662f \u5355\u4e00\u804c\u8d23\u539f\u5219\uff0c\u505a\u5f00\u53d1\u5982\u679c\u6709\u591a\u5e74\u7ecf\u9a8c\u7684\uff0c\u4e00\u822c\u90fd\u4f1a\u628a\u6ce8\u610f\u529b\u653e\u5728\u5efa\u6a21\u8ddf\u6982\u5ff5\u6700\u5c0f\u5b8c\u6574\u6027\uff0c\u8fd9\u6837\u7684\u7cfb\u7edf\u4f1a\u66f4\u5bb9\u6613\u7ef4\u62a4\uff0c\u81f3\u4e8e\u586b\u7a7a\u5199 CRUD \u7684\u4eba\uff0c\u62db\u51e0\u4e2a 2-3 \u5e74\u7684\u5e74\u8f7b\u4eba\u5c31\u884c\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661940\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4eba\u6708\u795e\u8bdd\u91cc\u9762\u5176\u5b9e\u65e9\u5c31\u6307\u51fa\u4e86\uff0c\u8f6f\u4ef6\u5f00\u53d1\u7684\u56f0\u96be\u5206\u4e3a\u4e24\u4e2a<\/p>\n<p>1. \u975e\u672c\u8d28\u6027\u56f0\u96be <br \/>\u4f8b\u5982 CAP \u9ad8\u5e76\u53d1\u7cfb\u7edf\u8bbe\u8ba1 \u8fd9\u4e9b\u90fd\u662f\u975e\u672c\u8d28\u56f0\u96be\uff0c\u968f\u7740\u6280\u672f\u8fdb\u6b65\u8fd9\u4e9b\u56f0\u96be\u65e9\u665a\u90fd\u4f1a\u88ab\u89e3\u51b3\u6389\uff0c\u4f8b\u5982<br \/>\u963f\u91cc\u7684 seata \u5c31\u5728\u89e3\u51b3\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u5206\u5e03\u5f0f\u4e8b\u52a1\u95ee\u9898 \u63d0\u4f9b TCC SAGA \u7b49\u65b9\u6848\uff0c\u800c\u8fd9\u4e9b\u65b9\u6848\u968f\u7740\u6280\u672f\u6210\u719f\uff0c\u672a\u6765\u4f1a\u8d8a\u6765\u8d8a\u5bf9\u4e1a\u52a1\u5c42\u900f\u660e\uff0c<br \/>\u53e6\u5916\u968f\u7740\u4e00\u4e9b\u4e2d\u95f4\u4ef6\u7684\u6210\u719f\uff0c\u5b9e\u73b0\u53ef\u9760\u6d88\u606f\u961f\u5217\u4e5f\u5c06\u4e0d\u518d\u6210\u4e3a\u96be\u9898\uff0c\u4e1a\u52a1\u5c42\u9762\u4e0a\u4e0d\u7528\u518d\u9700\u8981\u8003\u8651\u5e42\u7b49 \u6d88\u606f\u4e22\u5931 \u5f02\u5e38\u5904\u7406\u4e4b\u7c7b\u7684\uff0c\u53ea\u8981\u8003\u8651\u4e1a\u52a1\u4e0a\u5982\u4f55\u8bbe\u8ba1\u59a5\u534f\uff0c\u56e0\u4e3a\u5f02\u6b65\u6d88\u606f\u7cfb\u7edf\u5b58\u5728\u4e0a\u4e0b\u6587\u4e22\u5931\u7684\u95ee\u9898\u3002<\/p>\n<p>\u5728\u6c47\u7f16\u65f6\u4ee3\uff0c\u7a0b\u5e8f\u5458\u9700\u8981\u81ea\u5df1\u624b\u52a8\u7ba1\u7406\u6808\uff0c\u5728 C \u8bed\u8a00\u65f6\u4ee3\uff0c\u7a0b\u5e8f\u5458\u9700\u8981\u81ea\u5df1\u624b\u52a8\u7ba1\u7406\u5806\u5185\u5b58\uff0c\u5728 C++\u65f6\u4ee3\uff0c\u7a0b\u5e8f\u5458\u9700\u8981\u5173\u6ce8 RAII \u8ddf\u5faa\u73af\u5f15\u7528\u4ee5\u53ca\u667a\u80fd\u6307\u9488\u7684\u5f15\u7528\u8ba1\u6570\u56de\u6536\u6a21\u578b\uff0c\u5728 Java \u65f6\u4ee3\uff0c\u7a0b\u5e8f\u5458\u603b\u7b97\u4ece\u5185\u5b58\u7ba1\u7406\u4e2d\u89e3\u653e\u51fa\u6765\u4e86\uff0c\u53ea\u9700\u8981\u5173\u6ce8\u4e1a\u52a1\u903b\u8f91\u4e86<\/p>\n<p>2. \u672c\u8d28\u6027\u56f0\u96be<\/p>\n<p>\u5927\u578b\u7cfb\u7edf\u7684\u6982\u5ff5\u5b8c\u6574\u6027\u4ee5\u53ca\u5355\u4e2a\u7cfb\u7edf\u6a21\u5757\u590d\u6742\u5ea6\u5931\u63a7\u7684\u95ee\u9898\uff0c\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u53ea\u662f\u51e0\u5341\u4e2a CRUD \u63a5\u53e3\uff0c\u90a3\u4e48\u4f60\u5927\u53ef\u4e0d\u5fc5 \u8d39\u5c3d\u5468\u6298\u6765\u8bbe\u8ba1\u7cfb\u7edf\uff0c\u56e0\u4e3a\u8fd9\u6837\u7684\u7cfb\u7edf\uff0c\u5927\u6982 1-2 \u5e74\u540e\u5c31\u4f1a\u88ab\u91cd\u5199\uff0c\u5373\u4f7f\u91cd\u5199\u635f\u5931\u4e5f\u4e0d\u5927\uff0c\u6240\u4ee5\u50cf DDD \u8fd9\u79cd\u8bbe\u8ba1\u54f2\u5b66\u8ddf\u7406\u5ff5\uff0c\u5b83\u53ea\u80fd\u88ab\u7528\u5728\u5927\u578b\u7cfb\u7edf\u4e2d\uff0c\u4f8b\u5982\u50cf\u963f\u91cc\u8fd9\u6837\u7684\u516c\u53f8\uff0c\u4f60\u5f88\u96be\u5728\u4e0a\u767e\u4e2a\u4e1a\u52a1\u5f00\u53d1\u56e2\u961f \u5efa\u7acb\u4e00\u4e2a\u5171\u901a\u7684\u6982\u5ff5\u6a21\u578b\uff0c\u4f8b\u5982\u4e00\u4e2a\u6dd8\u5b9d\u7528\u6237\uff0c\u5728\u5404\u4e2a\u4e1a\u52a1\u56e2\u961f\u4e2d\uff0c\u5b83\u6240\u5448\u73b0\u7684\u6982\u5ff5\u662f\u5b8c\u5168\u4e0d\u4e00\u6837\u7684\uff0c\u53ea\u6709\u8fd9\u6837\u7684\u5927\u7cfb\u7edf\u624d\u6709\u5e94\u7528 DDD \u7684\u4ef7\u503c\u8ddf\u9700\u6c42                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661941\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @crclz \u770b\u770b DDD \u7406\u5ff5\uff0c\u7136\u540e\u518d\u6709\u771f\u6b63\u7684\u4ee3\u7801\u6446\u5728\u9762\u524d\u3002\u5c31\u77e5\u9053\u81ea\u5df1\u662f\u4ee5\u524d\u662f\u4e95\u5e95\u4e4b\u86d9\u4e86\uff0c\u975e\u5e38\u611f\u8c22\u4f60\u7ed9\u7684\u4f8b\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661942\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shubiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u5230\u786e\u5b9e\u6709\u4e0d\u5c11\u524d\u8f88\u843d\u5730 DDD \u7684\uff0c\u5fc3\u91cc\u8e0f\u5b9e\u5f88\u591a\uff0c\u8c22\u8c22\u8bf8\u4f4d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5661943\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : defage <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6218\u672f\u8bbe\u8ba1\u8fd9\u90e8\u5206\u5176\u5b9e\u662f\u5f88\u597d\u7406\u89e3\u548c\u5b9e\u8df5\u7684\uff0c\u5f53\u7136\u91cc\u9762\u5f88\u591a\u7ec6\u8282\u4f1a\u56e0\u4e3a\u9879\u76ee\u5927\u5c0f\u3001\u7406\u89e3\u7a0b\u5ea6\u4e0d\u540c\u800c\u505a\u6210\u4e0d\u540c\u7684\u6837\u5b50\u3002<br \/>\u5728\u4e1a\u52a1\u67b6\u6784\u7684\u5c42\u9762\u4e0a\uff0c\u5176\u5b9e\u6218\u7565\u8bbe\u8ba1\u624d\u662f DDD \u4e2d\u66f4\u9876\u5c42\u7684\u8bbe\u8ba1\uff0c\u8fd9\u5757\u6ca1\u505a\u597d\u540e\u9762\u6218\u672f\u90e8\u5206\u4e5f\u5c31\u8d70\u4e86\u4e2a\u5f62\u5f0f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u201c\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1\u201c Java \u9879\u76ee&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/440447"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=440447"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/440447\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=440447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=440447"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=440447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}