JasperFx / marten

.NET Transactional Document DB and Event Store on PostgreSQL
https://martendb.io
MIT License
2.75k stars 429 forks source link

Support event subscriptions when using strings as stream ID #3240

Closed joedyndale closed 1 month ago

joedyndale commented 1 month ago

Marten doesn't currently support event subscriptions when using strings as stream IDs. It results in an exception with the message "This Marten event store is configured to identify streams with strings" and deadlettered events.

So two things:

  1. The documentation for the current version should call out this fact.
  2. Why is this the case? Are there some extra complications when using strings as stream IDs?
joedyndale commented 1 month ago

Never mind. Of course it was me that just did it wrong :P Needed to use StreamKey instead of StreamId when fetching by string value.