Standardize the config for the modules.

18 views
Skip to first unread message

javadevmtl

unread,
Oct 18, 2017, 3:01:50 PM10/18/17
to vert.x
Hi, for instance JDBC you can pass in json config, but for Kafka you can only use a map or properties.

So we have to read the json object and then convert it to a Map<String, String>.

Julien Viet

unread,
Oct 18, 2017, 5:46:25 PM10/18/17
to vert.x
Hi,

Kafka's configuration has been purposely following the same pattern than Kafka producer/consumer offers because we assume most people using Kafka are familiar with it.

In addition these properties object can also contain non json content like a Class serializer or deserializer.

Julien

On 18 Oct 2017, at 21:01, javadevmtl <java.d...@gmail.com> wrote:

Hi, for instance JDBC you can pass in json config, but for Kafka you can only use a map or properties.

So we have to read the json object and then convert it to a Map<String, String>.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9c7568ed-d4cd-400a-b264-7225ed8df819%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages