-
Notifications
You must be signed in to change notification settings - Fork 1.8k
storeEvent in EventStore Receives Hardcoded streamId #1004
Copy link
Copy link
Open
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't workingfix proposedBot has a verified fix diff in the commentBot has a verified fix diff in the commentquestionFurther information is requestedFurther information is requestedready for workEnough information for someone to start working onEnough information for someone to start working on
Metadata
Metadata
Assignees
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't workingfix proposedBot has a verified fix diff in the commentBot has a verified fix diff in the commentquestionFurther information is requestedFurther information is requestedready for workEnough information for someone to start working onEnough information for someone to start working on
Describe the bug
I'm writing an EventStore using Redis. There can be several users, whose data must be seperate. But since
streamIdis sometimes hardcoded as_GET_stream, I can't distinguish the users instoreEvent. If I do something like the one in InMemoryEventStore, I think all users will be able to read the same stream (_GET_stream)To Reproduce
Steps to reproduce the behavior:
storeEventmethod ofInMemoryEventStoresrc/examples/server/simpleStreamableHttp.tssrc/examples/client/simpleStreamableHttp.tsmulti-greet heystreamIdis_GET_streamin each one. Yes,eventIdmakes it possible to differenciate them. InreplayEventsAfter, these events are sorted and returned after thelastEventId. But now imagine that this is in production andthis.eventsis a list or stream on Redis. All users get the samestreamIdinstoreEvent. There is no way to differentiate their streams.Expected behavior
There should be a way to differentiate users in
storeEvent, instead of getting the samestreamId.