@itentialopensource/adapter-kafkav2 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.6.4 [05-19-2023]
3
+
4
+ * added support for separate topics files per adapter
5
+
6
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!5
7
+
8
+ ---
9
+
2
10
  ## 0.6.3 [05-19-2023]
3
11
 
4
12
  * added support for separate topics files per adapter
package/README.md CHANGED
@@ -212,6 +212,31 @@ Example of adapter's configuration with multiple paritions and subscribers per t
212
212
  ```
213
213
  Note that if no parition is supplied only messages on partition 0 will be consumed. Additionally, if no rabbit topic is supplied, events will be published to a topic with the same name as the Kafka topic. For example, topic `test-6` above will be published to the `test-6` rabbit topic.
214
214
 
215
+ Example of adapter configuration to pass partitions array for one subscriber:
216
+
217
+ Note that you can pass multiple partitions to be consumed under the same subscriber. See example below -
218
+
219
+ ```json
220
+ "topics": [
221
+ {
222
+ "name": "test_topic",
223
+ "always": true,
224
+ "partitions": [
225
+ 1,
226
+ 2
227
+ ],
228
+ "subscriberInfo": [
229
+ {
230
+ "subname": "default",
231
+ "filters": [],
232
+ "rabbit": "test_topic",
233
+ "throttle": {}
234
+ }
235
+ ]
236
+ }
237
+ ]
238
+ ```
239
+
215
240
  ### Connection Properties
216
241
 
217
242
  These base properties are used to connect to Kafka upon the adapter initially coming up. It is important to set these properties appropriately.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.35.0",
Binary file