The ecosystem · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Compatibility modes
BACKWARD (default) | New schema can read data written with the previous one: upgrade consumers first |
FORWARD | Old schema can read data written with the new one: upgrade producers first |
FULL | Both directions: upgrade in any order |
*_TRANSITIVE | Check against all previous versions, not just the last |
NONE | No checks: avoid for shared topics |
Safe changes (Avro, BACKWARD)
Add a field with a default | Safe |
Remove a field | Safe for BACKWARD (readers ignore it); breaks FORWARD unless it had a default |
Rename a field | Breaking (use an alias, or add new + deprecate old) |
Change a field's type | Breaking, except a few widening promotions such as int → long |
Registry API
GET /subjects | List subjects |
GET /subjects/orders-value/versions/latest | Latest schema for the orders value |
POST /compatibility/subjects/orders-value/versions/latest | Test a new schema before registering |
PUT /config/orders-value {"compatibility":"FULL"} | Set the mode for one subject |
Kafka Connect REST API (port 8083)
GET /connector-plugins | Installed connector types |
POST /connectors (JSON config) | Create a connector |
GET /connectors/<name>/status | Connector and task state (RUNNING, FAILED) |
POST /connectors/<name>/restart?includeTasks=true&onlyFailed=true | Restart failed tasks |
PUT /connectors/<name>/pause | Pause a connector |
Useful connector settings
tasks.max | Parallelism for this connector |
errors.tolerance=all | Don't stop on a bad record… |
errors.deadletterqueue.topic.name=<topic> | …send it here instead (sink connectors) |
transforms=… | Single message transforms: rename, mask, route |
Choosing a processor
Kafka Streams | A Java library inside your service; Kafka in, Kafka out |
Apache Flink | A separate cluster; large state, many sources, SQL, event time |
Plain consumer | Simple per-record logic |