{"id":36858,"title":"Apache Kafka on Heroku Version Support","updated_at":"2026-10-28T16:46:31.483Z","slug":"kafka-on-heroku-version-support","content":"Heroku currently offers [Apache Kafka version 3.9.2](https://downloads.apache.org/kafka/3.9.2/RELEASE_NOTES.html) as the default for [Apache Kafka on Heroku](kafka-on-heroku). [`basic` Apache Kafka on Heroku plans](multi-tenant-kafka-on-heroku) always use the default version and Heroku upgrades to the latest default version automatically.\r\n\r\n## Available Kafka Versions\r\n\r\n| Major Version | Minor Version | Status | End of Life Date |\r\n| :---: | :---: | :---: | :---: |\r\n| 2.8 | 2.8.2 | [Deprecated](https://devcenter.heroku.com/changelog-items/3723) | October 28, 2026 |\r\n| 3.7 | 3.7.1 | [Deprecated](https://devcenter.heroku.com/changelog-items/3723) | October 28, 2026 |\r\n| 3.9 | 3.9.2 | Available | TBD |\r\n\r\n\u003enote\r\n\u003eAs a rule, the client library version must be equal to or less than the version on the cluster.\r\n\r\nKafka supports SSL to encrypt and authenticate connections, and this mode is the only connection mode supported in the Common Runtime. To comply, you must use a library that supports SSL encryption and client certificates. In Private Spaces, you can optionally use plaintext connections, as described below. Shield Spaces don’t support plaintext connections. \r\n\r\n## Version Lifecycle\r\n\r\nThe Apache Kafka project releases a new major version approximately [every four months](https://cwiki.apache.org/confluence/display/KAFKA/Time+Based+Release+Plan) (3x/year). In accordance with this release schedule, we make all versions published in the last year available for new add-ons. We only support Apache Kafka versions that the upstream project maintains. One year after the most recent point release is available, we mark that major version deprecated and stop allowing new add-ons to use this version. \r\n\r\nAfter deprecating a version, your cluster continues to operate normally. However, running older versions is risky as deprecated versions that the community no longer supports don't receive bug fixes or security patches. Heroku notifies you via email about the deprecation process for your affected clusters.\r\n\r\nWhen we release a new major version, we deprecate the earliest major version. For example, when we release major version 4, we deprecate major version 3 and support major version 4.\r\n\r\n\u003enote\r\n\u003eWe [deprecated two versions, 2.8 and 3.7](https://devcenter.heroku.com/changelog-items/3723) after releasing version 3.9, which didn’t follow our standard deprecation policy.\r\n\r\n- On the deprecation date, Heroku notifies customers via email about the deprecation process for their affected databases.\r\n- One month after the deprecation date, Heroku prevents provisioning new clusters on the deprecated version.\r\n- Two months after the deprecation date, Heroku schedules forced upgrades for clusters that still run a deprecated version.\r\n- Three months after the deprecation date, the deprecated version is [end-of-life](#end-of-life).\r\n\r\nHeroku **highly recommends** performing the [version upgrade](#upgrading-kafka-versions) before support ends so that you can test compatibility, plan for unforeseen issues, and migrate your cluster on your own schedule.\r\n\r\n### End-of-Life\r\n\r\nThe end-of-life date of each version occurs three months after its deprecation date. We start restricting access and deleting clusters for non-compliance after this date.\r\n\r\n\u003enote\r\n\u003eWe recommend that users regularly evaluate their add-on version and plan to upgrade their cluster at least once a year. By keeping up with this schedule, your cluster receives important bug fixes and notable improvements in reliability. \r\n\r\n## Upgrading Kafka Versions\r\n\r\nTo upgrade the version of a dedicated Kafka cluster, use the `heroku kafka:upgrade` command and provide the target version to upgrade to with the `--version` option:\r\n\r\n```term\r\n$ heroku kafka:upgrade --version 3.9 -a example-app\r\n ›   Warning: This command will upgrade the brokers of the cluster to version 3.9.\r\n ›        Upgrading the cluster involves rolling restarts of brokers, and takes some time, depending on the\r\n ›        size of the cluster.\r\n\r\n? To proceed, type example-app or re-run this command with --confirm example-app\r\nUpgrading to version 3.9... started.\r\n\r\nUse `heroku kafka:wait` to monitor the upgrade.\r\n```\r\n\r\n\u003enote\r\n\u003eIt's important to note that the upgrade command advances the version to the latest supported stable minor version. For example, currently, `heroku kafka:upgrade --version 3.9` upgrades a cluster to version 3.9.2.\r\n\r\nThis command upgrades the Kafka brokers in the cluster to the new version. Upgrading the cluster involves several process restarts of the brokers, but the brokers restart one at a time. Assuming your app can handle broker restarts, the upgrade is relatively seamless.\r\n\r\nSee [Robust Usage of Kafka](robust-kafka) to ensure proper handling of broker restarts. During the upgrade period, your cluster is running mixed versions. For example, you can have one broker on 2.8 and two brokers on 3.9.\r\n\r\nKafka strictly promises backward protocol compatibility: you can always use a client protocol version *older* than the versions your cluster is running. However, you can’t use a newer client version than the one your cluster is running.\r\n\r\nDuring the upgrade, you must keep your client on a version equal or lower than the version you're upgrading *from*. After the upgrade finishes, denoted by the status in `heroku kafka:wait`, you can start using a new protocol version and any new features it supports. Heroku doesn’t require it, but recommends keeping your client on the same protocol version your cluster is running.\r\n\r\nKeep your clusters up to date with the latest recommended version from Heroku, which is `3.9.2`. Heroku performs heavy testing and validation work on all new Kafka releases, including testing the upgrade procedure, and only recommends trusted versions.","html_content":"\u003cp\u003eHeroku currently offers \u003ca href=\"https://downloads.apache.org/kafka/3.9.2/RELEASE_NOTES.html\"\u003eApache Kafka version 3.9.2\u003c/a\u003e as the default for \u003ca href=\"https://devcenter.heroku.com/articles/kafka-on-heroku\"\u003eApache Kafka on Heroku\u003c/a\u003e. \u003ca href=\"https://devcenter.heroku.com/articles/multi-tenant-kafka-on-heroku\"\u003e\u003ccode\u003ebasic\u003c/code\u003e Apache Kafka on Heroku plans\u003c/a\u003e always use the default version and Heroku upgrades to the latest default version automatically.\u003c/p\u003e\n\u003ch2 id=\"available-kafka-versions\"\u003eAvailable Kafka Versions\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"center\"\u003eMajor Version\u003c/th\u003e\n\u003cth align=\"center\"\u003eMinor Version\u003c/th\u003e\n\u003cth align=\"center\"\u003eStatus\u003c/th\u003e\n\u003cth align=\"center\"\u003eEnd of Life Date\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e2.8\u003c/td\u003e\n\u003ctd align=\"center\"\u003e2.8.2\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003ca href=\"https://devcenter.heroku.com/changelog-items/3723\"\u003eDeprecated\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003eOctober 28, 2026\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e3.7\u003c/td\u003e\n\u003ctd align=\"center\"\u003e3.7.1\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\u003ca href=\"https://devcenter.heroku.com/changelog-items/3723\"\u003eDeprecated\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"center\"\u003eOctober 28, 2026\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e3.9\u003c/td\u003e\n\u003ctd align=\"center\"\u003e3.9.2\u003c/td\u003e\n\u003ctd align=\"center\"\u003eAvailable\u003c/td\u003e\n\u003ctd align=\"center\"\u003eTBD\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cdiv class=\"note\"\u003e\n\u003cp\u003eAs a rule, the client library version must be equal to or less than the version on the cluster.\u003c/p\u003e\n\u003c/div\u003e\n\u003cp\u003eKafka supports SSL to encrypt and authenticate connections, and this mode is the only connection mode supported in the Common Runtime. To comply, you must use a library that supports SSL encryption and client certificates. In Private Spaces, you can optionally use plaintext connections, as described below. Shield Spaces don’t support plaintext connections.\u003c/p\u003e\n\u003ch2 id=\"version-lifecycle\"\u003eVersion Lifecycle\u003c/h2\u003e\n\u003cp\u003eThe Apache Kafka project releases a new major version approximately \u003ca href=\"https://cwiki.apache.org/confluence/display/KAFKA/Time+Based+Release+Plan\"\u003eevery four months\u003c/a\u003e (3x/year). In accordance with this release schedule, we make all versions published in the last year available for new add-ons. We only support Apache Kafka versions that the upstream project maintains. One year after the most recent point release is available, we mark that major version deprecated and stop allowing new add-ons to use this version.\u003c/p\u003e\n\u003cp\u003eAfter deprecating a version, your cluster continues to operate normally. However, running older versions is risky as deprecated versions that the community no longer supports don’t receive bug fixes or security patches. Heroku notifies you via email about the deprecation process for your affected clusters.\u003c/p\u003e\n\u003cp\u003eWhen we release a new major version, we deprecate the earliest major version. For example, when we release major version 4, we deprecate major version 3 and support major version 4.\u003c/p\u003e\n\u003cdiv class=\"note\"\u003e\n\u003cp\u003eWe \u003ca href=\"https://devcenter.heroku.com/changelog-items/3723\"\u003edeprecated two versions, 2.8 and 3.7\u003c/a\u003e after releasing version 3.9, which didn’t follow our standard deprecation policy.\u003c/p\u003e\n\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003eOn the deprecation date, Heroku notifies customers via email about the deprecation process for their affected databases.\u003c/li\u003e\n\u003cli\u003eOne month after the deprecation date, Heroku prevents provisioning new clusters on the deprecated version.\u003c/li\u003e\n\u003cli\u003eTwo months after the deprecation date, Heroku schedules forced upgrades for clusters that still run a deprecated version.\u003c/li\u003e\n\u003cli\u003eThree months after the deprecation date, the deprecated version is \u003ca href=\"#end-of-life\"\u003eend-of-life\u003c/a\u003e.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eHeroku \u003cstrong\u003ehighly recommends\u003c/strong\u003e performing the \u003ca href=\"#upgrading-kafka-versions\"\u003eversion upgrade\u003c/a\u003e before support ends so that you can test compatibility, plan for unforeseen issues, and migrate your cluster on your own schedule.\u003c/p\u003e\n\u003ch3 id=\"end-of-life\"\u003eEnd-of-Life\u003c/h3\u003e\n\u003cp\u003eThe end-of-life date of each version occurs three months after its deprecation date. We start restricting access and deleting clusters for non-compliance after this date.\u003c/p\u003e\n\u003cdiv class=\"note\"\u003e\n\u003cp\u003eWe recommend that users regularly evaluate their add-on version and plan to upgrade their cluster at least once a year. By keeping up with this schedule, your cluster receives important bug fixes and notable improvements in reliability.\u003c/p\u003e\n\u003c/div\u003e\n\u003ch2 id=\"upgrading-kafka-versions\"\u003eUpgrading Kafka Versions\u003c/h2\u003e\n\u003cp\u003eTo upgrade the version of a dedicated Kafka cluster, use the \u003ccode\u003eheroku kafka:upgrade\u003c/code\u003e command and provide the target version to upgrade to with the \u003ccode\u003e--version\u003c/code\u003e option:\u003c/p\u003e\n\u003cpre class=\"language-term\"\u003e\u003ccode class=\"language-term\"\u003e$ heroku kafka:upgrade --version 3.9 -a example-app\n ›   Warning: This command will upgrade the brokers of the cluster to version 3.9.\n ›        Upgrading the cluster involves rolling restarts of brokers, and takes some time, depending on the\n ›        size of the cluster.\n\n? To proceed, type example-app or re-run this command with --confirm example-app\nUpgrading to version 3.9... started.\n\nUse `heroku kafka:wait` to monitor the upgrade.\n\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"note\"\u003e\n\u003cp\u003eIt’s important to note that the upgrade command advances the version to the latest supported stable minor version. For example, currently, \u003ccode\u003eheroku kafka:upgrade --version 3.9\u003c/code\u003e upgrades a cluster to version 3.9.2.\u003c/p\u003e\n\u003c/div\u003e\n\u003cp\u003eThis command upgrades the Kafka brokers in the cluster to the new version. Upgrading the cluster involves several process restarts of the brokers, but the brokers restart one at a time. Assuming your app can handle broker restarts, the upgrade is relatively seamless.\u003c/p\u003e\n\u003cp\u003eSee \u003ca href=\"https://devcenter.heroku.com/articles/robust-kafka\"\u003eRobust Usage of Kafka\u003c/a\u003e to ensure proper handling of broker restarts. During the upgrade period, your cluster is running mixed versions. For example, you can have one broker on 2.8 and two brokers on 3.9.\u003c/p\u003e\n\u003cp\u003eKafka strictly promises backward protocol compatibility: you can always use a client protocol version \u003cem\u003eolder\u003c/em\u003e than the versions your cluster is running. However, you can’t use a newer client version than the one your cluster is running.\u003c/p\u003e\n\u003cp\u003eDuring the upgrade, you must keep your client on a version equal or lower than the version you’re upgrading \u003cem\u003efrom\u003c/em\u003e. After the upgrade finishes, denoted by the status in \u003ccode\u003eheroku kafka:wait\u003c/code\u003e, you can start using a new protocol version and any new features it supports. Heroku doesn’t require it, but recommends keeping your client on the same protocol version your cluster is running.\u003c/p\u003e\n\u003cp\u003eKeep your clusters up to date with the latest recommended version from Heroku, which is \u003ccode\u003e3.9.2\u003c/code\u003e. Heroku performs heavy testing and validation work on all new Kafka releases, including testing the upgrade procedure, and only recommends trusted versions.\u003c/p\u003e","published_at":"2026-06-30T18:10:09.226Z","meta_description":"This article describes what versions Apache Kafka on Heroku supports and when versions are deprecated.","api_url":"https://devcenter.heroku.com/api/v1/articles/36858","view_url":"https://devcenter.heroku.com/articles/kafka-on-heroku-version-support","approved":false,"submitted_for_approval_at":null}