![publish with kafka tool publish with kafka tool](https://kafka.apache.org/images/consumer-groups.png)
Please note that the name of the template functions are case sensitive.
![publish with kafka tool publish with kafka tool](https://www.cloudkarafka.com/img/blog/kafka-broker-beginner.png)
Sentence(5): "Quia quae repellat consequatur quidem." Generates a random sentence with the given number of words. Generates a random formatted phone number. Generates a random credit card number string that passes luhn test. Generates a random credit card number int that passes luhn test. Generates a random credit card number string. Generates a random credit card expierety date.
![publish with kafka tool publish with kafka tool](https://www.baeldung.com/wp-content/uploads/2021/04/Screenshot-2021-04-11-at-5.29.01-AM.png)
Pick(1,Go,true) may choose "true", "Go" or "1" Randomly chooses the string representation of an item from the list. This function is useful to choose an item from numeric values. Generates a random timezone abbreviation. Generates a random browser user agent string. Generates a random currency abbreviation.
Publish with kafka tool code#
Generates the hex code of a random colour. Generates a random Universal Unique Identifier (UUID) Generates a random US state abbreviation. Generates the base64 encoded value of its input. See the Timestamp explanation above for more details. Both parameters must be enclosed by single quotes if provided. The layout must follow the Go's time formatting standard (default RFC3339) and the Timezone can be either a standard IANA value or a UTC offset in UTC±hh:mm format. These brokers are managed by another tool called. You can benefit from multiple features such as data replication, fault tolerance, and high availability with brokers. Generates the string representation of an floating point number between from and to. Kafka can also be configured to work in a cluster of one or more servers. Generates a floating point number between from and to with the optional limit for decimal places. Generates the string representation of a random floating point number by replacing each # with a random digit. Generates a random floating point number by replacing each # with a random digit. Generates the string representation of an integer between from and to. Generates an integer between from and to. Generates the string representation of an integer by replacing each # with a random digit. Generates a random integer by replacing each # with a random digit. Generates a random string by replacing each ? with a random letter. Here is a list of the template functions currently supported by Trubka: Function(s) Once again, remember to provide the same -g flag to the produce command to enable template parsing, otherwise you will be publishing raw templates to Kafka. For publishing events from the DB to Kafka, instead of building a producer service, an option is to use CDC (Change Data Capture) tools like Debezium but it depends on whether your cloud service. $ > cat EntityDefined.json | trubka -b produce proto contracts.EntityDefined -g -c 100 -proto-root /protocol_buffers_dir