-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ergonomics of creating GrpcReadJournal, #703 #705
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one suggestion
@@ -108,7 +105,7 @@ public static void init(ActorSystem<?> system) { | |||
int numberOfProjectionInstances = 4; | |||
String projectionName = "cart-events"; | |||
List<Pair<Integer, Integer>> sliceRanges = Persistence.get(system).getSliceRanges(numberOfProjectionInstances); | |||
String streamId = "cart"; | |||
String streamId = system.settings().config().getString("akka.projection.grpc.consumer.stream-id"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make the streamId
a public field on GrpcReadJournal, so that even if it needs to be passed to the source provider at least this isn't needed and you know it's the same used for the journal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Det låter som en bra ide. Så parametern till SourceProvider blir eventsBySlicesQuery.streamId
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol 🇸🇪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄 added in d581fc1
* builder style is used also for grpc client settings
f822aa7
to
d581fc1
Compare
Draft because on top of other PR, but otherwise ready for review.
Refs #703