It's not really said, that user ID is an int (although it looks like that from the given examples). Should I accept string of any characters except of "|" (event field separator) instead?
What if an event with specific sequence number is missing? Should we move on? And if so, should this information be exposed somehow? (In that case user connection graph is potentially broken.)