-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated readme and instructions for testing with kafka
- Loading branch information
1 parent
1d852f2
commit 3f7130c
Showing
2 changed files
with
43 additions
and
8 deletions.
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,26 @@ | ||
## Project setup | ||
Install the confluent kafka on your machine. This is the most easiest way as it comes packaged with all services like schema registry, connector. | ||
|
||
[Installation instructions](https://docs.confluent.io/platform/current/installation/installing_cp/zip-tar.html){:target="_blank"} | ||
|
||
``` | ||
confluent local services start | ||
``` | ||
|
||
- Run the `ProducerDemo.java` | ||
|
||
- Run the `ConsumerDemo.java` | ||
|
||
Please take a look the output. | ||
|
||
``` | ||
confluent local services stop | ||
``` | ||
|
||
## Things to Observe: | ||
|
||
- The producer uses the java classes generated from the avdl files. | ||
- The consumer actually decrypts the data it reads from the topic. | ||
- If you use the kafka consumer cli you will see encrypted data. | ||
- The custom logical types along with conversions defined make this happen. The only way to decrypt is by reading the data by using java classes generated. | ||
- If the message on the topic is intercepted, it cannot be decrypted. |