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

add second (and legacy) kafka consumer if env vars for it differ #30

Merged
merged 5 commits into from
Sep 7, 2021

Conversation

gedge
Copy link
Contributor

@gedge gedge commented Sep 6, 2021

What

(currently feature-flagged off in secrets)
add a second kafka consumer where secrets determine a second (differing) kafka server address
add TLS to kafka consumer, if requested

How to review

test with features off

Who can review

!gedge

README.md Outdated
| KAFKA_LEGACY_VERSION | `1.0.2` | The version of Kafka - non-TLS
| KAFKA_ADDR | `localhost:9092` | The addresses of the kafka brokers (CSV)
| KAFKA_VERSION | `1.0.2` | The version of Kafka
| KAFKA_SEC_PROTO | _unset_ | if set to `TLS`, kafka connections will use TLS [1]
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe link [1] to notes bullet point 1 - not necessarily obvious why this is here unless you review PR or look at code changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this any better?

Copy link
Contributor

@justinpjose justinpjose Sep 6, 2021

Choose a reason for hiding this comment

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

You can use this as a reference (ONSdigital/dp-dimension-search-api#89). This was reviewed by Nathan and approved

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks Justin - yes I was thinking of the same changes made here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my markdown linter complains about inline-HTML for your method, so I prefer my method 😛
(frankly, I think if people don't understand the original footnote syntax, then 🤷 but here we are...)

@gedge gedge merged commit 116741b into develop Sep 7, 2021
@gedge gedge deleted the feature/kafka-msk-ready branch September 7, 2021 14:41
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.

None yet

3 participants