-
Notifications
You must be signed in to change notification settings - Fork 805
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
wire replicator transmission to domain APIs #590
Conversation
612e1a6
to
69c846f
Compare
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.
You can land this PR after addressing my minor comments.
service/frontend/handler.go
Outdated
@@ -117,6 +124,8 @@ func NewWorkflowHandler( | |||
hSerializerFactory: persistence.NewHistorySerializerFactory(), | |||
domainCache: cache.NewDomainCache(metadataMgr, sVice.GetLogger()), | |||
rateLimiter: common.NewTokenBucket(config.RPS, common.NewRealTimeSource()), | |||
kafkaProducer: kafkaProducer, |
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.
Let's not use any Kafka naming at this layer.
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.
reduced to just the domainReplicator dependency
// handleDomainReplicationTask handle the domain replication task | ||
func (domainReplicator *domainReplicatorImpl) HandleReceiveTask(task *replicator.DomainTaskAttributes) error { | ||
// HandleTransmissionTask handle transmission of the domain replication task | ||
func (domainReplicator *domainReplicatorImpl) HandleTransmissionTask(kafka messaging.Producer, domainOperation replicator.DomainOperation, |
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.
Let's move this logic into a separate component which lives within frontend.
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.
done
1095015
to
63125f3
Compare
63125f3
to
0e1d962
Compare
solve #569