-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add initial nats source connector #2
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.
Looks simple and clean in the code, some minor loose ends in the CI, and we (infinyon) would need to hook up a cloud publish workflow if we want to this in the hub.
async fn start(config: NatsConfig, producer: TopicProducer) -> Result<()> { | ||
debug!(?config); | ||
let source = NatsSource::new(&config)?; | ||
let mut stream = source.connect(None).await?; |
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.
Depending on the long run behavior of Nats/fluvio, it may be interesting to have a larger loop around the connect .. next to implement a longer term re-connect strategy
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.
Yeah we just crashed the connector and there wasn't really good feedback loop to cluster to handle failing connectors.. it would be good to have some kind of strategy e.g. also observability of these failures
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.
Overall it looks good, just need to remove a couple of unused pieces.
cloud_e2e_test: | ||
bats ./tests/cloud-consumes-data-from-nats.bats | ||
|
||
test_fluvio_install: |
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.
What is this for?
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.
It's in every connector like that - https://github.com/infinyon/http-source-connector/blob/main/Makefile#L19
Should this be removed ?
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.
Ideally, yes, because it makes no sense to keep it here.
I will remove it from http-source when I have a chance.
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
Needs to be added:
Can be added later: