Apache Kafka

trigger_kafka · trigger · Triggers · Available · v1.0.0

Description

Run the workflow whenever a message arrives on an Apache Kafka topic. The runtime opens a consumer with a consumer group and offset commit: ideal for high-throughput event-driven pipelines where several services publish events to a distributed log. Consumer groups scale consumption horizontally across partitions; at-least-once delivery commits the offset only after the run succeeds, so a failed run re-consumes the message (nothing lost). Supports TLS and SASL (PLAIN / SCRAM-SHA-256/512) for managed clusters (Confluent Cloud, AWS MSK, Aiven, Redpanda) — use {{secrets.X}} to keep credentials out of the node.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
brokers
Broker (host:porta, separati da virgola)
stringyes
kafka1.example.com:9092, kafka2.example.com:9092
Lista dei bootstrap broker del cluster, separati da virgola. Ne basta uno raggiungibile: il client scopre gli altri. Formato host:porta.
topic
Topic
stringyes
orders.events
Nome del topic da consumare. Il consumer si sottoscrive a tutte le sue partizioni.
groupId
Consumer Group ID
stringno
flowforge-orders-processor
Identifica il gruppo di consumer che si spartiscono le partizioni. Più istanze con lo stesso id scalano in parallelo. Vuoto = id dedicato a questo workflow (flowforge-<workflowId>).
fromBeginning
Leggi dall'inizio (primo avvio)
booleannofalseOn: al primo avvio del gruppo consuma dall'offset più vecchio disponibile (backfill dello storico). Off (default): riparte dall'ultimo offset committato dal gruppo (solo i nuovi messaggi).
ssl
TLS (ssl)
booleannofalseOn per i cluster che richiedono connessione cifrata (quasi tutti i gestiti: Confluent, MSK, Aiven).
saslMechanism
Autenticazione SASL
enum
noneplainscram-sha-256scram-sha-512
nononeMeccanismo SASL. none = nessuna auth (broker aperti / reti fidate). plain / scram-sha-256 / scram-sha-512 per i cluster gestiti. Richiede username e password qui sotto.
saslUsername
SASL username / API key
stringno
{{secrets.KAFKA_KEY}}
Username SASL (o API key per Confluent Cloud). Usa {{secrets.X}} per non incollarlo in chiaro.
saslPassword
SASL password / API secret
stringno
{{secrets.KAFKA_SECRET}}
Password SASL (o API secret). Usa {{secrets.X}} dalle Variabili tenant: non incollare segreti nel nodo.
jsonParse
Parsa i messaggi come JSON
booleannotrueOn (default): il payload viene parsato come JSON in "data" (fallback alla stringa grezza se non è JSON valido). Off: "data" resta la stringa. "raw" contiene sempre il testo originale.
messagePointer
JSON Pointer di filtro/estrazione
stringno
/eventType oppure /payload/status
RFC 6901 JSON Pointer. Se valorizzato, il run parte SOLO se il puntatore risolve a un valore non-undefined (esposto come "matched"). I messaggi senza match avanzano comunque l'offset (scartati per scelta). Vuoto = ogni messaggio fa partire un run.
maxMessagesPerSec
Budget anti-flood (messaggi/sec)
numberno0Tetto di run avviati al secondo. Oltre il budget i messaggi avanzano l'offset senza far partire un run (scartati) per proteggere il runtime. 0 = nessun limite. In Kafka il consumer group + partizioni già distribuiscono il carico.
reconnect
Riconnessione automatica
booleannotrueOn (default): su crash del consumer riconnette con backoff esponenziale (1s→2s→…→30s). Off: alla prima caduta il consumer si ferma finché non riabiliti/salvi il workflow.

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-trigger_kafka-1",
  "defId": "trigger_kafka",
  "label": "Apache Kafka",
  "config": {
    "brokers": "kafka1.example.com:9092, kafka2.example.com:9092",
    "topic": "orders.events",
    "fromBeginning": false,
    "ssl": false,
    "saslMechanism": "none",
    "jsonParse": true,
    "maxMessagesPerSec": 0,
    "reconnect": true
  }
}

🔗 Related nodes in the same category

Ready to use Apache Kafka?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes