2021-08-29 21:24:50 +00:00

3.2 KiB

Topic

This schema defines the Topic entity. A topic is a feed into which message are published to by publishers and read from by consumers in a messaging service.

$id: https://open-metadata.org/schema/entity/data/topic.json

Type: object

Properties

  • id required
  • name required
  • fullyQualifiedName
    • Name that uniquely identifies a topic in the format 'messagingServiceName.topicName'.
    • Type: string
  • description
    • Description of the topic instance.
    • Type: string
  • service required
  • partitions required
    • Number of partitions into which the topic is divided.
    • Type: integer
    • Range: ≥ 1
  • schemaText
    • Schema used for message serialization. Optional as some topics may not have associated schemas.
    • Type: string
  • schemaType
  • cleanupPolicies
  • retentionTime
    • Retention time in milliseconds. For Kafka - retention.ms configuration.
    • Type: number
  • maximumMessageSize
    • Maximum message size in bytes. For Kafka - max.message.bytes configuration.
    • Type: integer
  • minimumInSyncReplicas
    • Minimum number replicas in sync to control durability. For Kafka - min.insync.replicas configuration.
    • Type: integer
  • retentionSize
    • Maximum size of a partition in bytes before old data is discarded. For Kafka - retention.bytes configuration.
    • Type: number
    • Default: "-1"
  • owner
  • followers
  • tags
  • href

Type definitions in this schema

topicName

  • Name that identifies a topic.
  • Type: string
  • The value must match this pattern: ^[^.]*$
  • Length: between 1 and 64

schemaType

  • Schema type used for the message.
  • The value is restricted to the following:
    1. "Avro"
    2. "Protobuf"
    3. "JSON"
    4. "Other"

cleanupPolicy

  • Topic clean up policy. For Kafka - cleanup.policy configuration.
  • The value is restricted to the following:
    1. "delete"
    2. "compact"

This document was updated on: Thursday, August 26, 2021