{"id":191,"date":"2026-03-09T10:39:13","date_gmt":"2026-03-09T10:39:13","guid":{"rendered":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/09\/event-driven-architecture-in-2026-why-microservice\/"},"modified":"2026-03-09T22:00:17","modified_gmt":"2026-03-09T22:00:17","slug":"event-driven-architecture-in-2026-why-microservice","status":"publish","type":"post","link":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/09\/event-driven-architecture-in-2026-why-microservice\/","title":{"rendered":"2026\u5e74\u306e\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3: \u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u304c\u30a4\u30d9\u30f3\u30c8\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306b\u79fb\u884c\u3059\u308b\u7406\u7531"},"content":{"rendered":"<p>\u3046\u3061\u306e\u30c1\u30fc\u30e0\u306f2024\u5e74\u672b\u307e\u3067\u30018\u3064\u306e\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3092REST\u3067\u7e4b\u3044\u3067\u3044\u305f\u30025\u4eba\u30c1\u30fc\u30e0\u30011\u65e5\u3042\u305f\u308a\u7d0430\u4e07\u30ea\u30af\u30a8\u30b9\u30c8\u3002\u898f\u6a21\u3068\u3057\u3066\u306f\u300c\u307e\u3042\u4e2d\u5c0f\u898f\u6a21\u300d\u3068\u3044\u3046\u611f\u3058\u3067\u3001\u5f53\u6642\u306f\u3053\u308c\u3067\u5341\u5206\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u3002<\/p>\n<p>\u601d\u3063\u3066\u3044\u305f\u3001\u304c\u6b63\u3057\u304b\u3063\u305f\u3002\u3057\u3070\u3089\u304f\u306f\u3002<\/p>\n<h2>\u91d1\u66dc\u306e\u5348\u5f8c4\u6642\u30014\u6bb5\u306eREST\u547c\u3073\u51fa\u3057\u30c1\u30a7\u30fc\u30f3\u304c94\u79d2\u3067\u5d29\u58ca\u3057\u305f<\/h2>\n<p>\u91d1\u66dc\u306e\u5348\u5f8c4\u6642\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u306e\u304c\u5931\u6557\u306e\u59cb\u307e\u308a\u3060\u3063\u305f\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u3001\u5fc3\u5f53\u305f\u308a\u306e\u3042\u308b\u4eba\u306f\u591a\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u6ce8\u6587\u30b5\u30fc\u30d3\u30b9\u304c\u5728\u5eab\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3001\u5728\u5eab\u30b5\u30fc\u30d3\u30b9\u304c\u901a\u77e5\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3001\u901a\u77e5\u30b5\u30fc\u30d3\u30b9\u304c\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3059\u2014\u2014\u3068\u3044\u30464\u6bb5\u306eREST\u547c\u3073\u51fa\u3057\u30c1\u30a7\u30fc\u30f3\u304c\u3042\u3063\u305f\u3002\u305d\u308c\u305e\u308c\u306e\u30b5\u30fc\u30d3\u30b9\u306fHTTP\/JSON\u3067\u901a\u4fe1\u3057\u3066\u304a\u308a\u3001\u7279\u5225\u306a\u3053\u3068\u306f\u4f55\u3082\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u304c\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u59cb\u3081\u305f\u300230\u79d2\u5f8c\u3001\u901a\u77e5\u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30ec\u30c3\u30c9\u30d7\u30fc\u30eb\u304c\u67af\u6e07\u3057\u305f\u300260\u79d2\u5f8c\u3001\u5728\u5eab\u30b5\u30fc\u30d3\u30b9\u304c\u5fdc\u7b54\u4e0d\u80fd\u306b\u306a\u3063\u305f\u300290\u79d2\u5f8c\u3001\u6ce8\u6587\u30b5\u30fc\u30d3\u30b9\u5168\u4f53\u304c\u505c\u6b62\u3057\u305f\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u30ec\u30fc\u30c8\u304c0%\u304b\u3089100%\u306b\u306a\u308b\u307e\u3067\u3001\u6b63\u78ba\u306b94\u79d2\u3002Circuit breaker\u306f\u5404\u30b5\u30fc\u30d3\u30b9\u306b\u5b9f\u88c5\u3057\u3066\u3044\u305f\u304c\u3001\u300c\u96a3\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u56de\u5fa9\u3059\u308b\u307e\u3067\u5f85\u3064\u300d\u3068\u3044\u3046\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u305f\u3002\u30c1\u30a7\u30fc\u30f3\u304c\u6df1\u3044\u3068\u3001circuit breaker\u304c\u5168\u90e8\u9023\u9396\u3057\u3066\u30aa\u30fc\u30d7\u30f3\u72b6\u614b\u306b\u306a\u308b\u2014\u2014\u3053\u308c\u306f\u5f53\u6642\u307e\u3063\u305f\u304f\u7406\u89e3\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u6319\u52d5\u3060\u3063\u305f\u3002\u305d\u306e\u591c3\u6642\u9593\u304b\u3051\u3066\u624b\u52d5\u3067\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3057\u306a\u304c\u3089\u3001\u300ccircuit breaker\u3063\u3066\u672c\u5f53\u306b\u610f\u5473\u3042\u3093\u306e\u304b\u300d\u3068Slack\u306b\u66f8\u3044\u305f\u8a18\u61b6\u304c\u3042\u308b\u3002<\/p>\n<p>\u6559\u8a13\u306f\u660e\u78ba\u3060\u3063\u305f\u3002<strong>\u540c\u671f\u7684\u306a\u4f9d\u5b58\u30c1\u30a7\u30fc\u30f3\u306f\u3001\u4f9d\u5b58\u306e\u6df1\u3055\u306b\u6bd4\u4f8b\u3057\u3066\u8106\u304f\u306a\u308b\u3002<\/strong><\/p>\n<h2>\u554f\u984c\u306e\u672c\u8cea\u306f\u300c\u30d7\u30ed\u30c8\u30b3\u30eb\u300d\u3067\u306f\u306a\u304f\u300c\u6642\u9593\u7684\u7d50\u5408\u300d\u3060\u3063\u305f<\/h2>\n<p>\u6700\u521d\u306b\u30c1\u30fc\u30e0\u3067\u51fa\u305f\u89e3\u6c7a\u6848\u306f\u300c\u5168\u90e8gRPC\u306b\u79fb\u884c\u3057\u3088\u3046\u300d\u3060\u3063\u305f\u3002\u6b63\u76f4\u306b\u8a00\u3046\u3068\u3001\u79c1\u3082\u6700\u521d\u306f\u305d\u308c\u3092\u652f\u6301\u3057\u3066\u3044\u305f\u3002gRPC\u306a\u3089\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u5236\u5fa1\u304c\u7d30\u304b\u304f\u306a\u308b\u3057\u3001\u30d0\u30a4\u30ca\u30ea\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u901f\u3044\u3057\u3001\u53cc\u65b9\u5411\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>\u3067\u3082\u5b9f\u969b\u306b\u8abf\u3079\u308b\u3068\u3001\u554f\u984c\u306fHTTP\u5bfegRPC\u306e\u8a71\u3067\u306f\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u6ce8\u6587\u30b5\u30fc\u30d3\u30b9\u304c\u5728\u5eab\u30b5\u30fc\u30d3\u30b9\u306e\u300c\u4eca\u3053\u306e\u77ac\u9593\u306e\u72b6\u614b\u300d\u3092\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u304b\u3001\u3068\u8003\u3048\u76f4\u3057\u3066\u307f\u305f\u3002\u3088\u304f\u8003\u3048\u308b\u3068\u3001\u305d\u3046\u3067\u306f\u306a\u304b\u3063\u305f\u3002\u6ce8\u6587\u30b5\u30fc\u30d3\u30b9\u304c\u5fc5\u8981\u3068\u3057\u3066\u3044\u305f\u306e\u306f\u300c\u5728\u5eab\u304c\u5f15\u304d\u5f53\u3066\u3089\u308c\u305f\u3068\u3044\u3046\u4e8b\u5b9f\u300d\u3067\u3042\u3063\u3066\u3001\u305d\u308c\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u540c\u671f\u7684\u306b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u306f\u306a\u304b\u3063\u305f\u3002\u300c\u6ce8\u6587\u304c\u767a\u751f\u3057\u305f\u300d\u3068\u3044\u3046\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u884c\u3057\u3001\u5728\u5eab\u30b5\u30fc\u30d3\u30b9\u306f\u305d\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u975e\u540c\u671f\u3067\u51e6\u7406\u3057\u3066\u300c\u5728\u5eab\u5f15\u304d\u5f53\u3066\u5b8c\u4e86\u300d\u3068\u3044\u3046\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u884c\u3059\u308b\u3002\u901a\u77e5\u30b5\u30fc\u30d3\u30b9\u306f\u305d\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u62fe\u3046\u3002<\/p>\n<p>\u3053\u308c\u304c\u6642\u9593\u7684\u7d50\u5408\uff08temporal coupling\uff09\u306e\u554f\u984c\u3060\u3002\u540c\u671fRPC\u306f\u547c\u3073\u51fa\u3057\u5143\u3068\u547c\u3073\u51fa\u3057\u5148\u304c\u300c\u540c\u6642\u306b\u751f\u304d\u3066\u3044\u308b\u3053\u3068\u300d\u3092\u524d\u63d0\u306b\u3059\u308b\u3002\u305d\u308c\u304c\u30ab\u30b9\u30b1\u30fc\u30c9\u969c\u5bb3\u306e\u6839\u672c\u539f\u56e0\u3060\u3063\u305f\u3002gRPC\u306b\u4e57\u308a\u63db\u3048\u3066\u3082\u3001\u3053\u306e\u524d\u63d0\u306f\u5909\u308f\u3089\u306a\u3044\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u6574\u7406\u3067\u304d\u3066\u3001\u521d\u3081\u3066\u30a4\u30d9\u30f3\u30c8\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u9078\u5b9a\u3092\u672c\u683c\u7684\u306b\u59cb\u3081\u305f\u3002<\/p>\n<h2>Redpanda\u3067\u975e\u540c\u671f\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u69cb\u7bc9\u3057\u305f: \u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3068\u8e0f\u3093\u3060\u7f60<\/h2>\n<p>\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u5019\u88dc\u306fKafka\u3001Redpanda\u3001Apache Pulsar\u306e3\u3064\u3060\u3063\u305f\u3002<\/p>\n<p>Kafka\u306fZooKeeper\u4f9d\u5b58\u304cv4.0\u3067\u6b63\u5f0f\u306b\u9664\u53bb\u3055\u308cKRaft\u304c\u5b89\u5b9a\u3057\u3066\u3044\u308b\u304c\u3001\u3046\u3061\u306e\u30c1\u30fc\u30e0\u306bKafka\u904b\u7528\u7d4c\u9a13\u304c\u306a\u304f\u3001\u30af\u30e9\u30b9\u30bf\u7ba1\u7406\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u6016\u304b\u3063\u305f\u3002Pulsar\u306fKafka\u3068\u7570\u306a\u308b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u3001BookKeeper\u306e\u6982\u5ff5\u304b\u3089\u5b66\u3076\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p>Redpanda\uff08v24.2\uff09\u3092\u9078\u3093\u3060\u6c7a\u3081\u624b\u306f2\u3064\u3002Kafka\u4e92\u63db\u306eAPI\u3092\u6301\u3064\u306e\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u30b7\u30f3\u30b0\u30eb\u30d0\u30a4\u30ca\u30ea\u3067\u52d5\u3044\u3066\u904b\u7528\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u3053\u3068\u3002\u3042\u3068\u6b63\u76f4\u306b\u8a00\u3046\u3068\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u8aad\u307f\u3084\u3059\u304b\u3063\u305f\u2014\u2014\u3053\u308c\u3001\u7b11\u3044\u8a71\u306b\u805e\u3053\u3048\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u610f\u5916\u3068\u99ac\u9e7f\u306b\u3067\u304d\u306a\u3044\u5224\u65ad\u57fa\u6e96\u3060\u3068\u4eca\u3067\u3082\u601d\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>Go\u3067\u66f8\u3044\u305f\u57fa\u672c\u7684\u306a\u69cb\u6210\u306f\u3053\u3093\u306a\u611f\u3058\u3060:<\/p>\n<pre><code class=\"language-go\">\/\/ order-service\/events\/producer.go\npackage events\n\nimport (\n    &quot;context&quot;\n    &quot;encoding\/json&quot;\n\n    &quot;github.com\/twmb\/franz-go\/pkg\/kgo&quot;\n)\n\ntype OrderCreatedEvent struct {\n    OrderID     string  `json:&quot;order_id&quot;`\n    CustomerID  string  `json:&quot;customer_id&quot;`\n    Items       []Item  `json:&quot;items&quot;`\n    TotalAmount float64 `json:&quot;total_amount&quot;`\n    OccurredAt  int64   `json:&quot;occurred_at&quot;` \/\/ Unix timestamp (\u30ca\u30ce\u79d2)\n}\n\nfunc (p *EventProducer) PublishOrderCreated(ctx context.Context, ev OrderCreatedEvent) error {\n    payload, err := json.Marshal(ev)\n    if err != nil {\n        return err\n    }\n\n    \/\/ OrderID\u3092\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u540c\u4e00\u6ce8\u6587\u306e\u30a4\u30d9\u30f3\u30c8\u9806\u5e8f\u3092\u4fdd\u8a3c\u3059\u308b\n    record := &amp;kgo.Record{\n        Topic: &quot;order.created&quot;,\n        Key:   []byte(ev.OrderID),\n        Value: payload,\n    }\n\n    \/\/ ProduceSync\u306f\u30ec\u30a4\u30c6\u30f3\u30b7\u3088\u308a\u78ba\u5b9f\u6027\u3092\u512a\u5148\u3059\u308b\u5834\u5408\u306e\u9078\u629e\n    \/\/ \u9ad8\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u304c\u5fc5\u8981\u306a\u3089\u975e\u540c\u671fProduce\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\n    return p.client.ProduceSync(ctx, record).FirstErr()\n}\n<\/code><\/pre>\n<pre><code class=\"language-go\">\/\/ inventory-service\/events\/consumer.go\npackage events\n\nimport (\n    &quot;context&quot;\n    &quot;encoding\/json&quot;\n    &quot;log\/slog&quot;\n\n    &quot;github.com\/twmb\/franz-go\/pkg\/kgo&quot;\n)\n\nfunc (c *EventConsumer) Run(ctx context.Context) {\n    for {\n        fetches := c.client.PollFetches(ctx)\n        if ctx.Err() != nil {\n            return\n        }\n\n        fetches.EachRecord(func(record *kgo.Record) {\n            var ev OrderCreatedEvent\n            if err := json.Unmarshal(record.Value, &amp;ev); err != nil {\n                \/\/ \u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u5931\u6557\u306f\u5373DLQ\u3078 \u2014 \u30ea\u30c8\u30e9\u30a4\u3057\u3066\u3082\u7121\u610f\u5473\n                c.sendToDLQ(ctx, record, err)\n                return\n            }\n\n            \/\/ reserveInventory\u306f\u51aa\u7b49\u6027\u3092\u6301\u305f\u305b\u308b\u3053\u3068\n            \/\/ \u540c\u3058OrderID\u30672\u56de\u547c\u3070\u308c\u3066\u3082\u5b89\u5168\u306a\u3088\u3046\u306b\u8a2d\u8a08\u3059\u308b\n            if err := c.reserveInventory(ctx, ev); err != nil {\n                slog.Error(&quot;inventory reservation failed&quot;,\n                    &quot;order_id&quot;, ev.OrderID,\n                    &quot;err&quot;, err,\n                )\n                \/\/ \u3053\u3053\u3067\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u6226\u7565\u306f\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306b\u4f9d\u5b58\u3059\u308b\n                \/\/ \u3046\u3061\u306f\u30ea\u30c8\u30e9\u30a4\u30c8\u30d4\u30c3\u30af\u3092\u4f7f\u3063\u305f\u6307\u6570\u30d0\u30c3\u30af\u30aa\u30d5\u3092\u63a1\u7528\n            }\n        })\n    }\n}\n<\/code><\/pre>\n<p>\u6700\u521d\u306b\u8e0f\u3093\u3060\u7f60\u304c\u3001Dead Letter Queue\uff08DLQ\uff09\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3092\u5f8c\u56de\u3057\u306b\u3057\u305f\u3053\u3068\u3060\u3063\u305f\u3002DLQ\u306b\u9001\u308b\u5b9f\u88c5\u306f\u3057\u3066\u3044\u305f\u304c\u3001\u30a2\u30e9\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u672c\u756a\u3067\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u306b\u5931\u6557\u3057\u305f\u6570\u767e\u4ef6\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c2\u9031\u9593\u3001\u8ab0\u306b\u3082\u6c17\u3065\u304b\u308c\u305a\u306b\u9759\u304b\u306b\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u305f\u3002<\/p>\n<p><strong>DLQ\u306f\u30a2\u30e9\u30fc\u30c8\u306a\u3057\u3067\u904b\u7528\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u3002\u3053\u308c\u306f\u672c\u5f53\u306b\u6700\u521d\u304b\u3089\u3084\u308b\u3079\u304d\u3060\u3063\u305f\u3002<\/strong><\/p>\n<h2>\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b7\u30f3\u30b0\u3068\u300c\u975e\u540c\u671f\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u300d\u3092\u6df7\u540c\u3057\u30661\u30f6\u6708\u7121\u99c4\u306b\u3057\u305f<\/h2>\n<p>\u3053\u308c\u304c\u4e00\u756a\u75db\u3044\u5931\u6557\u3060\u3063\u305f\u2014\u2014\u3068\u3044\u3046\u304b\u3001\u5931\u6557\u3068\u6c17\u3065\u304f\u307e\u3067\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u304c\u554f\u984c\u3060\u3063\u305f\u3002<\/p>\n<p>\u79fb\u884c\u3092\u59cb\u3081\u3066\u5c11\u3057\u7d4c\u3063\u305f\u9803\u3001\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u306e\u4e00\u4eba\u304c\u300c\u3069\u3046\u305b\u3084\u308b\u306a\u3089\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b7\u30f3\u30b0\u306b\u3057\u3088\u3046\u300d\u3068\u8a00\u3044\u51fa\u3057\u305f\u3002\u72b6\u614b\u3092\u30a4\u30d9\u30f3\u30c8\u306e\u7d2f\u7a4d\u3068\u3057\u3066\u7ba1\u7406\u3057\u3001DB\u306b\u306f\u300c\u73fe\u5728\u306e\u72b6\u614b\u300d\u3067\u306f\u306a\u304f\u30a4\u30d9\u30f3\u30c8\u30ed\u30b0\u3092\u6c38\u7d9a\u5316\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3060\u3002\u300c\u5b8c\u5168\u306a\u5909\u66f4\u5c65\u6b74\u304c\u624b\u306b\u5165\u308b\u300d\u300c\u3044\u3064\u3067\u3082\u4efb\u610f\u306e\u6642\u70b9\u306e\u72b6\u614b\u3092\u518d\u69cb\u7bc9\u3067\u304d\u308b\u300d\u2014\u2014\u305f\u3057\u304b\u306b\u9b45\u529b\u7684\u306b\u805e\u3053\u3048\u305f\u3002\u79c1\u3082\u300c\u305d\u308c\u3001\u3044\u3044\u306d\u300d\u3068\u4e57\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\u7d041\u30f6\u6708\u5f8c\u3001\u72b6\u6cc1\u306f\u3072\u3069\u304b\u3063\u305f\u3002<code>OrderAggregate<\/code>\u306e\u8a2d\u8a08\u306b\u60f3\u5b9a\u5916\u306e\u6642\u9593\u304c\u304b\u304b\u308a\u3001CQRS\u306eread\u30e2\u30c7\u30eb\u3068write\u30e2\u30c7\u30eb\u306e\u6574\u5408\u6027\u7ba1\u7406\u304c\u8907\u96d1\u306b\u306a\u308a\u3001\u5168\u54e1\u304c\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b7\u30f3\u30b0\u306e\u30e1\u30f3\u30bf\u30eb\u30e2\u30c7\u30eb\u3092\u5171\u6709\u3067\u304d\u3066\u3044\u308b\u308f\u3051\u3067\u3082\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u4e00\u6b69\u5f15\u3044\u3066\u8003\u3048\u76f4\u3057\u305f\u3002<strong>\u3046\u3061\u306b\u672c\u5f53\u306b\u5fc5\u8981\u3060\u3063\u305f\u306e\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b7\u30f3\u30b0\u3067\u306f\u306a\u304b\u3063\u305f\u3002\u975e\u540c\u671f\u306e\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u901a\u4fe1\u304c\u307b\u3057\u304b\u3063\u305f\u3060\u3051\u3060\u3002<\/strong><\/p>\n<p>\u6ce8\u6587\u30b5\u30fc\u30d3\u30b9\u306b\u6ce8\u6587\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u3063\u3066\u3001\u884c\u304c\u633f\u5165\u3055\u308c\u305f\u3089\u30c8\u30d4\u30c3\u30af\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u884c\u3059\u308b\u2014\u2014\u305d\u308c\u3067\u5341\u5206\u3060\u3063\u305f\u3002\u5168\u30b5\u30fc\u30d3\u30b9\u306e\u3059\u3079\u3066\u306e\u72b6\u614b\u5909\u5316\u3092\u7d2f\u7a4d\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u6301\u3064\u5fc5\u8981\u306f\u306a\u304b\u3063\u305f\u3002\u3053\u306e\u533a\u5225\u3092\u6700\u521d\u306b\u304d\u3061\u3093\u3068\u8b70\u8ad6\u3057\u3066\u3044\u308c\u30701\u30f6\u6708\u306f\u7bc0\u7d04\u3067\u304d\u305f\u3002<\/p>\n<p>\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b7\u30f3\u30b0\u306f\u78ba\u304b\u306b\u5f37\u529b\u306a\u30d1\u30bf\u30fc\u30f3\u3060\u304c\u3001\u305d\u308c\u81ea\u4f53\u304c\u304b\u306a\u308a\u5927\u304d\u306a\u6295\u8cc7\u3060\u3002\u76e3\u67fb\u30ed\u30b0\u304c\u6cd5\u7684\u8981\u4ef6\u306b\u306a\u3063\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3084\u3001\u8907\u96d1\u306a\u30c9\u30e1\u30a4\u30f3\u30ed\u30b8\u30c3\u30af\u3092\u6301\u3064\u30b3\u30a2\u30b5\u30fc\u30d3\u30b9\u306b\u306f\u5408\u3046\u3068\u601d\u3046\u3002\u300c\u975e\u540c\u671f\u5316\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u52d5\u6a5f\u3060\u3051\u3067\u5168\u9762\u63a1\u7528\u3059\u308b\u306e\u306f\u3001\u30b3\u30b9\u30d1\u304c\u5408\u308f\u306a\u3044\u3002<\/p>\n<h2>\u79fb\u884c\u304b\u30891\u5e74\u7d4c\u3063\u305f\u4eca\u3001\u7387\u76f4\u306b\u8a00\u3046\u3068<\/h2>\n<p>\u5f8c\u6094\u3057\u3066\u3044\u306a\u3044\u3002\u3067\u3082\u904e\u5927\u8a55\u4fa1\u3082\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u30ab\u30b9\u30b1\u30fc\u30c9\u969c\u5bb3\u306f\u5b9f\u8cea\u30bc\u30ed\u306b\u306a\u3063\u305f\u3002\u5728\u5eab\u30b5\u30fc\u30d3\u30b9\u304c\u843d\u3061\u3066\u3082\u6ce8\u6587\u30b5\u30fc\u30d3\u30b9\u306f\u52d5\u304d\u7d9a\u3051\u3001\u30a4\u30d9\u30f3\u30c8\u306f\u30d6\u30ed\u30fc\u30ab\u30fc\u306b\u6e9c\u307e\u3063\u3066\u3001\u5fa9\u65e7\u5f8c\u306b\u51e6\u7406\u3055\u308c\u308b\u3002\u5f8c\u304b\u3089\u300c\u5206\u6790\u30b5\u30fc\u30d3\u30b9\u300d\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u3001\u65e2\u5b58\u30b5\u30fc\u30d3\u30b9\u306e\u30b3\u30fc\u30c9\u3092\u4e00\u884c\u3082\u5909\u3048\u305a\u306b<code>order.created<\/code>\u30c8\u30d4\u30c3\u30af\u3092\u8cfc\u8aad\u3059\u308b\u3060\u3051\u3067\u3088\u304b\u3063\u305f\u2014\u2014\u3053\u308c\u306f\u60f3\u5b9a\u4ee5\u4e0a\u306b\u6c17\u6301\u3061\u3088\u304b\u3063\u305f\u3002Redpanda\u306e\u904b\u7528\u8ca0\u8377\u3082\u601d\u3063\u305f\u3088\u308a\u4f4e\u304f\u30013\u30ce\u30fc\u30c9\u30af\u30e9\u30b9\u30bf\u3092AWS\u4e0a\u3067\u52d5\u304b\u3057\u3066\u6708\u6b21\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u307b\u307c\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u4f5c\u696d\u3060\u3051\u3067\u6e08\u3093\u3067\u3044\u308b\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u306f\u78ba\u5b9f\u306b\u96e3\u3057\u304f\u306a\u3063\u305f\u3002REST\u306a\u3089\u300c\u3053\u306eAPI\u3092\u53e9\u3044\u3066\u3053\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u8fd4\u3063\u305f\u300d\u3067\u8ffd\u3048\u308b\u304c\u3001\u30a4\u30d9\u30f3\u30c8\u306f\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u3092\u307e\u305f\u304c\u308b\u306e\u3067\u3001OpenTelemetry\u306b\u3088\u308b\u5206\u6563\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u306a\u3057\u3067\u306f\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u304b\u5168\u304f\u308f\u304b\u3089\u306a\u3044\u3002\u6700\u7d42\u6574\u5408\u6027\u306e\u30e1\u30f3\u30bf\u30eb\u30e2\u30c7\u30eb\u3092\u30c1\u30fc\u30e0\u5168\u54e1\u306b\u6d78\u900f\u3055\u305b\u308b\u306e\u306b\u3082\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3002\u300c\u6ce8\u6587\u3057\u305f\u306e\u306b\u5728\u5eab\u304c\u307e\u3060\u6e1b\u3063\u3066\u306a\u3044\uff08\u6570\u30df\u30ea\u79d2\u5f8c\u306b\u306f\u89e3\u6d88\u3059\u308b\uff09\u300d\u3068\u3044\u3046\u72b6\u6cc1\u3092\u81ea\u7136\u306b\u53d7\u3051\u5165\u308c\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u3001\u6163\u308c\u304c\u5fc5\u8981\u3060\u3063\u305f\u3002\u30b9\u30ad\u30fc\u30de\u9032\u5316\u306e\u7ba1\u7406\u3082\u5730\u5473\u306b\u5897\u3048\u305f\u2014\u2014\u30a4\u30d9\u30f3\u30c8\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u5f62\u5f0f\u3092\u5909\u3048\u308b\u3068\u304d\u3001\u5f8c\u65b9\u4e92\u63db\u6027\u3092\u771f\u5263\u306b\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p><strong>\u79fb\u884c\u3092\u52e7\u3081\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u65ad\u57fa\u6e96\u306f\u30b7\u30f3\u30d7\u30eb\u3060<\/strong>: \u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u304c5\u301c6\u4ee5\u4e0a\u3042\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u9593\u306e\u540c\u671f\u547c\u3073\u51fa\u3057\u30c1\u30a7\u30fc\u30f3\u304c2\u6bb5\u4ee5\u4e0a\u3042\u308b\u5834\u5408\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u3078\u306e\u79fb\u884c\u3092\u672c\u6c17\u3067\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308b\u30021\u301c2\u30b5\u30fc\u30d3\u30b9\u306a\u3089REST + Saga\u30d1\u30bf\u30fc\u30f3\u3067\u5341\u5206\u3067\u3001\u30d6\u30ed\u30fc\u30ab\u30fc\u3092\u6301\u3061\u8fbc\u3080\u30b3\u30b9\u30c8\u306b\u898b\u5408\u308f\u306a\u3044\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3002<\/p>\n<p>\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u9078\u629e\u306b\u3064\u3044\u3066\u30012026\u5e74\u73fe\u5728\u3067\u3082\u79c1\u306f\u307e\u305aRedpanda\u3092\u8a66\u3057\u3066\u307b\u3057\u3044\u3068\u8a00\u3046\u3002Kafka\u4e92\u63db\u306a\u306e\u3067\u5c06\u6765\u7684\u306bKafka managed service\u306b\u79fb\u884c\u3059\u308b\u9078\u629e\u80a2\u3092\u6b8b\u3057\u3064\u3064\u3001\u904b\u7528\u306e\u30b7\u30f3\u30d7\u30eb\u3055\u3092\u53d6\u308c\u308b\u3002WarpStream\u3084Confluent\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30aa\u30d5\u30a1\u30ea\u30f3\u30b0\u3082\u9762\u767d\u3044\u304c\u3001\u30d9\u30f3\u30c0\u30fc\u30ed\u30c3\u30af\u30a4\u30f3\u306e\u30ea\u30b9\u30af\u3068\u30b3\u30b9\u30c8\u3092\u3088\u304f\u8a08\u7b97\u3057\u3066\u307b\u3057\u3044\u3002<\/p>\n<p>\u3069\u306e\u30d6\u30ed\u30fc\u30ab\u30fc\u3092\u9078\u3093\u3067\u3082\u5909\u308f\u3089\u306a\u3044\u8a71\u3092\u6700\u5f8c\u306b\u4e00\u3064\u3002\u51aa\u7b49\u6027\u306e\u3042\u308b\u6d88\u8cbb\u8005\u306e\u5b9f\u88c5\u3068\u3001DLQ\u306e\u30a2\u30e9\u30fc\u30c8\u8a2d\u5b9a\u306f\u6700\u521d\u304b\u3089\u5165\u308c\u308b\u3053\u3068\u3002\u79c1\u306f\u5b9f\u4f53\u9a13\u3067\u305d\u308c\u3092\u5b66\u3093\u3060\u2014\u2014DLQ\u306e\u30a2\u30e9\u30fc\u30c8\u3092\u5f8c\u304b\u3089\u8ffd\u52a0\u3059\u308b\u306e\u306f\u3001\u601d\u3063\u3066\u3044\u308b\u3088\u308a\u9762\u5012\u3060\u3063\u305f\u3002<\/p>\n<p><!-- Reviewed: 2026-03-09 | Status: ready_to_publish | Changes: fixed Kafka ZooKeeper version claim (v4.0 not v3.7), updated meta_description wording, added personal aside on Redpanda doc rationale, smoothed event sourcing section opener, tightened benefits\/drawbacks flow, removed redundant sub-headers in final section --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3046\u3061\u306e\u30c1\u30fc\u30e0\u306f2024\u5e74\u672b\u307e\u3067\u30018\u3064\u306e\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3092REST\u3067\u7e4b\u3044\u3067\u3044\u305f\u30025\u4eba\u30c1\u30fc\u30e0\u30011\u65e5\u3042\u305f\u308a\u7d0430\u4e07\u30ea\u30af\u30a8\u30b9\u30c8\u3002\u898f\u6a21\u3068\u3057\u3066\u306f\u300c\u307e\u3042\u4e2d\u5c0f\u898f\u6a21\u300d\u3068\u3044\u3046\u611f\u3058\u3067\u3001\u5f53\u6642\u306f\u3053\u308c\u3067\u5341\u5206\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u3002 \u601d\u3063\u3066\u3044\u305f\u3001\u304c\u6b63\u3057\u304b\u3063\u305f\u3002\u3057\u3070\u3089\u304f\u306f\u3002 \u91d1\u66dc\u306e\u5348\u5f8c4\u6642\u30014\u6bb5\u306eREST\u547c\u3073\u51fa\u3057\u30c1\u30a7\u30fc\u30f3\u304c94\u79d2\u3067\u5d29\u58ca\u3057\u305f \u91d1\u66dc\u306e\u5348<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":1,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/191\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}