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

NATS jetstream support #75

Open
tamalsaha opened this issue Oct 22, 2024 · 6 comments
Open

NATS jetstream support #75

tamalsaha opened this issue Oct 22, 2024 · 6 comments

Comments

@tamalsaha
Copy link

Is it possible to publish these changes directly to a NATS jetsream?

@rueian
Copy link
Member

rueian commented Oct 22, 2024

Hi @tamalsaha, Apache Pulsar is currently the only implemented external sink and source.

A new sink and source can be implemented by embedding BaseSink and BaseSource.

type BaseSink struct {
CleanFn CleanFn
cleanOnce sync.Once
committed chan cursor.Checkpoint
state int64
err atomic.Value
}

type BaseSource struct {
ReadTimeout time.Duration
state int64
stopped chan struct{}
err atomic.Value
}

@rueian
Copy link
Member

rueian commented Oct 24, 2024

Hi @tamalsaha, we are considering expanding the support of different messaging systems. Just curious, what makes you want to use NATS?

@tamalsaha
Copy link
Author

We are coming from the cloud native / Kubernetes world. NATs is a very lightweight (compared to Kafka) message queue with its Jetstream feature can be used to implement Outbox pattern. NATs is a top level project for CNCF https://www.cncf.io/projects/nats/ . So, NATs integration will be a very welcome addition for us.

@rueian
Copy link
Member

rueian commented Nov 4, 2024

Just adding an important note here: NATs has a default 8MB message limit. We probably need to enlarge the limit if we store WALs into NATs.

@Imtiaz246
Copy link

Hello @rueian, I’m interested in the progress of adding NATS jetstream as an external sink/source in pgcapture. Could you provide an update on recent developments or anticipated timelines for this feature?

@rueian
Copy link
Member

rueian commented Nov 11, 2024

Hi @Imtiaz24,

Thank you for your interest in the NATS integration but we don't have a timeline right now. We probably would like to have a integration for Kafka first.

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

No branches or pull requests

3 participants