Unresolved include directive in modules/ROOT/pages/_attributes.adoc - include::../_attributes.adoc[]
Configuring the Salesforce PubSub API Source Connector
Overview
The Salesforce PubSub API Source Connector configuration options can be divided into the following groups.
-
Authentication
The settings to authenticate against the Salesforce instance and connect to the Pub/Sub API. -
Topic Routing and Replay
Settings to define which Salesforce topics to subscribe to and how to map them to Kafka topics. -
Performance Tuning
Settings to control internal buffers, batch sizes, and polling timeouts to tune throughput and latency. -
Connection Reliability (gRPC)
Low-level gRPC settings to manage connection liveliness and timeouts. -
Advanced Configuration
Advanced settings for schema caching and connection validation.
Authentication
These settings are required to establish a secure connection to Salesforce using OAuth 2.0 and to locate the correct Pub/Sub endpoint.
| Key | Type | Mandatory | Default | Description |
|---|---|---|---|---|
|
String |
Yes |
- |
The Salesforce OAuth Client ID (also known as the Connected App Consumer Key). |
|
Password |
Yes |
- |
The Salesforce OAuth Client Secret (also known as the Connected App Consumer Secret). |
|
String |
Yes |
- |
The Salesforce Instance URL (e.g., |
|
String |
Yes |
- |
The Salesforce Organization ID (Tenant ID). This ID typically starts with |
|
String |
No |
api.pubsub.salesforce.com:7443 |
The Salesforce Pub/Sub API gRPC Endpoint in |
Topic Routing and Replay
These settings determine which data is ingested from Salesforce, how the Kafka topic names are generated, and where to start reading the stream.
| Key | Type | Mandatory | Default | Description |
|---|---|---|---|---|
|
List |
Yes |
- |
A comma-separated list of Salesforce topics to subscribe to. |
|
String |
Yes |
- |
The prefix to use for the destination Kafka topic names. |
|
String |
No |
EARLIEST |
The starting position for new subscriptions (when no stored offset exists). |
Performance Tuning
These settings allow you to tune the internal behavior of the connector to balance memory usage, latency, and throughput.
| Key | Type | Mandatory | Default | Description |
|---|---|---|---|---|
|
Integer |
No |
100 |
The maximum number of records to return per poll() call. |
|
Integer |
No |
1000 |
The maximum number of events to buffer in memory before pausing the gRPC consumer. |
|
Long |
No |
1000 |
The maximum time in milliseconds to wait for events during a poll() operation. |
Connection Reliability (gRPC)
These settings control the underlying gRPC channel behavior, specifically regarding keep-alive pings to prevent firewalls or load balancers from dropping idle connections.
| Key | Type | Mandatory | Default | Description |
|---|---|---|---|---|
|
Integer |
No |
30 |
The time interval in seconds between keep-alive pings sent to the server. |
|
Integer |
No |
10 |
The time in seconds to wait for a keep-alive ping response before considering the connection dead. |
|
Integer |
No |
5 |
The time in seconds to wait for a graceful channel shutdown before forcing termination. |
Advanced Configuration
| Key | Type | Mandatory | Default | Description |
|---|---|---|---|---|
|
Integer |
No |
100 |
The maximum number of Avro schemas to cache in memory. |
|
Boolean |
No |
true |
Whether to validate Salesforce connectivity during the connector configuration phase. |