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

DM-23761: Add support for Kafka (SQuaRE Events) #5

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

jonathansick
Copy link
Member

  • Create SSL context for Kafka brokers
  • Create a Producer

Note that this needs to be revised once kafkit 0.2 is released.
It creates the SSL context needed to connect to an SSL-secured
Strimzi-based Kafka cluster. Most logic is implemented in kafkit.ssl,
this helper just adds conventions around configuration of certificate
paths and storage of the SSLContext in the app.
This code, originally from sqrbot-jr, sets up an AIOKafkaProducer in a
cleanup context. It integrates the kafka_ssl_context work.
This is for the case of letting app initialization run even if a
producer hasn't been configured. In this scenario, the app would need to
explicitly test that safkir/kafka_producer is not None whenever it is
being tested.
This is not required, and the concatenate_certificates function is no
longer provided by kafkit.ssl.
This initializer sets up a Confluent Schema Registry RegistryApi client
and a RecordNameSchemaManager that registers schemas and makes a
serializer available to the app.
The rst-linter is specifically used to ensure that the README and
CHANGELOG are using plain reStructuredText which is compatible with
pypi's reStructuredText parser.
This ensures that apps are being built with the newer version of
aiokafka that resolves the UnknownMemberId consumer bug.
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.

1 participant