We are planning to create read side using persistent projections (v220.127.116.11).
I am trying to create persistent subscription to all events using “$all” stream, and getting error
Subscription group testGroup1 on stream $all failed 'Bad stream name.’ with following code:
var connection = EventStoreConnection.Create(new Uri("tcp://admin:changeit@localhost:1113"), "testingsubscriptions"); await connection.ConnectAsync(); var settings = PersistentSubscriptionSettings.Create() .StartFromBeginning() .WithMessageTimeoutOf(TimeSpan.FromMinutes(2)) .WithMaxRetriesOf(3) .Build(); await connection.CreatePersistentSubscriptionAsync("$all", "testGroup1", settings, new UserCredentials("admin", "changeit"));
The same issue happens while trying to create a persistent subscription using admin web GUI.
My assumption is that “$all” is not actually a stream or not a stream we could subscribe to, if that is the case I have a question. Can we subscribe (with persistent subscriptions) to all events in another way? If not, would that mean that subscriptions are possible only to continuous projections and single streams?