Vitor Pamplona on Nostr: The best solution is Event Sourcing: don't make a replaceable state, but a list of ...
The best solution is Event Sourcing: don't make a replaceable state, but a list of add and remove events.
Published at
2023-02-06 15:24:54Event JSON
{
"id": "4d3b0619204d37541e248d7047fb63e1a1448f87dfdd4f154457d36019b18431",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1675697094,
"kind": 1,
"tags": [
[
"e",
"dcc4131407a244910b9d7a2f8210c1a912a373741366d9843a94adbca5bc7f17",
"",
"root"
],
[
"e",
"be9b1abfeab651732088c2e9e861cf11166630d3f588e12cdc664f329ea81d3e",
"",
"reply"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"52f6c80b23a0807eb502c91de2faccb820c6fcf33f64c804f0e035bfd1cb19f5"
],
[
"p",
"cbbc79530ca7d31cc2252ca1d2130670510fad313aff5d4ea56c340b2dcfba11"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "The best solution is Event Sourcing: don't make a replaceable state, but a list of add and remove events.",
"sig": "a6006b0daf8964d340c16ee589ad5e69eb6c6e649eeabcc076690a29b5d2da4fc2cd6026ffbd9ee0dd7fdd5b6a08d9025fb6a42ae0ae0af70e9cb758826280ac"
}