GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Introduce pulsar replicator · Issue #1582 · apache/pulsar

Introduce pulsar replicator  #1582

New issue
Copy link
New issue
Copy link
Closed
Closed
Introduce pulsar replicator #1582
Copy link
Assignees
rdhabalia

Description

@rdhabalia
rdhabalia
opened on Apr 15, 2018
Issue body actions

Motivation

Pulsar already supports geo-replication that persists messages across multiple clusters of pulsar instances. Therefore, client can set replication clusters for a topic, and pulsar broker internally takes care of replication to all the clusters. However, sometimes application may want to replicate the same published messages to other external systems which is not part of pulsar-eco system such as AWS-Kinesis, DynamoDB. Therefore, right now, client-application has to take this extra burden to publish same messages for pulsar and other external systems.
Therefore, it will be useful to introduce server side replication that can replicate pulsar messages to external system without client intervention. Also server side replication should be extensible which can provide a plugin mechanism to add various replicators to support message-replication to different external systems.

Requirement

  • Replicate Pulsar message to external system (eg: Kinesis, Kafka, another Pulsar cluster)
  • Easy onboarding: client should be able to add replicator configuration with CLI/Admin api and it should auto start appropriate replicators.
  • Isolation from core message bus
  • Pluggable framework and extensible to support multiple external system
  • New connectors should be developed with minimal efforts
  • Operability and monitoring
    • API to control start and stop individual replicator
    • API to get replicator stats
  • Security
    • Replicator framework should provide pluggable mechanism to plugin KeyStore implementation that can store and fetch client’s credentials which will be required to connect external system.

PIP:
https://github.com/apache/incubator-pulsar/wiki/PIP-18:-Pulsar-Replicator

Activity

  1. rdhabalia
    self-assigned this
    on Apr 15, 2018
  2. rdhabalia commented on Apr 22, 2018

    @rdhabalia
    rdhabalia
    on Apr 22, 2018
    ContributorAuthor
    More actions

    @srkukarni @merlimat
    As per discussion, we want pulsar replicator to use pulsar-connector to replicate messages to external systems. It seems ReplicatorProducer-API in replicator framework is similar as Sink-API so, we will not require any significant change for Sink api and replicator should be using it with small changes in it.
    Right now, Sink API accepts different Message type than pulsar Message which requires replicator to create additional unnecessary object. So, I created PR-#1632 to use Pulsar-message in Sink api.

    Pulsar replicator implementation mainly touches 3 things:

    1. Onboarding api
    2. Replicator function that initializes connectors
    3. pulsar connector that actually publish messages to external system.

    #1594 covers all above functionalities. so, once pulsar-connector PR is merged, I will rebase replicator-PR on top of it and later in separate PR, we can merge replicator and connector in one module.

    Can you please let us know your thoughts.?

  3. OneCricketeer commented on May 31, 2018

    @OneCricketeer
    OneCricketeer
    on May 31, 2018
    More actions

    Not to start a tech fight here or anything, but do you think having such similar naming to Confluent Replicator (aka Kafka Connect) would be an issue for "Pulsar Replicator / Connect"?

    Second point being at least for Kafka, the Connect API is for the interaction points between external systems (such as Dynamo or Kinesis). Confluent Replicator being a closed source version of that API between Kafka Clusters.

  4. merlimat commented on May 31, 2018

    @merlimat
    merlimat
    on May 31, 2018
    Contributor
    More actions

    @Cricket007 The naming here was indeed a bit misleading since this is more around integrating heterogeneous systems with Pulsar.

    Pulsar has always had "replicator" functionalities, in a much more advanced form compared to MirrorMaker or other proprietary solutions (http://pulsar.apache.org/docs/latest/admin/GeoReplication/).

    Geo-replication targets at replication between Pulsar clusters. Because on both sides we have Pulsar brokers that talk native Pulsar protocol, we can achieve a lot of efficiencies.

    Regarding the changes for this PR, the consensus has been to focus the efforts on a single "connector" framework, named "Pulsar-IO" which is scheduled for 2.1 release.

    The work on Pulsar-IO framework address the problem of getting data in & out of Pulsar in the simplest possible way from a user standpoint:

    • No need to write code, just specify the configuration for sources and sinks
    • No need to "run" the connector, the system takes care of managing the connectors runtime

    If you're interested, you can checkout the work in progress: https://github.com/apache/incubator-pulsar/tree/master/pulsar-io . There's also a PR with some in-progress documentation: #1749

    Reacted by Sijie Guo, Mani Gandham and Ali Ahmed
  5. sijie commented on Jun 13, 2018

    @sijie
    sijie
    on Jun 13, 2018
    Member
    More actions

    @rdhabalia what is your status of this task?

  6. sijie
    added
    triage/week-24
    on Jun 13, 2018
  7. rdhabalia commented on Jun 13, 2018

    @rdhabalia
    rdhabalia
    on Jun 13, 2018
    ContributorAuthor
    More actions

    @sijie I think we can close this one as we will be trying out pulsar-io framework here.

  8. rdhabalia
    closed this as completedon Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rdhabalia
    rdhabalia

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.