Kafka Broker vs Topic [英] Kafka Broker vs Topic

查看:33
本文介绍了Kafka Broker vs Topic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个主题通常驻留在代理(服务器进程)中并且有多个分区,但它可以跨越多个代理或节点(机器)吗?

A topic usually resides within the broker (server process) and has multiple partitions, but can it span across multiple brokers or nodes (machines)?

即,假设一个主题分为两个分区,分区 1 和分区 2.同一个topic的partition-1可以属于broker-1,partition-2可以属于不同的broker-2还是完全不同的节点?

i.e, lets say a topic is divided into two partitions, partition-1 and partition-2. Can partition-1 belong to broker-1 and partition-2 of the same topic belong to a different broker-2 or a different node altogether?

推荐答案

是的,一个主题的不同分区可以存储在多台机器上.但是,单个分区必须完全存储在一台机器上.

Yes, different partitions of a topic can be stored in multiple machines. But, a single partition has to be stored entirely in one machine.

这篇关于Kafka Broker vs Topic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆