[{"data":1,"prerenderedAt":430},["ShallowReactive",2],{"docs-nav":3,"docs-page-\u002Fdocs\u002Ftopics\u002Fcreate-a-topic":133},[4,27,53,68,83,98,117],{"slug":5,"label":6,"pages":7},"get-started","Get Started",[8,12,17,22],{"path":9,"title":10,"order":11},"\u002Fdocs","Welcome",0,{"path":13,"title":14,"navTitle":15,"order":16},"\u002Fdocs\u002Fget-started\u002Fquickstart","Quickstart",null,1,{"path":18,"title":19,"navTitle":20,"order":21},"\u002Fdocs\u002Fget-started\u002Fconnect-to-a-cluster","Connecting to a Kafka Cluster","Clusters",2,{"path":23,"title":24,"navTitle":25,"order":26},"\u002Fdocs\u002Fget-started\u002Flicense","Licensing and Activation","License",3,{"slug":28,"label":29,"pages":30},"console","Console",[31,35,39,43,48],{"path":32,"title":33,"navTitle":34,"order":16},"\u002Fdocs\u002Fconsole\u002Foverview","Produce and Consume Messages in the Kafka Console","Overview",{"path":36,"title":37,"navTitle":38,"order":21},"\u002Fdocs\u002Fconsole\u002Fconsuming-messages","Kafka Consumer: Reading Messages from a Topic","Consuming",{"path":40,"title":41,"navTitle":42,"order":26},"\u002Fdocs\u002Fconsole\u002Fdecoding-messages","Decoding Kafka Avro and Protobuf Messages","Decoding",{"path":44,"title":45,"navTitle":46,"order":47},"\u002Fdocs\u002Fconsole\u002Fproducing-messages","Kafka Producer: Sending Messages to a Topic","Producing",4,{"path":49,"title":50,"navTitle":51,"order":52},"\u002Fdocs\u002Fconsole\u002Freplay-forward-and-export","Replay and Export Kafka Messages","Replay & export",5,{"slug":54,"label":55,"pages":56},"topics","Topics",[57,60,64],{"path":58,"title":59,"navTitle":34,"order":16},"\u002Fdocs\u002Ftopics\u002Foverview","Browse and Inspect Kafka Topics",{"path":61,"title":62,"navTitle":63,"order":21},"\u002Fdocs\u002Ftopics\u002Fcreate-a-topic","Create a Kafka Topic: Partitions, Replication, and Retention","Create a topic",{"path":65,"title":66,"navTitle":67,"order":26},"\u002Fdocs\u002Ftopics\u002Fpartitions-and-records","Adding Kafka Partitions and Deleting Records","Partitions & records",{"slug":69,"label":70,"pages":71},"schema-registry","Schema Registry",[72,75,79],{"path":73,"title":74,"navTitle":34,"order":16},"\u002Fdocs\u002Fschema-registry\u002Foverview","Browse Kafka Schema Registry Subjects and Versions",{"path":76,"title":77,"navTitle":78,"order":21},"\u002Fdocs\u002Fschema-registry\u002Fnew-versions","Register Kafka Schemas and Publish New Versions","New versions",{"path":80,"title":81,"navTitle":82,"order":26},"\u002Fdocs\u002Fschema-registry\u002Fmock-and-lab","Avro Schema Validator and Mock Data Generator","Mock & Lab",{"slug":84,"label":85,"pages":86},"consumer-groups","Consumer Groups",[87,90,94],{"path":88,"title":89,"navTitle":34,"order":16},"\u002Fdocs\u002Fconsumer-groups\u002Foverview","Browse Kafka Consumer Groups and Assignments",{"path":91,"title":92,"navTitle":93,"order":21},"\u002Fdocs\u002Fconsumer-groups\u002Flag","Monitor Kafka Consumer Lag","Lag",{"path":95,"title":96,"navTitle":97,"order":26},"\u002Fdocs\u002Fconsumer-groups\u002Freset-offsets","Reset Kafka Consumer Group Offsets","Reset offsets",{"slug":99,"label":100,"pages":101},"data-clone","Data Clone",[102,105,109,113],{"path":103,"title":104,"navTitle":34,"order":16},"\u002Fdocs\u002Fdata-clone\u002Foverview","Clone Kafka Topics Between Clusters",{"path":106,"title":107,"navTitle":108,"order":21},"\u002Fdocs\u002Fdata-clone\u002Fscope-and-range","Configure Kafka Topic Cloning","Scope & range",{"path":110,"title":111,"navTitle":112,"order":26},"\u002Fdocs\u002Fdata-clone\u002Fmasking","Mask Sensitive Data in Kafka Messages","Masking",{"path":114,"title":115,"navTitle":116,"order":47},"\u002Fdocs\u002Fdata-clone\u002Fpre-flight","Run Pre-flight Checks Before a Kafka Data Clone","Pre-flight",{"slug":118,"label":119,"pages":120},"operate","Operate",[121,125,129],{"path":122,"title":123,"navTitle":124,"order":16},"\u002Fdocs\u002Foperate\u002Fbrokers","Inspect Kafka Brokers and Cluster Configuration","Brokers",{"path":126,"title":127,"navTitle":128,"order":21},"\u002Fdocs\u002Foperate\u002Faccess-control","Inspect Kafka ACLs and Simulate Access","Access Control",{"path":130,"title":131,"navTitle":132,"order":26},"\u002Fdocs\u002Foperate\u002Factivity-logs","Review Kafka Changes in Kafma Activity Logs","Activity Logs",{"id":134,"title":62,"body":135,"description":421,"extension":422,"lastUpdated":423,"meta":424,"navTitle":63,"navigation":425,"order":21,"path":61,"seo":426,"sitemap":427,"stem":428,"__hash__":429},"docs\u002Fdocs\u002Ftopics\u002Fcreate-a-topic.md",{"type":136,"value":137,"toc":406},"minimark",[138,147,152,155,164,231,235,238,250,254,259,262,271,275,278,281,285,292,313,317,326,329,333,336,360,367,371,378,385,389],[139,140,141,142,146],"p",{},"From the Topics page, click ",[143,144,145],"strong",{},"Create Topic",". Start with a preset, then adjust\nthe settings for the workload and connected cluster.",[148,149,151],"h2",{"id":150},"choose-a-kafka-topic-preset","Choose a Kafka topic preset",[139,153,154],{},"New Topic opens with four presets. Each one is a starting point you can adjust, not\na mode you are locked into.",[139,156,157],{},[158,159],"img",{"alt":160,"height":161,"src":162,"width":163},"Creating a Kafka topic from a preset with partitions, replication, retention, cleanup policy, and advanced configuration",1264,"https:\u002F\u002Fmedia.kafma.app\u002Fdocs\u002Ftopics\u002Fcreate-a-topic\u002Fcreate-topic.png",1808,[165,166,167,183],"table",{},[168,169,170],"thead",{},[171,172,173,177,180],"tr",{},[174,175,176],"th",{},"Preset",[174,178,179],{},"Configuration",[174,181,182],{},"When it fits",[184,185,186,198,209,220],"tbody",{},[171,187,188,192,195],{},[189,190,191],"td",{},"Standard",[189,193,194],{},"3 partitions, 3 replicas, Delete, 7-day retention",[189,196,197],{},"General use on a multi-broker cluster",[171,199,200,203,206],{},[189,201,202],{},"Development",[189,204,205],{},"1 partition, 1 replica, Delete, 30-day retention",[189,207,208],{},"Local or temporary environments",[171,210,211,214,217],{},[189,212,213],{},"Compacted",[189,215,216],{},"3 partitions, 3 replicas, Compact",[189,218,219],{},"Keyed state and changelog data",[171,221,222,225,228],{},[189,223,224],{},"High Throughput",[189,226,227],{},"12 partitions, 3 replicas, Delete, 12-hour retention, 1 GB per partition",[189,229,230],{},"Higher parallelism with bounded storage",[148,232,234],{"id":233},"kafka-topic-naming-conventions","Kafka topic naming conventions",[139,236,237],{},"Use a unique name of up to 249 characters. Kafma accepts letters, numbers, dots,\nunderscores, and hyphens; spaces are not allowed.",[139,239,240,241,245,246,249],{},"Avoid mixing dots and underscores across topic names. Kafka's metric names replace\ndots with underscores, so ",[242,243,244],"code",{},"orders.created"," and ",[242,247,248],{},"orders_created"," can collide in\nmonitoring even though they are different topics.",[148,251,253],{"id":252},"choose-partitions-and-replication-factor","Choose partitions and replication factor",[255,256,258],"h3",{"id":257},"partitions","Partitions",[139,260,261],{},"The partition count limits how many members of one consumer group can read the\ntopic in parallel. More partitions can increase throughput, but also add storage,\nreplication, and rebalance overhead.",[139,263,264,265,270],{},"Kafka lets you add partitions later, but not remove them. Adding partitions can\nalso change how keyed records are routed. See\n",[266,267,269],"a",{"href":268},"\u002Fdocs\u002Ftopics\u002Fpartitions-and-records#add-partitions-to-a-kafka-topic","Adding Kafka partitions","\nbefore increasing the count.",[255,272,274],{"id":273},"replication-factor","Replication factor",[139,276,277],{},"The replication factor cannot exceed the cluster's broker count. A factor of 1\nstores no redundant copy, so another replica cannot take over when that broker is\nunavailable. Higher values improve resilience but use more storage and replication\ntraffic.",[139,279,280],{},"Presets with three replicas require at least three brokers. Reduce the value when\ncreating the topic on a smaller cluster.",[148,282,284],{"id":283},"retention-and-cleanup-policy","Retention and cleanup policy",[139,286,287,288,291],{},"For policies that include ",[143,289,290],{},"Delete",", retention time controls when old records\nbecome eligible for deletion. Cleanup policy decides what \"cleaning up\" means:",[293,294,295,301,307],"ul",{},[296,297,298,300],"li",{},[143,299,290],{}," removes old segments according to the topic's time and size limits.",[296,302,303,306],{},[143,304,305],{},"Compact"," retains the latest value for each key as Kafka cleans segments.",[296,308,309,312],{},[143,310,311],{},"Mixed"," applies both deletion and compaction.",[255,314,316],{"id":315},"create-a-compacted-kafka-topic","Create a compacted Kafka topic",[139,318,319,320,322,323,325],{},"Choose the ",[143,321,213],{}," preset or set the cleanup policy to ",[143,324,305],{},". Compacted\ntopics work by key, so producers should include one. A record with a null value is\na tombstone that marks its key for removal.",[139,327,328],{},"Compaction is not immediate. It works on closed segments and is governed by the\nbroker's cleaner settings, so a duplicate key can remain visible for a while after\nthe newer record is written.",[148,330,332],{"id":331},"advanced-kafka-topic-configuration","Advanced Kafka topic configuration",[139,334,335],{},"Advanced Configuration exposes three common topic overrides:",[293,337,338,348,354],{},[296,339,340,343,344,347],{},[242,341,342],{},"min.insync.replicas"," sets how many in-sync replicas must acknowledge a write\nwhen the producer uses ",[242,345,346],{},"acks=all",".",[296,349,350,353],{},[242,351,352],{},"retention.bytes"," limits retained data per partition. The total across the topic\ndepends on its partition count.",[296,355,356,359],{},[242,357,358],{},"max.message.bytes"," sets the largest record batch the topic accepts and appears\nas the message limit in the topic details drawer.",[139,361,362,363,366],{},"Use ",[143,364,365],{},"Add Custom Property"," for another Kafka topic configuration.",[148,368,370],{"id":369},"edit-kafka-topic-configuration","Edit Kafka topic configuration",[139,372,373,374,377],{},"Open a topic's action menu and select ",[143,375,376],{},"Edit Configuration"," to change retention,\ncleanup policy, and topic-level overrides. Clearing an override resets it to the\nbroker default.",[139,379,380,381,384],{},"Partitions and replication factor are shown but cannot be changed in this form.\nUse ",[143,382,383],{},"Add Partitions"," to increase the partition count. Kafma does not currently\nprovide replica reassignment.",[148,386,388],{"id":387},"next-steps","Next steps",[293,390,391,396,401],{},[296,392,393],{},[266,394,395],{"href":58},"Browse and inspect Kafka topics",[296,397,398],{},[266,399,400],{"href":65},"Add partitions or delete records",[296,402,403],{},[266,404,405],{"href":44},"Produce messages to a topic",{"title":407,"searchDepth":26,"depth":26,"links":408},"",[409,410,411,415,418,419,420],{"id":150,"depth":21,"text":151},{"id":233,"depth":21,"text":234},{"id":252,"depth":21,"text":253,"children":412},[413,414],{"id":257,"depth":26,"text":258},{"id":273,"depth":26,"text":274},{"id":283,"depth":21,"text":284,"children":416},[417],{"id":315,"depth":26,"text":316},{"id":331,"depth":21,"text":332},{"id":369,"depth":21,"text":370},{"id":387,"depth":21,"text":388},"Create a Kafka topic in Kafma from a preset, then configure its name, partitions, replication factor, retention, cleanup policy, and advanced settings.","md","2026-08-01",{},true,{"title":62,"description":421},{"loc":61},"docs\u002Ftopics\u002Fcreate-a-topic","tbHZOMcrP_qxYI05KKOGSy1kiKJGgCBUMbKdmST4QVI",1785561255893]