-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../kafka-avro-consumer.md |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Consume Avro Serialized Data from a Kafka Topic | ||
|
||
## Introduction | ||
|
||
This guide demonstrates how to consume data in the correct format according to Avro schema from a Kafka topic. | ||
|
||
### Configuration | ||
|
||
Configure the followings in Config.toml in the example directory. | ||
|
||
```toml | ||
baseUrl = <BASE_URL> | ||
identityMapCapacity = <SCHEMA_MAP_CAPACITY> | ||
subject = <SCHEMA_REGISTRY_TOPIC> | ||
|
||
[originals] | ||
"schema.registry.url" = <SCHEMA_REGISTRY_ENDPOINT_URL> | ||
"basic.auth.credentials.source" = "USER_INFO" | ||
"bootstrap.servers" = "<SERVER>:<PORT>" | ||
"schema.registry.basic.auth.user.info" = "<KEY>:<SECRET>" | ||
|
||
[headers] | ||
``` | ||
|
||
## Run the example | ||
|
||
Execute the following command to run the example. | ||
|
||
```ballerina | ||
bal run | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../kafka-avro-producer.md |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Publish Avro Serialized Data to a Kafka Topic | ||
|
||
## Introduction | ||
|
||
This guide demonstrates how to publish Avro serialized data to a Kafka topic. | ||
|
||
### Configuration | ||
|
||
Configure the followings in Config.toml in the example directory. | ||
|
||
```toml | ||
baseUrl = <BASE_URL> | ||
identityMapCapacity = <SCHEMA_MAP_CAPACITY> | ||
subject = <SCHEMA_REGISTRY_TOPIC> | ||
|
||
[originals] | ||
"schema.registry.url" = <SCHEMA_REGISTRY_ENDPOINT_URL> | ||
"basic.auth.credentials.source" = "USER_INFO" | ||
"bootstrap.servers" = "<SERVER>:<PORT>" | ||
"schema.registry.basic.auth.user.info" = "<KEY>:<SECRET>" | ||
|
||
[headers] | ||
``` | ||
|
||
## Run the example | ||
|
||
Execute the following command to run the example. | ||
|
||
```ballerina | ||
bal run | ||
``` |