Add regions to kafka - #2417
Open
Goyo (korgan00) wants to merge 13 commits into
Open
Conversation
Goyo (korgan00)
marked this pull request as ready for review
August 31, 2026 10:45
Co-authored-by: Ismael Rozas <80251943+ismaelRozasRamallal@users.noreply.github.com>
Resolves conflict in test_event_streams_client.py by combining both: - Multi-region tests from kafka-regions branch - test_filler_job_publishes_nothing from main
Goyo (korgan00)
enabled auto-merge
September 3, 2026 09:37
Goyo (korgan00)
force-pushed
the
kafka-regions
branch
from
September 9, 2026 14:59
9ae3593 to
b28bd48
Compare
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multi-Region Event Streams Routing
Summary
Implement region-aware event publishing for Qiskit Functions. The service is global but usage events must be published to regional Kafka buses. This change makes
KafkaEventStreamsClienthold multiple regional producers and route each job's usage events to the correct bus based on the region encoded in the job's instance CRN.Details and comments
Core
kafka_event_streams_client.py: Changed from single producer to registry of regional producers. Auto-discovers regions fromEVENT_STREAMS_BOOTSTRAP_SERVERS_<REGION>env vars. Routes events by extracting region from CRN (6th colon-delimited segment).Tests (9 new cases)
EVENT_STREAMS_DEFAULT_REGIONrespectedEnvironment:
Checklist