@@ -16,7 +16,7 @@ type = "postgres"
1616dsn = " dbname=test sslmode=disable"
1717
1818# Name of the publication in PostgreSQL created with CREATE PUBLICATION
19- publication = " pub_test "
19+ publication = " pub1 "
2020
2121# Replication slot represents a unique replication client in the database.
2222# PostgreSQL stores the current client WAL positions in the slot (they're updated by the status messages)
@@ -62,7 +62,7 @@ type = "kafka"
6262hosts = [ " kafka1:9092" , " kafka2:9092" , " kafka3:9092" ]
6363
6464# List of Kafka topics to fetch events from
65- topics = [ " dbItemChanges " , " dbAccountChanges " ]
65+ topics = [ " topic1 " , " topic2 " ]
6666
6767# When running several instances with the same groupID on the same Kafka cluster/topic then
6868# the events will be distributed evenly between consumers
@@ -91,20 +91,17 @@ sources = [ "kafka1" ]
9191# List of kafka brokers in host:port form
9292hosts = [ " kafka1:9092" , " kafka2:9092" , " kafka3:9092" ]
9393
94- # A list of handlers to enable (items|passthrough)
95- handlers = [ " items " ]
94+ # A list of handlers to enable
95+ handlers = [ " passthrough " ]
9696
9797# Mapping between table name of event and Kafka topic
98- tableTopicMapping = { action_states = " dbItemChanges " , account_actions = " dbAccountChanges " }
98+ tableTopicMapping = { table1 = " topic1 " , table2 = " topic2 " }
9999
100100# This specifies the topic where the messages for which the mapping wasn't found will go.
101101# If it's empty or undefined then they will be discarded.
102102# At least one of tableTopicMapping or fallbackTopic should be specified.
103103topicFallback = " garbageBin"
104104
105- # Domain API grpc endpoint (required for *items* handler)
106- domain = " qa2-grpc:10000"
107-
108105# Timeout for Kafka message sending
109106timeout = " 2s"
110107
@@ -124,7 +121,7 @@ requiredAcks = -1
124121# and we'll report success to the source as if the message was sent successfully.
125122async = false
126123
127- # Number of messages to buffer in Kafka before sending
124+ # Number of messages to buffer before sending to Kafka
128125batchSize = 100
129126
130127# How frequently to flush the queue if batchSize is not yet exceeded.
0 commit comments