Тёмный

🎄 Twelve Days of SMT 🎄 - Day 7: TimestampRouter 

Robin Moffatt
Подписаться 4,2 тыс.
Просмотров 556
50% 1

Kafka Connect is the primary method for doing integration with Apache Kafka and other systems. It includes Single Message Transform (SMT) which can be used to modify messages as they pass through the pipeline in or out of Kafka.
Just like the `RegExRouter`, the `TimeStampRouter` can be used to modify the topic name of messages as they pass through Kafka Connect. Since the topic name is usually the basis for the naming of the object to which messages are written in a sink connector, this is a great way to achieve time-based partitioning of those objects if required. For example, instead of streaming messages from Kafka to an Elasticsearch index called `cars`, they can be routed to monthly indices e.g. `cars_2020-10`, `cars_2020-11`, `cars_2020-12`, etc.
The `TimeStampRouter` takes two arguments; the format of the final topic name to generate, and the format of the timestamp to put in the topic name.
---
👾 Demo code: github.com/confluentinc/demo-...
🗒️ SMT reference: docs.confluent.io/platform/cu...
Learn more about Kafka Connect here:
🏃‍♂️ Quick: • Kafka Connect in 60 se...
🚶 More detail: rmoff.dev/kafka-connect-zero-...
---
☁️ Confluent Cloud: confluent.cloud/signup?...
💾Download Confluent Platform: www.confluent.io/download/?ut...
📺 Kafka Connect connector deep-dives: • Kafka Connect
✍️Kafka Connect documentation: docs.confluent.io/current/con...
🧩Confluent Hub: www.confluent.io/hub/?...

Наука

Опубликовано:

 

15 дек 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@muks
@muks 2 года назад
Very simple, great, Thanks Robin
Далее
🎄Twelve Days of SMT 🎄 - Day 8: TimestampConverter
19:14
Schoolboy - Часть 2
00:12
Просмотров 1,8 млн
MongoDB Schema Design Best Practices
9:58
Просмотров 152 тыс.
Why The Windows Phone Failed
24:08
Просмотров 126 тыс.
ksqlDB HOWTO: Stateful Aggregates
13:56
Просмотров 2,8 тыс.
Water powered timers hidden in public restrooms
13:12
Просмотров 727 тыс.
What is a REST API?
9:12
Просмотров 1,5 млн
Опасная беспроводная зарядка
1:00
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 6 млн