Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eccenca/cmem-plugin-kafka

This eccenca Corporate Memory plugin allows for sending and receiving messages from Apache Kafka.
https://github.com/eccenca/cmem-plugin-kafka

corporate-memory eccenca kafka kafka-consumer kafka-producer plugin

Last synced: about 1 month ago
JSON representation

This eccenca Corporate Memory plugin allows for sending and receiving messages from Apache Kafka.

Awesome Lists containing this project

README

        

# cmem-plugin-kafka

Send and receive messages from Apache Kafka.

This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com).

You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line
clients like this:

```
cmemc admin workspace python install cmem-plugin-kafka
```

## Plugin supported message format

### XML dataset format

An example XML document is shown below. This document will be sent as two messages
to the configured topic. Each message is created as a proper XML document.

```xml




string
string
string
string
9200


string
string
string
string
2381





.
.
.

```
Producer plugin generates 2 messages with below content
```xml


string
string
string
string
9200


string
string
string
string
2381

```
```xml

.
.
.

```
### JSON Dataset format

An example JSON document is shown below. This document will be sent as two messages
to the configured topic. Each message is created as a proper JSON document.

```json
[
{
"message": {
"key": "818432-942813-832642-453478",
"headers": {
"type": "ADD"
},
"content": {
"location": [
"Leipzig"
],
"obstacle": {
"name": "Iron Bars",
"order": "1"
}
}
}
},
{
"message": {
"key": "887428-119918-570674-866526",
"headers": {
"type": "REMOVE"
},
"content": {
"comments": "We can pass any json payload here."
}
}
}
]
```
Producer plugin generates 2 messages with below content
```json
{
"location": [
"Leipzig"
],
"obstacle": {
"name": "Iron Bars",
"order": "1"
}
}
```
```json
{
"comments": "We can pass any json payload here."
}
```
### Entities format

Random values plugin entities will generate below format JSON document.

```json
{
"schema": {
"type_uri": "https://example.org/vocab/RandomValueRow"
},
"entity": {
"uri": "urn:uuid:3c68d8e7-bf17-4045-a9eb-c9c9813f717f",
"values": {
"": [
"a8o4Ocsb6RZClFRUZU3b2w"
],
"": [
"RTICRU7JcTUVn94decelPg"
],
"": [
"A9r-969NjAlX0DNWftxKoA"
],
"": [
"FygWRy1UJ4-IzIim1qukJA"
],
"": [
"AJcbn-LJEs-Dif96xu2eww"
]
}
}
}
```