You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/intersect_sdk_common/config.py
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,21 @@ class ControlPlaneConfig:
122
122
NOTE: INTERSECT currently only supports AMQP and MQTT.
123
123
"""
124
124
125
+
# TODO default this to False once the registry service is in place
126
+
is_root: bool=True
127
+
"""
128
+
Whether or not the broker credentials are for connecting as a root user.
129
+
130
+
This should be True IF:
131
+
- You are a Core Service
132
+
- You are an SDK Client or Service, but your message broker is hosted locally.
133
+
134
+
This should be False IF:
135
+
- You are an SDK Client or Service, and the broker you're connected to is remote.
136
+
137
+
This is important for specific implementations; the Registry Service configures queues for microservices, but Core Services configure their own queues themselves.
topics_to_handlers: callback function which gets the topic to handler map from the channel manager
109
+
is_root: Whether or not the client can configure exchanges and queues themselves (core services), or if this must be delegated to a Core Service (SDK Clients/Services)
"""Start listening for messages on a channel on all configured brokers.
70
69
@@ -79,14 +78,17 @@ def add_subscription_channel(
79
78
callbacks: functions to call on subscribing to a message
80
79
persist: if True, expect the associated message queue to live long; if False, it will only live the duration of the application.
81
80
Any queue associated with a Service should always set this to True. Clients will need to subscribe to their own, temporary queues, and should set this to False.
81
+
queue_name: the name of the queue to subscribe to. This is generally hardcoded for Core Services, but autogenerated for SDK Services and Clients.
0 commit comments