Skip to content
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

Merged
merged 2 commits into from
Mar 2, 2018
Merged

Conversation

wxing1292
Copy link
Contributor

solve #569

@wxing1292 wxing1292 requested a review from samarabbas March 2, 2018 00:40
@wxing1292 wxing1292 force-pushed the replicate-domain-done branch from 612e1a6 to 69c846f Compare March 2, 2018 00:42
@coveralls
Copy link

coveralls commented Mar 2, 2018

Coverage Status

Coverage decreased (-0.03%) to 67.345% when pulling 0e1d962 on replicate-domain-done into 7d658c9 on master.

Copy link
Contributor

@samarabbas samarabbas left a 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.

@@ -117,6 +124,8 @@ func NewWorkflowHandler(
hSerializerFactory: persistence.NewHistorySerializerFactory(),
domainCache: cache.NewDomainCache(metadataMgr, sVice.GetLogger()),
rateLimiter: common.NewTokenBucket(config.RPS, common.NewRealTimeSource()),
kafkaProducer: kafkaProducer,
Copy link
Contributor

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.

Copy link
Contributor Author

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,
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wxing1292 wxing1292 force-pushed the replicate-domain-done branch from 1095015 to 63125f3 Compare March 2, 2018 01:22
@wxing1292 wxing1292 force-pushed the replicate-domain-done branch from 63125f3 to 0e1d962 Compare March 2, 2018 01:23
@wxing1292 wxing1292 merged commit 5c6cb08 into master Mar 2, 2018
@wxing1292 wxing1292 deleted the replicate-domain-done branch March 2, 2018 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants