{"id":576,"date":"2019-09-19T13:27:12","date_gmt":"2019-09-19T04:27:12","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2019\/09\/19\/cqrs-dynamodb"},"modified":"2019-09-19T13:27:12","modified_gmt":"2019-09-19T04:27:12","slug":"cqrs-dynamodb","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2019\/09\/19\/cqrs-dynamodb\/","title":{"rendered":"CQRS\u3068DynamoDB\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u8a2d\u8a08"},"content":{"rendered":"

\u5148\u65e5\u3001\u7d50\u5a5a\u3057\u307e\u3057\u305f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5185\u5c71\u3067\u3059\u3002
\n\u4eca\u56de\u306f DynamoDB \u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u8a2d\u8a08\u306b\u95a2\u3059\u308b\u8003\u5bdf\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n

\u6982\u8981<\/h2>\n

DynamoDB \u306e\u30c7\u30fc\u30bf\u69cb\u9020\u8a2d\u8a08\u3092\u884c\u3046\u969b\u3001RDB \u306e\u8a2d\u8a08\u3068\u306f\u7570\u306a\u308b\u8003\u3048\u65b9\u3092\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/strong>
\nDynamoDB \u306f\u3001NoSQL \u3067\u3042\u308a\u3001\u69d8\u3005\u306a\u5236\u7d04\u304c\u3042\u308b\u306e\u3067\u3001\u8272\u3005\u3068\u982d\u3092\u3072\u306d\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u56db\u82e6\u516b\u82e6\u3057\u306a\u304c\u3089\u4f55\u3068\u304b\u5f62\u306b\u3057\u3066\u3044\u307e\u3059\u3002
\n\u305d\u3093\u306a\u4e2d\u3001CQRS<\/strong> \u3068\u3044\u3046\u8003\u3048\u65b9\u304c\u3042\u308b\u3053\u3068\u3092\u77e5\u3063\u305f\u306e\u3067\u3001DynamoDB \u306e\u30c7\u30fc\u30bf\u69cb\u9020\u8a2d\u8a08\u3068\u306e\u95a2\u4fc2\u6027\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n

CQRS\u3068\u306f<\/h2>\n

__CQRS \u306f\u300cCommand Query Responsibility Segregation\uff1a\u30b3\u30de\u30f3\u30c9\u30af\u30a8\u30ea\u8cac\u4efb\u5206\u96e2\u300d__\u3068\u3044\u3046\u610f\u5473\u3067\u3001DB\u3078\u306e\u66f8\u304d\u8fbc\u307f( Command )\u3068\u8aad\u307f\u8fbc\u307f( Query )\u3092\u5225\u7269\u3068\u3057\u3066\u6349\u3048\u308b\u8003\u3048\u65b9\u3067\u3059\u3002\u66f8\u304d\u8fbc\u307f\u7528\u3068\u8aad\u307f\u8fbc\u307f\u7528\u306e\u305d\u308c\u305e\u308c\u306e DB \u3092\u5206\u96e2\u3059\u308b\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u306d\u3002<\/p>\n

RDB\u306e\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002
\n\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u3067\u306f\u3001\u66f8\u304d\u8fbc\u307f\u7528 DB (\u30de\u30b9\u30bf\u30fc)\u3068\u8aad\u307f\u8fbc\u307f\u7528 DB (\u30b9\u30ec\u30fc\u30d6)\u304c\u3042\u308a\u307e\u3059\u3002\u30de\u30b9\u30bf\u30fc\u3068\u30b9\u30ec\u30fc\u30d6\u3067\u306f\u30c7\u30fc\u30bf\u69cb\u9020(\u30b9\u30ad\u30fc\u30de)\u306f\u5b8c\u5168\u306b\u540c\u3058\u3067\u3059\u3002
CQRS \u3067\u306f\u3001\u66f8\u304d\u8fbc\u307f\u7528\u3068\u8aad\u307f\u8fbc\u307f\u7528\u3067\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u7570\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u8a31\u5bb9\u3057\u3066\u3044\u308b\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n

DynamoDB \u3067\u306e Command \u7528\u30c7\u30fc\u30bf\u69cb\u9020<\/h2>\n

DynamoDB \u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n