Get Started
1️⃣ Obtaining the Connector
You can build the connector from source or download the pre-built JAR file from the releases. The GitHub repository includes a README with instructions for running the connector locally. The GitHub repository includes a README with instructions for running the connector locally.2️⃣ Configuring the Connector
Kafka Connector Properties Overview: This document explains the properties required to configure the FalkorDB Sink Connector for Apache Kafka.Configurations should be specified in a properties file format.
Properties Overview
The above properties configure a Kafka Sink Connector that reads messages from a specified topic and writes them into FalkorDB using string conversion for both keys and values. Adjusting these properties allows you to tailor the connector’s behavior according to your application’s requirements.
Configuration Example
Kafka Message Format
JSON Structure Overview
The message is an array containing multiple objects, each representing a command to be executed on the graph database. Below is a breakdown of the key components of each message object. Example:Key Components
The table below explains essential properties for executing commands in FalkorDB through Kafka messages.Frequently Asked Questions
How do I get the FalkorDB Kafka Connect sink connector?
How do I get the FalkorDB Kafka Connect sink connector?
You can either build it from source or download the pre-built uber JAR from the GitHub releases.
What message format does the connector expect?
What message format does the connector expect?
Messages must be JSON arrays where each object contains
graphName, command (e.g., GRAPH_QUERY), cypherCommand (the Cypher query), and parameters (key-value pairs for query parameters).Can the connector write to multiple graphs from a single topic?
Can the connector write to multiple graphs from a single topic?
Yes, each message object includes a
graphName field, so messages within the same Kafka topic can target different FalkorDB graphs.What converters should I use for key and value serialization?
What converters should I use for key and value serialization?
Use
org.apache.kafka.connect.storage.StringConverter for both key.converter and value.converter. Set value.converter.schemas.enable=false to exclude schema information from message values.How do I scale the connector for higher throughput?
How do I scale the connector for higher throughput?
Increase the
tasks.max property to run multiple parallel tasks. Each task will consume from the topic partition(s) independently. Ensure your FalkorDB instance can handle the additional concurrent connections.