Event Sourcing Pattern

เรียกว่าจดไว้กันลืม และกัน หัวข้อจะประมาณนี้ ก่อนจะมารู้จัก Event Sourcing Pattern แบบเดิมทำอย่างไร เห็นไหมครับว่า ทั้ง OLTP และ OLTP มี Concept ที่ต่างกันไป Event Sourcing อยู่ตรงไหน Fcommand(state, payload) => [New State / events]; Event Sourcing ensures that all changes to application state are stored as a sequence of events. Ref: Event Sourcing (martinfowler.com) เอาอะไรมาเก็บ Event Store มี Open Source หลายตัวที่เก็บได้ อาทิ เช่น Update พี่ปุ๋ย Somkiat.cc มีมาเสริมนะ ถ้าไม่ซับซ้อนมากสามารถใช้ File System ได้นะ Use-Case Example – Blockchain – Microservice เอาแนวคิดของ Event Sourcing + CQRS เอา Event Sourcing ต้องดูอะไร เพิ่มไหม ? อีก Blog ที่แนะนำ Lightweight implementation of Event Sourcing using PostgreSQL as an event store 🚀🕗🔙🕘 – DEV Community มองการทำงานแบบ Event…