What is the best way to find an event in an event sourcing? This was a question I had for an architect role recently. I said by event ID, but apparently the answer was wrong. Does anyone knows what is the best way or the most efficient way?
I don't think the interviewer was looking for a straight answer, but more on the analysis process involved executing such an operation. I believe he was expecting back some questions, like:
Depending on the responses you get back, the discussion would evolve into classical search approaches, like indexing, or binary search, or other options that would reduce the search surface.