This is introduction for Attunity data replication technology based on kafka
Size: 443.91 KB
Language: en
Added: Jun 30, 2024
Slides: 12 pages
Slide Content
Kafka and Replicate
What is Kafka Distributed message queue High throughput – designed for large amount of small messages (default: 1MB) Scalable – cluster can be extended easily Persistent – messages are stored on disk, replicas are stored on different servers Runs on Java (Linux, Windows …) Apache open-source
Kafka Terminology Broker Kafka server Cluster Multiple brokers form a cluster Producer Kafka client, sends messages to brokers Consumer Kafka client, r eceives messages from brokers Topic Logical queue, divided into partitions Partition Contains Kafka messages, saved as a file on disk. Message Any buffer ( text/binary), f ormat should be coordinated between producers and consumers Message Key Optional, used for partitioning and compaction Offset Position of a message in a partition , u sed by consumer
Kafka Architecture
Anatomy of a Topic
Kafka Target Endpoint Replicate is a Kafka Producer Connects to brokers and sends messages Each message represents a record Message format is JSON, UTF-8 encoded, or Avro Message can have a Key Message can be compressed (snappy, gzip) Full Load and CDC are supported Supported Kafka versions: 0.8, 0.9, 0.10
Kafka – Metadata Messages Replicate produces messages to Kafka Each message contains a data record Metadata messages: Replicate Server name Task name Source schema, Source table Columns information Table version
Troubleshooting Connection Errors Test the connection to Kafka broker Check the broker’s address and port Verify that port is accessible by using telnet