Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RailsEventStore使ってみた

n.kakuta
August 27, 2020

 RailsEventStore使ってみた

サンプルアプリのgithubはこちらです
https://github.com/naoki-k/book-rental

n.kakuta

August 27, 2020
Tweet

Other Decks in Programming

Transcript

  1. Event Sourcing と State Sourcing State Sourcing (一般的なアプリケーション) → 状態を管理する

    Event Sourcing → 過程を管理する example: git 通帳番号 残金 1110001 10,000 通帳番号 日付 取引内容 支払い金額 預かり金額 1110001 1/1 預金 20,000 1110001 1/4 クレジットカード 5,000 1110001 1/5 クレジットカード 5,000 → 残高10,000(状態)
  2. 参考文献 ・From CRUD to CQRS  https://medium.com/@antonnalivayko1/from-crud-to-cqrs-part1-cqrs-cbeac0350043 ・CQRS and Event Sourcing

    for the IoT  http://sensetecnic.com/cqrs-and-event-sourcing-for-the-iot/ ・RailsEventStore Docs https://railseventstore.org/ ・Introduction to event sourcing in Ruby on Rails https://assist-software.net/blog/introduction-event-sourcing-ruby-rails