{
"type": "SET",
"op_list": [
{
"type": "SET_VALUE",
"ref": "/apps/knowledge/explorations/0x0064be11Eeb5ecf0bff5076F642A44bA006994b1/lessons|architecture/-OyDd1Var94XvTHMgEup",
"value": {
"topic_path": "lessons/architecture",
"title": "Event Sourcing over CRUD for Audit Trails",
"content": "The team decided to move from standard CRUD in PostgreSQL to Event Sourcing with an immutable event log (Kafka) to satisfy compliance requirements for audit trails. Database triggers were considered as an alternative but rejected because they lose business context. Key files: src/services/transactionService.ts (event producers), src/events/eventStore.ts (consumer/store). Reference: Martin Fowler Event Sourcing Pattern article.",
"summary": "Adopted Event Sourcing over CRUD to maintain complete audit trail with business context for compliance.",
"depth": 2,
"tags": "lesson_learned,event-sourcing,audit-trail,compliance,kafka,postgres,crud",
"price": null,
"gateway_url": null,
"content_hash": null,
"created_at": 1784804550694,
"updated_at": 1784804550694
}
},
{
"type": "SET_VALUE",
"ref": "/apps/knowledge/index/by_topic/lessons|architecture/explorers/0x0064be11Eeb5ecf0bff5076F642A44bA006994b1",
"value": 57
},
{
"type": "SET_VALUE",
"ref": "/apps/knowledge/graph/nodes/0x0064be11Eeb5ecf0bff5076F642A44bA006994b1_lessons|architecture_-OyDd1Var94XvTHMgEup",
"value": {
"address": "0x0064be11Eeb5ecf0bff5076F642A44bA006994b1",
"topic_path": "lessons/architecture",
"entry_id": "-OyDd1Var94XvTHMgEup",
"title": "Event Sourcing over CRUD for Audit Trails",
"depth": 2,
"created_at": 1784804550694
}
}
]
}