Hacker News new | ask | show | jobs
by sithlord 1328 days ago
I'm a fan of fat events, and let the receiver decide if they want to trust the event or not, or go ahead and make a call to the service to get the data.

for example:

if one receiver wants to know if you have read a book, then there is no reason to make a call to the service.

but if a service wants to know the last book you read, and doesn't trust the events to be in order, then it would make sense to just call the service.

1 comments

> if a service wants to know the last book you read, and doesn't trust the events to be in order, then it would make sense to just call the service.

It would make more sense to me if the events had an increasing sequence number, version number or accurate timestamp, so that if I record that "'sithlord' last read 'The Godfather' at event '123456'" I can record that, and ignore any event related to "sithlord last read" with event < 123456.

This is not a new problem, there are existing solutions to it.