<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sam Khera on Medium]]></title>
        <description><![CDATA[Stories by Sam Khera on Medium]]></description>
        <link>https://medium.com/@kherasam18?source=rss-452341009f79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EGWuPSrnDg_iP5pY</url>
            <title>Stories by Sam Khera on Medium</title>
            <link>https://medium.com/@kherasam18?source=rss-452341009f79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:49:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kherasam18/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Glue Layer: How Kafka Connect and Schema Registry Turn Redpanda Into a Production Data Platform]]></title>
            <link>https://medium.com/@kherasam18/the-glue-layer-how-kafka-connect-and-schema-registry-turn-redpanda-into-a-production-data-platform-84c40a8f08ba?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/84c40a8f08ba</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[red-panda]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 08:31:56 GMT</pubDate>
            <atom:updated>2026-06-12T08:31:56.297Z</atom:updated>
            <content:encoded><![CDATA[<p>Every real-time system eventually hits the same problem. The streaming backbone is working. Events are flowing. Then someone asks: how do we get data <em>from</em> our Postgres database <em>into</em> the stream? And once it’s there, how does the data warehouse know what shape the records are? And what happens when a team changes the schema next quarter?</p><p>These aren’t stream processing questions. They’re plumbing questions — and plumbing is what decides whether a streaming platform is a prototype or an actual production system. Course 5 of Redpanda University is entirely about that plumbing: the ecosystem of tools that surrounds Kafka and Redpanda, with deep hands-on focus on its two most important components — Kafka Connect for streaming ETL, and Schema Registry for schema governance.</p><p>This is where theory meets engineering operations. Here’s what actually matters.</p><h3>Why Ecosystem Matters More Than Platform</h3><p>A stream processing platform without an ecosystem is a clever message queue. The ecosystem is what makes it a system.</p><p><strong>The Kafka API-compatibility advantage Redpanda inherits:</strong></p><ul><li>Every monitoring tool built for Kafka works with Redpanda without modification</li><li>Every Kafka Connect connector — and there are hundreds — works against Redpanda brokers</li><li>Every Kafka client library (Java, Python, Go, .NET) connects to Redpanda with one config change</li><li>Kafka Streams, Flink, Spark Streaming — all compatible out of the box</li></ul><p><strong>The ecosystem map across five categories:</strong></p><p><strong>Monitoring:</strong> Burrow for consumer lag, Kafka Exporter for system metrics, Cruise Control for self-healing clusters, Prometheus + Grafana for unified observability. Redpanda adds native Prometheus scraping — no custom exporter needed, unlike legacy Kafka.</p><p><strong>Administration:</strong> Redpanda Console (formerly Kowl) stands out as a single pane of glass — it integrates with Kafka Connect <em>and</em> Schema Registry natively, making it the most operationally complete UI in the space. AKHQ, Kafka UI, and kafdrop cover simpler needs.</p><p><strong>Stream Processing Frameworks:</strong></p><ul><li>Apache Flink: Python, Java, SQL — true streaming and batch; battle-tested at Netflix and Alibaba</li><li>Kafka Streams: Java-only, stateful processing, built into Kafka</li><li>Spark Streaming: micro-batch, Databricks heritage</li><li>Bytewax: Python with a Rust engine — genuine streaming, growing adoption</li></ul><p><strong>SQL Interfaces:</strong> Materialize, ksqlDB, FlinkSQL, and Arroyo all lower the barrier to stream processing dramatically — continuous SQL against live event streams without writing a framework application.</p><p><strong>Deployment Automation:</strong> Redpanda’s own Ansible playbooks, Terraform modules, and Helm charts make production deployment first-class — not an afterthought.</p><blockquote><em>The strategic insight: Redpanda doesn’t need to rebuild the ecosystem from scratch. API compatibility means it inherits everything Kafka built. The question is what Redpanda </em>adds<em> — and in Kafka Connect and Schema Registry, the answer is meaningful.</em></blockquote><h3>Part 1 — Kafka Connect: Streaming ETL Done Properly</h3><h3>The Problem It Solves</h3><p>Modern organizations practice what’s called <em>polyglot persistence</em> — using the right database for each job. Transactional data lives in Postgres. Analytics run on Snowflake or Redshift. Search runs on Elasticsearch. User state sits in Redis. Graph relationships live in Neo4j.</p><p><strong>The challenge polyglot persistence creates:</strong></p><ul><li>Data needs to move continuously between these systems</li><li>Batch ETL jobs (hourly, nightly) produce too much latency for real-time use cases</li><li>Dual-writing (writing to two systems at once in application code) creates consistency risk and adds operational complexity</li><li>Point-to-point integration doesn’t scale — N systems with M connections each is an operational nightmare</li></ul><p><strong>What Kafka Connect does instead:</strong></p><ul><li>Every system connects <em>once</em> to Redpanda — source systems push in, sink systems pull out</li><li>Redpanda becomes the central hub — one durable, replicated log that every system reads from or writes to</li><li>Data moves continuously, in real time, with low latency</li><li>The connection logic is defined in JSON config files — no application code required for the ETL layer itself</li></ul><h3>Architecture — What’s Actually Running</h3><p>Kafka Connect is a separate cluster — its own JVM processes, connected to your Redpanda cluster over the standard Kafka API.</p><pre>┌─────────────────────────────────────────────────────────────────┐<br>│                     Kafka Connect Cluster                       │<br>│                                                                 │<br>│  ┌──────────────┐    ┌──────────────┐    ┌──────────────────┐  │<br>│  │  Connector   │    │    Task      │    │     Worker       │  │<br>│  │ (defines the │───▶│ (unit of     │───▶│  (JVM process    │  │<br>│  │    logic)    │    │    work)     │    │  that runs tasks) │  │<br>│  └──────────────┘    └──────────────┘    └──────────────────┘  │<br>│                                                                 │<br>│  Converter: serializes/deserializes data (JSON, Avro, etc.)     │<br>│  REST API at :8083 — create, update, delete, monitor            │<br>└─────────────────────────────────────────────────────────────────┘<br>              │                                │<br>     ┌────────▼──────┐              ┌──────────▼──────┐<br>     │  Source DB    │              │  Redpanda        │<br>     │  (Postgres)   │              │  Cluster         │<br>     └───────────────┘              └─────────────────┘</pre><p><strong>The four key components, precisely defined:</strong></p><ul><li><strong>Connector:</strong> Defines the integration logic — which class to use, which database to connect to, which table to read from. It’s a configuration object, not code.</li><li><strong>Task:</strong> The unit of actual work. A connector can spawn multiple tasks for parallelism. tasks.max controls the ceiling.</li><li><strong>Worker:</strong> The JVM process that actually runs tasks. Multiple workers provide fault tolerance — if one worker dies, tasks are redistributed to surviving workers.</li><li><strong>Converter:</strong> Handles serialization between the connector and Redpanda. JSON by default. Avro when Schema Registry is in play.</li></ul><p><strong>Why Kafka Connect stores its own state in Redpanda topics:</strong></p><p>This is a design choice worth understanding. When Kafka Connect starts, it creates three internal topics automatically:</p><pre>connect-configs    — stores connector configuration<br>connect-offsets    — tracks where each source connector has read up to<br>connect-status     — shares status updates across worker nodes</pre><ul><li>Connector config survives worker restarts — because Redpanda persists the topic</li><li>Multiple workers share state by reading from the same internal topics — no separate coordination database</li><li>The tradeoff: you now have “system” topics in your cluster that must not be deleted or altered</li></ul><p>This is clever engineering — Kafka Connect bootstraps its own distributed coordination on top of the message bus it’s connecting to.</p><h3>SMTs — The In-Line Transformation Layer</h3><p>Between source and sink, you can attach <em>Single Message Transforms</em> — lightweight per-record operations that don’t require a separate stream processing framework:</p><ul><li>Masking a field value (credit card numbers, PII)</li><li>Adding or renaming fields</li><li>Routing records to different output topics based on a field value</li><li>Dropping fields that shouldn’t reach the sink</li></ul><p><strong>The important constraint:</strong> SMTs operate on one record at a time with no access to state or other records. For joins, aggregations, or enrichment that requires looking at multiple events, you need a proper stream processor downstream. SMTs are the lightweight lane.</p><h3>Hands-On: Postgres → Redpanda → MySQL</h3><p>The course walks through a complete Streaming ETL pipeline using Docker Compose with five services: a Redpanda broker, a Kafka Connect cluster (using the Debezium image), Redpanda Console, Postgres (source), and MySQL (sink).</p><p><strong>Why Debezium?</strong> Debezium provides production-grade source connectors for Postgres, MySQL, SQL Server, MongoDB, Cassandra, and more. Crucially, it uses <em>Change Data Capture (CDC)</em> rather than polling — it reads directly from Postgres’s Write-Ahead Log (WAL) to capture every insert, update, and delete in real time.</p><p>The difference matters:</p><ul><li><strong>CDC (Debezium):</strong> Reads WAL → captures every change in real time, including deletes → minimal database load → true replication</li><li><strong>Polling (JDBC source without CDC):</strong> SELECT * WHERE updated_at &gt; last_checked every N seconds → misses deletes entirely → N-second latency floor → additional database load on every poll</li></ul><p>For serious replication workloads, CDC is the only correct approach.</p><p><strong>Creating the Postgres source connector — the full configuration:</strong></p><pre>{<br>    &quot;name&quot;: &quot;postgres-source&quot;,<br>    &quot;config&quot;: {<br>        &quot;connector.class&quot;: &quot;io.debezium.connector.postgresql.PostgresConnector&quot;,<br>        &quot;database.hostname&quot;: &quot;postgres&quot;,<br>        &quot;database.dbname&quot;: &quot;root&quot;,<br>        &quot;database.user&quot;: &quot;root&quot;,<br>        &quot;database.password&quot;: &quot;secret&quot;,<br>        &quot;plugin.name&quot;: &quot;pgoutput&quot;,<br>        &quot;topic.prefix&quot;: &quot;pg&quot;,<br>        &quot;topic.creation.default.replication.factor&quot;: 1,<br>        &quot;topic.creation.default.partitions&quot;: 4,<br>        &quot;key.converter&quot;: &quot;org.apache.kafka.connect.json.JsonConverter&quot;,<br>        &quot;value.converter&quot;: &quot;org.apache.kafka.connect.json.JsonConverter&quot;,<br>        &quot;tasks.max&quot;: 3<br>    }<br>}</pre><p>Deploy with a single curl:</p><pre>curl -X POST \<br>  -H &quot;Content-Type: application/json&quot; \<br>  --data @connect-configs/postgres-source.json \<br>  http://localhost:8083/connectors</pre><p>Once running, Kafka Connect auto-creates the topic pg.public.purchases (following the &lt;prefix&gt;.&lt;database&gt;.&lt;table&gt; naming convention) and begins streaming records from Postgres into Redpanda continuously.</p><p><strong>The sink connector (Redpanda → MySQL) closes the loop:</strong></p><p>Using the JDBC Sink Connector (also from Debezium), records from the Redpanda topic flow into MySQL automatically. Insert a new row into Postgres, and within seconds it appears in MySQL — through Redpanda, with no application code, no batch job, no cron schedule.</p><p><strong>The Kafka Connect REST API — full operational control:</strong></p><pre># Create a connector<br>curl -X POST -H &quot;Content-Type: application/json&quot; \<br>  --data @config.json http://localhost:8083/connectors</pre><pre># Check connector health<br>curl <a href="http://localhost:8083/connectors/postgres-source/status">http://localhost:8083/connectors/postgres-source/status</a> | json_pp</pre><pre># Restart a failed task<br>curl -X POST <a href="http://localhost:8083/connectors/postgres-source/tasks/0/restart">http://localhost:8083/connectors/postgres-source/tasks/0/restart</a></pre><pre># Update connector configuration<br>curl -X PUT -H &quot;Content-Type: application/json&quot; \<br>  --data @updated-config.json \<br>  <a href="http://localhost:8083/connectors/postgres-source/config">http://localhost:8083/connectors/postgres-source/config</a></pre><pre># Delete a connector<br>curl -X DELETE <a href="http://localhost:8083/connectors/postgres-source">http://localhost:8083/connectors/postgres-source</a></pre><p>Every operational action — create, inspect, restart, update, delete — goes through the REST API. This makes Kafka Connect scriptable, automatable, and CI/CD-friendly.</p><h3>Part 2 — Schema Registry: The Contract Layer for Decoupled Systems</h3><h3>The Problem That Pub/Sub Creates</h3><p>Back in Course 1, we established that Pub/Sub’s decoupling is its greatest strength — producers and consumers don’t know about each other. But decoupling creates a coordination gap:</p><blockquote>If a producer changes its data format, how does any consumer know?</blockquote><p>With direct connections, a producer and consumer negotiate formats explicitly. In Pub/Sub, there’s no negotiation. A producer can rename a field from user_id to userId, and every downstream consumer silently fails. The topic is schemaless — Redpanda accepts any bytes. That&#39;s flexible, but it&#39;s also an accident waiting to happen at scale.</p><p><strong>The failure mode without Schema Registry:</strong></p><ul><li>Team A adds a new field to their purchase record</li><li>Team A’s producer starts writing the new format</li><li>Team B’s consumer, which expects the old format, begins throwing deserialization errors</li><li>Team B has to scramble, figure out what changed, update their code, deploy</li><li>Nobody is happy; the incident post-mortem blames “lack of communication”</li></ul><p>This isn’t a communication problem. It’s an architecture problem. Schema Registry solves it at the infrastructure layer.</p><h3>What Schema Registry Actually Does</h3><p>Schema Registry is a versioned, shared contract store for data formats:</p><ul><li><strong>Producers register their schema</strong> before writing — or on first write</li><li><strong>Consumers retrieve the schema</strong> by ID when reading — or from local cache after the first lookup</li><li><strong>Schema Registry enforces compatibility rules</strong> — if a proposed schema change would break the stated compatibility guarantee, the registration is rejected</li><li><strong>All schemas are versioned</strong> — multiple versions coexist, enabling rolling upgrades without coordination outages</li></ul><p><strong>Why Redpanda’s implementation is operationally significant:</strong></p><p>Confluent Schema Registry is a separate Java service — its own process, its own HA setup, its own ZooKeeper or Kafka cluster for schema storage. That’s another service to deploy, configure, secure, monitor, scale, and patch.</p><p>Redpanda bundles Schema Registry directly into the broker process. It runs on port 8081 with no additional configuration, stores schemas in the _schemas Redpanda topic (durable, replicated, fault-tolerant by default), and exposes the same Confluent-compatible REST API. From the application&#39;s perspective, it&#39;s identical. From the operations perspective, it doesn&#39;t exist as a separate concern.</p><p>This is not a minor convenience. In a 3-broker Redpanda cluster, Schema Registry survives any single broker failure automatically — because _schemas is replicated like any other topic. No separate high-availability setup, no separate monitoring surface, no separate upgrade process.</p><h3>How the Wire Format Works</h3><p>When Schema Registry is in use, records stored in Redpanda follow a specific encoding:</p><pre>┌────────────────────────────────────────────────────────────────────┐<br>│                    Encoded Record Layout                            │<br>├───────────────┬─────────────────────┬───────────────────────────── ┤<br>│  Magic Byte   │     Schema ID       │       Avro Payload           │<br>│   (1 byte)    │     (4 bytes)       │       (N bytes)              │<br>│    0x00       │   e.g. 0x00000001   │   compact binary data        │<br>└───────────────┴─────────────────────┴──────────────────────────────┘</pre><ul><li><strong>Magic byte (0x00):</strong> Signals to any deserializer that this record uses Schema Registry encoding. Any consumer seeing 0x00 as the first byte knows to look up the schema.</li><li><strong>Schema ID (4 bytes):</strong> Integer ID of the schema version used to serialize this specific record. Not the full schema — just its ID.</li><li><strong>Payload:</strong> The actual binary Avro (or Protobuf) data, compact and without embedded field names.</li></ul><p><strong>The performance characteristic that makes this scale:</strong></p><p>The schema ID lookup is a network call on the first encounter with each schema version — and then it’s cached. Consumer libraries hold an in-memory schema cache for the lifetime of the process. Every subsequent record with the same schema ID is deserialized entirely from cache. No network call. No overhead. The cost of schema governance is front-loaded and then essentially free.</p><p><strong>Compare this to JSON at scale:</strong></p><ul><li>A JSON record for a purchase includes the full field names in every record: {&quot;user_id&quot;: ..., &quot;product_id&quot;: ..., &quot;quantity&quot;: ..., ...}</li><li>At a million records per second, those repeated field names are significant bandwidth overhead</li><li>JSON provides no schema enforcement — a malformed record fails silently until a consumer hits a parse error</li><li>No versioning — schema changes are coordination problems, not infrastructure problems</li></ul><p>Avro eliminates all three issues. Compact binary payload. Schema enforcement at registration time. Versioning built in.</p><h3>Schema Subjects, Versions, and the Naming Convention</h3><p><strong>Subjects</strong> are the named containers for schemas in Schema Registry. By convention:</p><ul><li>&lt;topic-name&gt;-key for the record key schema</li><li>&lt;topic-name&gt;-value for the record value schema</li></ul><p>So a topic called purchases would have subjects purchases-key and purchases-value. Each subject holds one or more versions — immutable snapshots of the schema at a point in time.</p><p><strong>The full CRUD API:</strong></p><pre># Register a new schema version<br>curl -X POST \<br>     -H &quot;Content-Type: application/vnd.schemaregistry.v1+json&quot; \<br>     --data &quot;$(jq -Rs &#39;{schema: .}&#39; &lt; purchase-value.avsc)&quot; \<br>     http://localhost:8081/subjects/purchase-value/versions<br># Response: {&quot;id&quot;: 1}</pre><pre># Test compatibility before registering<br>curl -X POST \<br>     -H &quot;Content-Type: application/vnd.schemaregistry.v1+json&quot; \<br>     --data &quot;$(jq -Rs &#39;{schema: .}&#39; &lt; purchase-value-v2.avsc)&quot; \<br>     <a href="http://localhost:8081/compatibility/subjects/purchase-value/versions/latest">http://localhost:8081/compatibility/subjects/purchase-value/versions/latest</a><br># Response: {&quot;is_compatible&quot;: true} or {&quot;is_compatible&quot;: false}</pre><pre># List all subjects<br>curl <a href="http://localhost:8081/subjects">http://localhost:8081/subjects</a></pre><pre># Get all versions for a subject<br>curl <a href="http://localhost:8081/subjects/purchase-value/versions">http://localhost:8081/subjects/purchase-value/versions</a></pre><pre># Retrieve a specific schema version<br>curl <a href="http://localhost:8081/subjects/purchase-value/versions/1">http://localhost:8081/subjects/purchase-value/versions/1</a> | jq .</pre><pre># Soft delete (recoverable)<br>curl -X DELETE <a href="http://localhost:8081/subjects/purchase-value/versions/1">http://localhost:8081/subjects/purchase-value/versions/1</a></pre><pre># Permanent delete (irreversible, reclaims disk)<br>curl -X DELETE &quot;http://localhost:8081/subjects/purchase-value?permanent=true&quot;</pre><h3>Compatibility Levels — This Is What Matters in Production</h3><p>Compatibility levels are the rules Schema Registry enforces when you try to register a new schema version. Getting this right is what makes rolling deployments work without coordination outages.</p><p>Level What It Allows Upgrade Order <strong>BACKWARD</strong> (default) New consumers can read old records Deploy consumers first, then producers <strong>FORWARD</strong> Old consumers can read new records Deploy producers first, then consumers <strong>FULL</strong> Both BACKWARD and FORWARD simultaneously Any order <strong>NONE</strong> Anything — no validation Development only</p><p><strong>BACKWARD compatibility (the most common):</strong></p><p>A BACKWARD-compatible schema change means that code running the <em>new</em> schema can still read records written with the <em>old</em> schema. This matters during rolling upgrades: while you’re deploying new consumers, old records (written before the deployment) still need to be readable.</p><p><strong>The rule that makes BACKWARD compatibility work in Avro:</strong></p><blockquote><em>Adding a new field is BACKWARD compatible </em>only if it has a default value<em>.</em></blockquote><pre>// Safe — has a default<br>{&quot;name&quot;: &quot;merchant_id&quot;, &quot;type&quot;: &quot;int&quot;, &quot;default&quot;: 0}</pre><pre>// Breaks BACKWARD compatibility — no default<br>{&quot;name&quot;: &quot;merchant_id&quot;, &quot;type&quot;: &quot;int&quot;}</pre><p>Without the default, old records don’t have the field. New consumers try to deserialize old records — no merchant_id field present — deserialization fails. With the default, Avro fills in the value automatically. Schema Registry won&#39;t let you register the non-default version under BACKWARD compatibility. This is the guardrail working exactly as intended.</p><p><strong>An incompatible change that Schema Registry will reject:</strong></p><p>Renaming id to purchase_id looks harmless in a codebase review. Under BACKWARD compatibility, it&#39;s a breaking change — old records have id, new consumers expect purchase_id, deserialization fails for every record written before the deployment. Schema Registry catches this at registration time, before it hits production.</p><h3>Integrating Schema Registry with Kafka Connect</h3><p>The course’s final chapter combines both components — Kafka Connect sources and sinks running with Avro encoding instead of JSON.</p><p><strong>The change is in the connector’s converter configuration:</strong></p><pre>{<br>    &quot;value.converter&quot;: &quot;io.confluent.connect.avro.AvroConverter&quot;,<br>    &quot;value.converter.schema.registry.url&quot;: &quot;http://redpanda-1:8081&quot;<br>}</pre><p><strong>What happens automatically:</strong></p><ul><li>Kafka Connect with the Avro converter <em>auto-registers</em> the schema derived from the source database table structure when the first records are written</li><li>The subject pg.public.purchases-value appears in Schema Registry without any manual schema definition</li><li>Records flowing through Redpanda are now compact binary Avro, not verbose JSON</li><li>Redpanda Console, connected to Schema Registry, decodes them automatically in the UI</li></ul><p><strong>The Debezium envelope format:</strong></p><p>Debezium source connectors wrap records in a before/after envelope:</p><ul><li>before: the state of the row before the operation (null for inserts)</li><li>after: the state of the row after the operation (null for deletes)</li><li>op: the operation type (c = create, u = update, d = delete)</li></ul><p>This envelope is what makes CDC powerful — it captures the full change history, not just the current state of a row.</p><h3>What the Course Doesn’t Cover (That Production Systems Require)</h3><p>I want to be specific here, because these gaps are first-week production problems:</p><p><strong>Dead-letter queues (DLQs) for Kafka Connect:</strong></p><ul><li>The course shows the happy path — connectors running, data flowing, all records processed</li><li>What happens when a record is malformed and the sink connector can’t process it?</li><li>Without DLQ configuration, a bad record blocks the entire connector — the task fails and stops</li><li>With DLQ: bad records are routed to a separate topic for manual inspection, the pipeline continues</li><li>This is table stakes for production ETL. Not mentioned.</li></ul><p><strong>Connector performance tuning:</strong></p><ul><li>tasks.max is introduced but never explained in depth</li><li>The relationship between tasks and partitions matters: Kafka Connect assigns one partition per task (roughly) — if your topic has 4 partitions, 4 tasks is the parallelism ceiling</li><li>Setting tasks.max too high wastes resources; too low creates throughput bottlenecks</li><li>Not covered.</li></ul><p><strong>Schema Registry with producers and consumers directly:</strong></p><ul><li>The course only demonstrates Schema Registry via Kafka Connect’s auto-registration</li><li>A Python or Java producer using the Avro serializer explicitly — registering schemas, controlling subject names, handling serialization errors — is never shown</li><li>This is the pattern you’ll actually write in application code. Missing.</li></ul><p><strong>FORWARD and FULL compatibility hands-on:</strong></p><ul><li>Only BACKWARD compatibility is demonstrated end-to-end</li><li>FORWARD and FULL are explained in a table but never exercised</li><li>In practice, the right compatibility level is a design decision — understanding all three matters</li></ul><p><strong>Connector security:</strong></p><ul><li>Connector configs in JSON files contain plaintext passwords</li><li>No mention of how to use secret management (Vault, environment variables, Kafka Connect’s secret providers) to avoid hardcoded credentials</li><li>No mention of securing the Kafka Connect REST API (which is unauthenticated by default)</li><li>This is a significant security gap for anyone taking notes toward production deployment</li></ul><p><strong>Monitoring Kafka Connect itself:</strong></p><ul><li>The course shows how to check connector status via REST</li><li>But there’s no discussion of how to alert on connector failure, monitor task lag, or integrate Kafka Connect metrics with Prometheus/Grafana</li><li>Kafka Connect exposes JMX metrics. Redpanda’s first-party monitoring story doesn’t extend to the Connect cluster — you’re on your own there</li></ul><p><strong>Protobuf:</strong></p><ul><li>Listed as a supported Schema Registry format, never demonstrated</li><li>For teams using gRPC internally, Protobuf with Schema Registry is the natural choice</li><li>A single Protobuf example would round out the schema governance story considerably</li></ul><h3>The Bigger Picture: What This Course Teaches You About System Design</h3><p>Kafka Connect and Schema Registry aren’t just tools. They represent two architectural patterns that show up in every serious streaming system:</p><p><strong>Pattern 1 — The Hub-and-Spoke Integration Model</strong></p><p>Without Redpanda as the hub, N systems with direct connections need O(N²) integrations. With Redpanda as the hub, each system connects once — source systems push in, sink systems pull out. The complexity is O(N). Kafka Connect operationalizes this at the infrastructure layer: connection logic lives in config files, not application code.</p><p><strong>Pattern 2 — Schema as Infrastructure</strong></p><p>In a monolith, data contracts between components are enforced by the compiler or the framework. In a distributed Pub/Sub system, there’s no compiler, no shared runtime, and no built-in enforcement. Schema Registry is the substitute — it pushes contract enforcement down into the message bus layer, where it can catch violations before they reach production consumers.</p><p>This is the correct level of abstraction. Asking teams to coordinate schema changes manually through documentation and communication is asking humans to do what machines should do.</p><p><strong>The Redpanda-specific advantage:</strong></p><p>Confluent’s version of this story requires you to operate a Kafka cluster, a Schema Registry service, and a Kafka Connect cluster — three separate operational surfaces. Redpanda collapses Schema Registry into the broker, provides first-class Helm charts and Terraform modules for the Connect cluster, and gives you Redpanda Console as a unified UI that spans all three. It’s not a revolutionary difference, but it’s a meaningful one — especially in the first few weeks of a production deployment, when operational surface area is the enemy.</p><h3>Final Note</h3><p>The most underrated skill in platform engineering is knowing where your abstraction layer should live. Data format contracts can live in documentation, in application code, in API schemas, or in infrastructure. The streaming ecosystem learned — through years of production incidents — that the only durable answer is infrastructure.</p><p>Schema Registry is that infrastructure. Kafka Connect is what makes Redpanda the center of your data movement story rather than one system among many. Together, they transform a high-performance message log into a proper data platform.</p><p>Redpanda’s version of this story is simpler to operate than Kafka’s — fewer services, tighter integration, native Schema Registry. But simpler doesn’t mean simple. The gaps this course leaves around DLQ configuration, connector security, and schema evolution in application code are where production systems actually break.</p><p>Learn the happy path from the course. Then go build the error paths yourself. That’s where the real learning is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SV34_rPiUKtrtuU7Wpm86Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84c40a8f08ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Four Ways to Process a Stream: What Redpanda’s Ecosystem Actually Teaches You]]></title>
            <link>https://medium.com/@kherasam18/four-ways-to-process-a-stream-what-redpandas-ecosystem-actually-teaches-you-618e52a1e423?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/618e52a1e423</guid>
            <category><![CDATA[red-panda]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Fri, 29 May 2026 02:31:00 GMT</pubDate>
            <atom:updated>2026-05-29T02:31:00.614Z</atom:updated>
            <content:encoded><![CDATA[<p>Most engineers I know learn stream processing the wrong way. They start with a framework — Kafka Streams, Flink, Spark Streaming — and treat it as the only tool in the room. Then production arrives, and they realize that their fraud detection job, their ETL pipeline, and their in-flight masking requirement all need different things. The framework that was “good enough” for one use case is overkill, underpowered, or just wrong for another.</p><p>Redpanda’s stream processing story is interesting precisely because it <em>doesn’t</em> try to sell you one tool. It offers four distinct approaches — each with a different trade-off profile — and lets you pick the right one for the job. After working through Course 4 of Redpanda University, here’s what I actually think about each of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbsDU6yw05o7DC64y8oS5w.png" /></figure><h3>What Stream Processing Is (and What It Isn’t)</h3><p>Before getting into tools, let’s establish what we’re actually trying to do.</p><p><strong>Stream processing is not the opposite of batch processing.</strong> It’s a different mode:</p><ul><li><strong>Batch:</strong> Accumulate data, then run a query over it at a scheduled time. Simple, predictable, easy to reason about.</li><li><strong>Stream:</strong> Run a continuous query. Data arrives, you react to it — immediately, always-on, no schedule.</li></ul><p><strong>Neither is universally better.</strong> The right framing is:</p><ul><li>Use streaming when the value of data decays quickly — fraud detection, real-time inventory, patient vitals, algorithmic trading.</li><li>Use batch when you need historical accuracy, reprocessing capability, or the use case simply isn’t time-sensitive.</li></ul><p><strong>Most serious production systems use both.</strong> Lambda architecture formalizes this — a batch layer for historical correctness and a stream layer for real-time. Kappa simplifies it — stream only, with log replay as the substitute for batch reprocessing. Redpanda’s immutable, replayable log actually makes Kappa much more practical than it was in the Kafka 0.10 era: your log <em>is</em> your batch layer, especially when tiered storage lets you keep years of events in S3 cheaply.</p><p><strong>The real-world use cases that make stream processing non-negotiable:</strong></p><ul><li>Catching fraud <em>before</em> a transaction settles — not a report the next morning</li><li>Monitoring patient vitals and triggering alerts when trends deteriorate</li><li>Running ML inference on every event in-stream — recommendations, NLP, anomaly detection</li><li>Keeping inventory counts accurate in real-time across distributed warehouses</li><li>Epidemiology: population-level health signals that can’t wait for a nightly batch</li></ul><h3>Tool 1 — Redpanda Data Transforms: The Approach Nobody Else Has</h3><p>This is the one that genuinely surprised me.</p><p>Redpanda Data Transforms lets you deploy <strong>WebAssembly (Wasm) functions directly into the broker</strong>. Not as a separate process. Not as a sidecar. <em>Inside</em> the broker, co-located with the data.</p><p><strong>What this changes architecturally:</strong></p><ul><li>Traditional stream processing (Kafka Streams, Flink, Spark): record is written to topic → serialized → sent over network → deserialized → processed → result serialized → sent back over network → written to output topic. Every record makes a round-trip.</li><li>Redpanda Data Transforms: record is written to topic → Wasm function runs in-place → result is written to output topic. No network hop. No external process to manage.</li></ul><p><strong>The practical setup (TinyGo as the language):</strong></p><ul><li>Bootstrap: rpk transform init --language=tinygo --name=mask-card</li><li>Build (compiles Go source → Wasm binary): rpk transform build</li><li>Deploy: rpk transform deploy --input-topic=purchases --output-topic=purchases_masked</li><li>The Wasm binary is replicated across the cluster like any other Kafka topic — fault tolerant by design</li></ul><p><strong>What makes the programming model clean:</strong></p><ul><li>You register a function with transform.OnRecordWritten(yourFunction)</li><li>The function receives a record, you parse it, modify it, write the modified record to the output topic</li><li>Bad records go to a Dead Letter Queue (DLQ) — a separate topic for records that fail to parse — rather than crashing the transform</li><li>Logs from the transform are written to _redpanda.transform_logs, a built-in Redpanda topic — no separate log shipping required</li></ul><p><strong>The credit card masking example from the course (condensed):</strong></p><pre>func maskCard(event transform.WriteEvent, writer transform.RecordWriter) error {<br>    var recordMap map[string]interface{}<br>    if err := json.Unmarshal(event.Record().Value, &amp;recordMap); err != nil {<br>        return writer.Write(event.Record(), transform.ToTopic(&quot;DLQ&quot;))<br>    }<br>    if cardNumber, exists := recordMap[&quot;card_number&quot;].(string); exists &amp;&amp; len(cardNumber) &gt; 4 {<br>        recordMap[&quot;card_number&quot;] = &quot;************&quot; + cardNumber[len(cardNumber)-4:]<br>    }<br>    modifiedValue, _ := json.Marshal(recordMap)<br>    return writer.Write(transform.Record{Key: event.Record().Key, Value: modifiedValue})<br>}</pre><p><strong>Important operational characteristics to know:</strong></p><ul><li>Transforms read from the <strong>latest offset</strong> by default — they don’t retroactively process existing records</li><li>Transforms run <strong>after</strong> the record is successfully written to disk — they never block the produce path</li><li>If a partition changes leadership, the transform automatically migrates to the new leader’s shard</li><li>CPU time is dynamically allocated to the Wasm runtime so it can’t starve the broker</li></ul><p><strong>Where it genuinely falls short:</strong></p><ul><li>No stateful operations — you cannot count across records, maintain running totals, or detect patterns over time</li><li>No external system access — no outbound HTTP calls, no database lookups inside the transform</li><li>Language support is limited today (TinyGo, Rust) — most data engineers reaching for Python will hit a wall</li><li>The Wasm sandbox is intentionally restrictive. That’s also what makes it safe and fast, but it’s not the right tool for complex logic.</li></ul><p><strong>Bottom line:</strong> For latency-sensitive, stateless transforms — masking, format conversion, routing, field extraction — this is the most elegant solution available in any streaming platform today. Nobody else ships this.</p><h3>Tool 2 — Redpanda Connect: Modern Streaming ETL Without the JVM Tax</h3><p>Redpanda Connect (formerly Benthos) is the right tool when you need to move data <em>between</em> systems — Postgres to Redpanda, Redpanda to Elasticsearch, S3 to Redpanda, HTTP APIs to Redpanda.</p><p><strong>What makes it different from the alternatives:</strong></p><ul><li>Entirely <strong>YAML-configured</strong> — no code required for standard pipelines</li><li>Written in Go — starts in seconds, not minutes</li><li>Includes <strong>Bloblang</strong>, a purpose-built expression language for transforming messages mid-pipeline</li><li>Ships with 200+ connectors and growing</li><li>Runs as a single process — no worker cluster to provision</li></ul><p><strong>The core pipeline structure:</strong></p><pre>input:<br>  sql_select:<br>    driver: postgres<br>    dsn: postgres://root:secret@localhost:5432/root?sslmode=disable<br>    table: purchases<br>    columns: [&#39;*&#39;]<br>pipeline:<br>  processors:<br>    - mapping: |<br>        root = this<br>        root.credit_card = &quot;REDACTED&quot;<br>output:<br>  kafka_franz:<br>    seed_brokers: [&#39;localhost:19092&#39;]<br>    topic: purchases</pre><p><strong>Reading that pipeline top-to-bottom:</strong> Pull rows from Postgres, run a Bloblang processor to redact the credit card field, write each row as a Redpanda topic message. That’s streaming ETL in under 15 lines of YAML.</p><p><strong>Bloblang is worth understanding properly:</strong></p><ul><li>root = the output document you&#39;re building</li><li>this = the current input record (read-only reference)</li><li>root = this copies everything from input to output as a baseline</li><li>Then you override specific fields: root.credit_card = &quot;REDACTED&quot;</li><li>Full expression support: math, string manipulation, conditionals, metadata access</li><li>meta credit_card = this.credit_card sets a <em>metadata field</em> (available as ${!metadata(&quot;credit_card&quot;)}) — useful for setting the Kafka record key without touching the payload</li></ul><p><strong>In the fraud detection pipeline, Connect does heavy lifting beyond simple ETL:</strong></p><ul><li>Strips the dollar sign from $12.99 and converts to a float: root.amount = this.amount.replace_all(&quot;$&quot;,&quot;&quot;).number()</li><li>Converts timestamp to Unix milliseconds: root.timestamp = this.timestamp.ts_unix_milli()</li><li>Encodes the record to Avro using schema_registry_encode before writing to Redpanda — so the downstream Kafka Streams app gets typed objects, not raw JSON</li><li>Sets the record key to the credit card number so all purchases from the same card land in the same partition</li></ul><p><strong>Where Redpanda Connect hits its ceiling:</strong></p><ul><li><strong>Stateless only</strong> — no joins, no windowing, no aggregations across records</li><li>No interactive queries — you can’t ask the pipeline “what’s the current count for card X?”</li><li>Limited deployment tooling compared to Kafka Connect’s mature cluster management</li><li>The connector ecosystem (200+) is growing but still narrower than Kafka Connect’s 500+ connectors on Confluent Hub</li></ul><h3>Tool 3 — Kafka Connect: The Enterprise Option (With Its Costs)</h3><p>Kafka Connect is Redpanda’s backward-compatible access to the entire Kafka ecosystem’s connector library. If you’re running Redpanda in an organization that already has Kafka Connect infrastructure, you can point those workers at Redpanda and nothing breaks.</p><p><strong>How it works:</strong></p><ul><li>Distributed cluster of JVM workers (Kafka Connect workers)</li><li>Connectors are JARs installed into the plugin path</li><li>Configuration is managed via a REST API (JSON payloads) — no YAML files</li><li>Source connectors pull from external systems into topics; sink connectors push from topics into external systems</li><li>Scales by adding more workers to the cluster</li></ul><p><strong>The SMT (Single Message Transform) mechanism:</strong></p><p>Kafka Connect’s version of inline processing is called Single Message Transforms. You chain them in the connector configuration:</p><pre>&quot;transforms&quot;: &quot;mask&quot;,<br>&quot;transforms.mask.type&quot;: &quot;org.apache.kafka.connect.transforms.MaskField$Value&quot;,<br>&quot;transforms.mask.fields&quot;: &quot;credit_card&quot;,<br>&quot;transforms.mask.replacement&quot;: &quot;REDACTED&quot;</pre><p><strong>SMTs vs. Bloblang — this comparison matters:</strong></p><ul><li>SMTs operate on one record at a time, with access only to that record’s fields</li><li>No conditionals based on content, no access to time, no stateful logic</li><li>You’re specifying transformations as Java class references — verbose and not composable</li><li>Bloblang, by contrast, is a full expression language. The gap in ergonomics is significant.</li></ul><p><strong>The JVM startup problem is real:</strong></p><ul><li>Kafka Connect takes 5–6 minutes to fully initialize in the lab environment</li><li>In production, this means slow deploys, slow restarts after failures, and expensive autoscaling</li><li>Redpanda Connect starts in seconds — meaningful difference when you’re incident-managing at 2 AM</li></ul><p><strong>When Kafka Connect is the right call:</strong></p><ul><li>Your organization has existing Kafka Connect clusters and connector investments you can’t throw away</li><li>You need a specific connector that only exists in the Confluent Hub ecosystem</li><li>Enterprise support contracts and certified connectors are a hard requirement</li><li>You’re already deeply in the JVM/Java world and the operational overhead is already paid for</li></ul><p><strong>The honest assessment:</strong> If you’re building something new from scratch, Redpanda Connect is the better choice in almost every dimension. Kafka Connect’s only real advantage is connector breadth and enterprise ecosystem inertia.</p><h3>Tool 4 — Kafka Streams: When You Actually Need State</h3><p>Everything above is stateless. Kafka Streams is where you go when your problem requires memory of the past.</p><p><strong>What “stateful” actually means in practice:</strong></p><ul><li>Stateless: every record is processed independently. You mask a field, you route a message, you convert a format. No memory of what came before.</li><li>Stateful: the output for record N depends on records 1 through N-1. You’re counting, averaging, detecting patterns, joining streams, computing running totals over time windows.</li></ul><p><strong>Kafka Streams is a Java library, not a separate cluster:</strong></p><ul><li>Add the dependency to pom.xml</li><li>Write a Topology — a directed graph of sources, processors (operators), and sinks</li><li>Run it like any Java application</li><li>Scale by running multiple instances — they coordinate via Redpanda consumer groups automatically</li></ul><p><strong>The topology DSL is clean:</strong></p><pre>builder.stream(&quot;purchases&quot;, Consumed.with(Serdes.String(), Serdes.String()))<br>    .groupByKey()<br>    .count()<br>    .toStream()<br>    .print(Printed.&lt;String, Long&gt;toSysOut().withLabel(&quot;purchases&quot;));</pre><ul><li>stream() — read from a topic</li><li>groupByKey() — group records with the same key (SQL GROUP BY equivalent)</li><li>count() — stateful count per group → returns a <strong>KTable</strong> (latest value per key)</li><li>toStream() — convert back to an event stream</li></ul><p><strong>KStream vs. KTable — understand this distinction:</strong></p><ul><li><strong>KStream</strong>: an event-by-event view. Every record is a new event. You see every purchase.</li><li><strong>KTable</strong>: a table view. Only the <em>latest</em> value per key. You see the current count per user.</li><li>Aggregations always produce KTables. KTables can be converted back to KStreams. Both can be joined.</li></ul><p><strong>The state persistence mechanism is the killer feature:</strong></p><ul><li>State is stored in <strong>RocksDB</strong> — an embedded key-value database that runs inside your application process</li><li>Every RocksDB write is also written to a <strong>Redpanda changelog topic</strong> — a compacted topic that retains only the latest value per key</li><li>If your app crashes and restarts, it replays the changelog to restore all state — counts, aggregations, all of it</li><li>This means state is durable, replicated (Redpanda replicates the changelog like any other topic), and queryable via Kafka Streams’ Interactive Queries API</li></ul><p><strong>Windowed aggregations — the fraud detection core:</strong></p><p>A tumbling window is a fixed-size, non-overlapping time bucket:</p><pre>KTable&lt;Windowed&lt;String&gt;, Long&gt; purchaseCounts = purchases<br>    .groupByKey()<br>    .windowedBy(TimeWindows.ofSizeWithNoGrace(Duration.ofSeconds(60)))<br>    .count();</pre><ul><li>Every 60 seconds, a new window opens</li><li>Records are counted within their window</li><li>When a window closes, its count is final</li><li>The filter step catches anything at 3 or above: .filter((key, count) -&gt; count &gt;= 3)</li></ul><p><strong>Kafka Streams works with Redpanda with zero code changes:</strong></p><ul><li>It’s a standard Kafka client library — just point bootstrap.servers at Redpanda&#39;s brokers</li><li>No forks, no compatibility layers, no patched dependencies</li><li>Redpanda’s Kafka API compatibility means every Kafka Streams feature works — including transactions, exactly-once semantics, and consumer group coordination</li></ul><h3>The Capstone: Fraud Detection End-to-End</h3><p>The course’s final chapter assembles all of this into a real system. Here’s the complete architecture:</p><pre>[Postgres DB]<br>     |<br>     ▼ (Redpanda Connect — Avro encoding, credit card as record key)<br>[purchases topic]  ←── Binary Avro records<br>     |<br>     ▼ (Kafka Streams — HighPurchaseCountTopology)<br>     - Deserialize Avro → typed Purchase objects (via Schema Registry)<br>     - groupByKey() + windowedBy(60s tumbling) + count()<br>     - filter: count &gt;= 3<br>     - map: Purchase → Alert<br>     |<br>     ├──▶ [alerts-avro topic]  (machine consumption)<br>     └──▶ [alerts-json topic]  (human-readable debugging)</pre><p><strong>Why this architecture is well-designed:</strong></p><ul><li>The credit card number as the record key is intentional — all purchases from the same card land in the same partition, handled by one Kafka Streams task. No rekeying shuffle needed.</li><li>Two output topics for alerts — binary Avro for downstream consumers who need performance, JSON for debugging without a deserializer. Smart.</li><li>Redpanda Connect handles the ETL and Avro encoding. Kafka Streams handles the stateful logic. Each tool doing what it’s best at.</li></ul><h3>Avro + Schema Registry: Why This Combination Matters</h3><p><strong>The problem with JSON at scale:</strong></p><ul><li>Every JSON record includes the field names: {&quot;user_id&quot;: 1, &quot;amount&quot;: 29.99, &quot;credit_card&quot;: &quot;...&quot;}. At millions of events per second, those repeated field names are a significant overhead.</li><li>No schema enforcement — a producer can silently send a malformed record and every consumer fails with a deserialization error</li><li>No versioning — schema changes break things silently</li></ul><p><strong>What Avro solves:</strong></p><ul><li>Binary format — compact, fast to serialize/deserialize</li><li>Schema is stored once in the Schema Registry, not on every record. Each record carries only a 5-byte header (magic byte + 4-byte schema ID) plus the binary payload</li><li>Consumers fetch the schema from the registry on first use and cache it — schema discovery is automatic</li><li>Safe schema evolution: add new fields with default values and old consumers keep working (backward compatibility)</li></ul><p><strong>The Confluent wire format Redpanda implements natively:</strong></p><ul><li>Byte 0: 0x00 (magic byte)</li><li>Bytes 1–4: schema ID (4-byte integer)</li><li>Bytes 5+: Avro binary payload</li></ul><p><strong>Schema compatibility modes — the course glosses over these, but they matter in production:</strong></p><p>Mode What It Means BACKWARD (default) New schema can read data written with old schema FORWARD Old schema can read data written with new schema FULL Both directions — maximum flexibility NONE Anything goes — development only</p><p>The rule for adding fields safely: <strong>always include a default value</strong>. Without a default, adding a field breaks backward compatibility — old records don’t have the field, and deserializing them fails.</p><h3>The Tool Selection Framework</h3><p>After working through all four tools, here’s how I’d frame the decision:</p><p>Tool Best For Not For <strong>Redpanda Data Transforms</strong> Latency-sensitive, stateless in-broker operations — masking, routing, format conversion Complex logic, stateful operations, external system access <strong>Redpanda Connect</strong> Streaming ETL between external systems and Redpanda — YAML-driven, fast, modern Stateful processing, windowing, joins <strong>Kafka Connect</strong> Enterprise environments with existing Kafka connector investments New builds — operational cost not worth it vs. Connect <strong>Kafka Streams</strong> Stateful aggregations, windowed fraud detection, table/stream joins Simple ETL — it’s a Java library, the overhead isn’t justified</p><p>The honest advice: <strong>for new systems, Data Transforms + Redpanda Connect + Kafka Streams covers 95% of use cases.</strong> Kafka Connect makes sense only if you’re inheriting Kafka ecosystem infrastructure.</p><h3>What the Course Doesn’t Teach You (But Production Will)</h3><p>I want to be specific about the gaps, because they’re not minor:</p><ul><li><strong>Exactly-once semantics (EOS):</strong> The fraud detection app can crash while writing an alert. Do you get a duplicate alert? Kafka Streams supports EOS transactions, but it wasn’t covered. In a fraud system, duplicate alerts are a significant operational problem.</li><li><strong>Hopping and session windows:</strong> Only tumbling windows were demonstrated. Session windows — “3 purchases within the same <em>session</em>, however long that is” — are arguably more natural for fraud detection. Not shown.</li><li><strong>Schema evolution in practice:</strong> The course registers a schema but never shows how to add a field safely (merchant_id, say) without breaking existing consumers. This is a first-week production problem.</li><li><strong>Monitoring:</strong> No mention of how to monitor transform health, Kafka Streams consumer group lag, or Connect pipeline error rates. The _redpanda.transform_logs topic was barely touched.</li><li><strong>Redpanda Console’s Schema Registry browser:</strong> Makes schema inspection dramatically easier than rpk commands for day-to-day work. Mentioned but not demonstrated.</li><li><strong>Windows on Linux (WSL):</strong> Docker Compose and Maven behave differently in native Windows vs. WSL2. Not acknowledged at all — frustrating for Windows users who hit path issues.</li></ul><p>These aren’t complaints about course quality — the course is well-structured and practically focused. But if you’re using this as a foundation for production systems, these are the next chapters you need to write yourself.</p><h3>Final Note</h3><p>What Redpanda’s stream processing course teaches, underneath all the tooling, is a mindset shift: <strong>the stream is the system</strong>. It’s not a data pipeline connecting databases. It’s the operational backbone. Fraud decisions, inventory updates, recommendation triggers — they all flow through the same log, processed by different tools at different layers, each doing one thing well.</p><p>The fact that Redpanda can run Data Transforms inside the broker, speak natively to Kafka Streams without a compatibility shim, integrate with the entire Kafka Connect ecosystem, and bundle Schema Registry as a first-class feature — all from a single binary with no ZooKeeper — changes what “simple” means in this space.</p><p>Kafka’s version of “simple” required you to deploy and operate many services. Redpanda’s version of “simple” is actually simple. That gap matters, especially at 3 AM when something’s on fire and you’re staring at a fraud alert you’re not sure is a duplicate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=618e52a1e423" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Machinery Behind Every Real-Time System: A Deep Dive into Kafka Building Blocks with Redpanda]]></title>
            <link>https://medium.com/@kherasam18/the-machinery-behind-every-real-time-system-a-deep-dive-into-kafka-building-blocks-with-redpanda-decbc1aaccb9?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/decbc1aaccb9</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[red-panda]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Mon, 18 May 2026 18:22:19 GMT</pubDate>
            <atom:updated>2026-05-18T18:22:19.947Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>There’s a moment in every engineer’s journey with streaming systems when the abstraction clicks. You stop thinking about “sending messages” and start thinking in terms of logs, offsets, partition topology, and consumer coordination. This article is about that click.</em></blockquote><p>Kafka’s core abstractions - topics, partitions, producers, consumers, consumer groups - have become the lingua franca of real-time data infrastructure. They underpin:</p><ul><li>Recommendation engines</li><li>Fraud detection systems</li><li>Financial settlement pipelines</li><li>IoT telemetry platforms</li><li>Any system where data must flow continuously between services</li></ul><p>If you’re building anything that isn’t purely batch, you’re eventually going to need to understand these primitives at depth.</p><p>What Redpanda adds to this picture is architectural clarity and operational simplicity:</p><ul><li>It doesn’t reinvent the abstractions</li><li>It rebuilds the engine underneath them</li><li>In doing so, it removes a remarkable amount of incidental complexity that practitioners had come to accept as just the cost of doing business with Kafka</li></ul><p>This article covers the full Kafka building-blocks curriculum as taught in Redpanda University’s Course 3. But more than a course summary, it’s an engineering perspective on <em>why</em> these abstractions were designed the way they were, where they break down, and what Redpanda specifically does better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ro7w6CB8Xb9h1S_0.png" /></figure><h3>The Two Layers That Make Event Streaming Work</h3><p>Before writing a single line of code, it’s worth naming the two distinct concerns in any streaming system:</p><p><strong>The Storage Layer</strong> answers: <em>Where does data live, and how is it organized?</em> <strong>The Communication Layer</strong> answers: <em>How does data move from producers to consumers, and with what guarantees?</em></p><p>Every concept in this course — brokers, topics, partitions, records, consumer groups — maps cleanly onto one of these two layers:</p><ul><li>Most engineers focus immediately on code (producers, consumers) and gloss over the storage layer</li><li>That’s a mistake</li><li>Understanding the storage layer first makes every design decision downstream feel obvious rather than arbitrary</li></ul><h3>Part 1: The Storage Layer</h3><h3>Clusters and Brokers — What’s Actually in Your Infrastructure</h3><p>A <strong>cluster</strong> is a group of Redpanda nodes. Each node is called a <strong>broker</strong>.</p><ul><li>The minimum for a production deployment is <strong>three brokers</strong> — not a stylistic preference, but a hard requirement for fault tolerance</li><li>With three brokers, the cluster can sustain the loss of one and continue operating without data loss</li></ul><p><strong>The ZooKeeper problem in Kafka:</strong></p><ul><li>Kafka brokers needed a separate coordination service called <strong>ZooKeeper</strong> to discover each other, elect leaders, and maintain cluster metadata</li><li>This meant running and operating a <em>second</em> distributed system just to keep your first one coherent</li><li>ZooKeeper had its own failure modes, its own tuning parameters, and its own upgrade lifecycle</li><li>You couldn’t reason about Kafka availability without also reasoning about ZooKeeper availability</li></ul><p><strong>How Redpanda handles this:</strong></p><ul><li>Shipped without ZooKeeper from day one</li><li>Broker discovery and cluster coordination are handled natively using the Raft consensus protocol internally</li><li>Fewer services to monitor, fewer failure modes to diagnose, no inter-system coordination bugs</li><li>Kafka didn’t remove ZooKeeper until version 3.x with KRaft mode — years after production adoption, and after countless engineers had been burned by ZooKeeper outages cascading into Kafka unavailability</li></ul><h3>Topics and Partitions — The Organizational Primitive</h3><p>A <strong>topic</strong> is a named stream of records:</p><ul><li>Every record a producer writes goes to a specific topic</li><li>Topics are the “channels” of your streaming infrastructure — a purchases topic, a user_events topic, a sensor_readings topic</li></ul><p>But a topic is not a monolithic thing:</p><ul><li>Under the hood, topics are divided into <strong>partitions</strong> — individual, ordered log segments distributed across brokers</li><li>Partitions are the unit of parallelism, replication, and ordering in Redpanda</li></ul><p><strong>Three partition properties every engineer needs to internalize:</strong></p><ul><li><strong>Ordering is guaranteed <em>within</em> a partition, not across partitions.</strong> Write records A, B, C to partition 2 — consumers will always read them in that order. But if those records landed on different partitions, there is no cross-partition ordering guarantee. This is why record keys matter.</li><li><strong>Partition leaders handle all I/O.</strong> Each partition has a leader broker and zero or more replicas. All reads and writes go through the leader. If the leader fails, Redpanda promotes a replica automatically — that’s the fault-tolerance mechanism in action.</li><li><strong>Partitions can only be added, not removed.</strong> Adding partitions changes the routing map (how keys hash to partition numbers), which can disrupt downstream consumers relying on key-based ordering. <strong>Production implication: overprovision partitions at topic creation time.</strong></li></ul><h3>Regular vs. Compacted Topics — A Genuinely Important Design Decision</h3><p>Redpanda supports two fundamentally different topic types. Choosing between them is one of the earliest design decisions in any new pipeline.</p><p><strong>Regular topics</strong> (cleanup.policy=delete):</p><ul><li>Retain all records until a time- or size-based retention threshold is reached</li><li>The full history is preserved</li><li>Correct for: analytical workloads, audit trails, ML training datasets — anything where you need the complete event history</li></ul><p><strong>Compacted topics</strong> (cleanup.policy=compact):</p><ul><li>Retain only the <em>most recent record per key</em></li><li>When you write a new record with key user:42, the compaction process eventually deletes all older records with the same key</li><li>The topic behaves like an eventually-consistent key-value store</li></ul><pre>Regular topic (time-ordered log):<br>[key=42, v=A] → [key=42, v=B] → [key=42, v=C]   ← all retained</pre><pre>Compacted topic (current state):<br>[key=42, v=A] → [key=42, v=B] → [key=42, v=C]   ← only v=C retained</pre><p><strong>When to use compacted topics:</strong></p><ul><li>User profile updates</li><li>Product inventory states</li><li>Device last-known configurations</li><li>Any scenario where downstream consumers need to rebuild “current state” without replaying years of historical deltas</li></ul><p><strong>Production pattern — use both together:</strong></p><ul><li>A regular topic captures the full event stream (your audit trail)</li><li>A compacted topic maintained by a stream processor captures the current derived state (your fast lookup)</li></ul><h3>Part 2: The Communication Layer</h3><h3>Records Are Not Just Values</h3><p>The single most common misconception among engineers new to Kafka-compatible systems is thinking a record is just a payload. It isn’t. A record has four distinct fields:</p><p>Field Role <strong>Value</strong> The payload — your actual data, serialized as bytes <strong>Key</strong> Routing and ordering control — determines the partition <strong>Timestamp</strong> Event-time or ingestion-time — critical for stream processing windows <strong>Headers</strong> Optional metadata — trace IDs, source application tags, schema version markers</p><p><strong>The Key field — most ignored, most dangerous:</strong></p><ul><li>When you produce a record without a key, the partitioner distributes records using a round-robin or pseudo-random strategy</li><li>Records from the same logical entity — the same user, the same order, the same device — can land on different partitions</li><li>For independent events: fine. For causally related events: this is a bug</li></ul><p><strong>Real example — purchase-return workflow:</strong></p><ul><li>Event 1: user purchases item → lands on partition 2</li><li>Event 2: user requests a return → lands on partition 0</li><li>A consumer reading only partition 0 tries to process a return for a purchase it has never seen</li><li>Set the key to user_id, and the partitioner guarantees both events always land on the same partition — always in order</li></ul><pre>producer.produce(<br>    topic=&quot;purchases&quot;,<br>    key=str(user_id).encode(),          # Hash → consistent partition<br>    timestamp_ms=event_timestamp_ms,    # Event-time semantics<br>    value=json.dumps(payload).encode()<br>)</pre><p><strong>The Timestamp field — equally critical:</strong></p><ul><li>Redpanda can set it automatically on ingestion (ingestion-time semantics)</li><li>Producers can also set it explicitly to the actual time the event occurred (event-time semantics)</li><li>For stream processing frameworks like Flink or Kafka Streams, time windows are computed based on the timestamp field</li><li>If your timestamps reflect when Redpanda <em>received</em> the record rather than when the event <em>actually happened</em>, your time-window aggregations are wrong</li></ul><h3>Serialization — The Invisible Interface Contract</h3><p>Redpanda is bytes-in, bytes-out:</p><ul><li>The storage layer has no knowledge of your data’s format</li><li>The same cluster can simultaneously hold topics carrying JSON, Avro, Protobuf, and raw binary data — to Redpanda, it’s all just byte arrays</li></ul><p><strong>What this means for your team:</strong></p><ul><li>The serialization contract between producers and consumers is <em>your</em> responsibility, not the broker’s</li><li>A producer serializing with JSON must have a consumer deserializing with JSON</li><li>When these drift apart — a schema changes, a new field is added without a default — consumers break silently or loudly depending on your setup</li></ul><p><strong>The typical evolution at scale:</strong></p><ol><li><strong>Raw JSON</strong> — quick to start, fragile at schema changes</li><li><strong>Avro with Schema Registry</strong> — enforced schemas, backward/forward compatibility checks</li><li><strong>Protobuf</strong> — more compact, explicit field types, excellent for polyglot teams</li></ol><p>Redpanda’s Schema Registry (covered in later courses) makes Avro and Protobuf viable without massive complexity overhead. The awareness that you have an interface contract to manage should exist from day one.</p><h3>Consumer Groups — Coordination Without Code</h3><p>Scaling the consumer side of a streaming system is one of those problems that looks hard until you understand the abstraction — at which point it looks elegant.</p><p>A <strong>consumer group</strong> is a named group of consumer processes that cooperatively read from a topic:</p><ul><li>Redpanda’s group coordinator assigns each partition to exactly one consumer in the group</li><li>2 consumers + 4 partitions = each consumer owns 2 partitions</li><li>Add a third consumer → coordinator rebalances, redistributing partitions automatically</li></ul><pre>Topic: purchases (4 partitions)</pre><pre>Consumer Group: my-group<br>├── Consumer A  →  partitions 0, 1<br>└── Consumer B  →  partitions 2, 3</pre><pre>Consumer A crashes:<br>└── Consumer B  →  partitions 0, 1, 2, 3  (automatic rebalance)</pre><p><strong>Two properties that make consumer groups genuinely powerful:</strong></p><ul><li><strong>Horizontal scaling is partition-bounded.</strong> You can scale consumers up to the partition count. More consumers than partitions, and the extras sit idle. This is why partition overprovisioning at topic creation time matters — your future scaling ceiling is set then.</li><li><strong>Multiple groups are fully independent.</strong> A reporting-service-group and a fraud-detection-group both reading purchases each get every record independently, with their own offsets. No coordination, no competition. Pub/Sub at infrastructure scale.</li></ul><h3>Consumer Lag — The Metric That Actually Matters</h3><p>Consumer lag is the gap between where a consumer currently is in a partition’s log and where the partition currently ends:</p><pre>LOG-END-OFFSET:     1000  (latest record written)<br>CURRENT-OFFSET:     950   (last record the consumer processed)<br>LAG:                50    (records the consumer hasn&#39;t read yet)</pre><p><strong>What lag tells you:</strong></p><ul><li><strong>Zero lag</strong> → consumer is fully caught up</li><li><strong>Growing lag</strong> → consumer can’t keep up with the producer’s write rate</li><li>Growing lag is your first operational signal for scaling decisions: add more consumers (up to the partition count), or optimize consumer processing speed</li></ul><p>rpk group describe &lt;group-name&gt; gives you the full breakdown — current offset, log-end offset, lag, and member assignment per partition. This command is more useful for day-to-day operational debugging than almost anything else in the toolset.</p><h3>Part 3: What Redpanda Changes About This Picture</h3><p>Everything described above is, structurally, the Kafka model. Redpanda implements it faithfully enough that every Kafka client library works without modification. But Redpanda’s implementation choices create measurable operational differences.</p><h3>Architecture: C++ and Thread-Per-Core vs. JVM and Threads</h3><p><strong>Kafka’s JVM overhead:</strong></p><ul><li>Kafka is a JVM application — excellent for many workloads, but with well-known costs for low-latency streaming</li><li>Garbage collection pauses, longer startup times, higher memory overhead</li><li>Tail latency — the p99 and p999 of your response distribution — is where GC pauses show up</li><li>For streaming systems, tail latency is often what determines whether SLAs are met</li></ul><p><strong>Redpanda’s architecture:</strong></p><ul><li>Written in C++ using the <a href="https://seastar.io/">Seastar</a> framework</li><li>Implements a thread-per-core model: each CPU core gets one thread</li><li>No context switching between threads on a given core</li><li>No garbage collector</li><li>Result: more predictable latency profiles, lower tail latency, more efficient CPU utilization per unit of throughput</li></ul><p><strong>Practical outcome:</strong></p><ul><li>Redpanda consistently achieves lower p99 and p999 latencies than equivalent Kafka deployments under similar loads</li><li>Does so with <em>fewer brokers</em></li><li>For engineering teams sizing infrastructure, this translates directly to cost</li></ul><h3>No ZooKeeper, No External Coordination</h3><p>The operational simplicity of not running ZooKeeper cannot be overstated for teams that have operated Kafka at scale:</p><ul><li>ZooKeeper is a distributed coordination service with its own failure modes, upgrade path, and observability requirements</li><li>A ZooKeeper outage doesn’t just affect Kafka’s metadata — it can cause partition leaders to become unavailable because the cluster can’t elect new leaders without ZooKeeper’s quorum</li><li>Redpanda’s native Raft-based coordination removes this entire category of failure</li><li>You have one system to monitor, one system to upgrade, one system to debug</li></ul><h3>Tiered Storage — Infinite Retention Without Infinite Disks</h3><p>Redpanda includes native tiered storage support:</p><ul><li>Data is offloaded to object stores like Amazon S3 or Google Cloud Storage</li><li>The local disk retains a hot “working set” of recent data</li><li>Older data lives in object storage and is fetched on demand</li></ul><p><strong>Who this matters for:</strong></p><ul><li>Teams building compliance archives</li><li>ML training pipelines that need to replay historical data</li><li>Systems requiring long event histories for reprocessing</li></ul><p>You’re no longer choosing between “burn money on massive local disks” and “truncate history too aggressively.” You retain indefinitely at object storage prices, with Redpanda managing the tiering transparently.</p><h3>Part 4: What the Official Course Glosses Over</h3><p>A curriculum optimized for beginners will, by definition, leave out things that matter in production. Here are the gaps worth naming explicitly.</p><h3>The acks Configuration</h3><p>When a producer sends a record, how many brokers need to confirm receipt before the write is considered successful? This is controlled by the acks configuration:</p><p>acks Behavior Trade-off 0 Fire and forget — no confirmation Maximum throughput, data loss possible 1 Leader confirms Good balance for most workloads all / -1 Leader + all in-sync replicas confirm No data loss even if the leader fails immediately after write</p><ul><li>The course shows synchronous writes but never surfaces this configuration</li><li>For financial transactions, compliance events, or any data where loss is unacceptable: acks=all is not optional</li></ul><h3>Consumer Offset Configuration</h3><p>Two consumer settings routinely cause production surprises for engineers who learned from tutorials:</p><p><strong>auto_offset_reset</strong> — where does a consumer start when no committed offset exists (e.g., first run or after a reset)?</p><ul><li>earliest → replay all historical data from the beginning</li><li>latest → only process records written after the consumer started</li><li>Choosing wrong causes either accidental full-history reprocessing or silently missed records</li></ul><p><strong>enable.auto.commit</strong> — by default, consumer offsets are committed automatically in the background:</p><ul><li>If your processing fails between reading a record and the auto-commit firing, you might not see that record again</li><li>For exactly-once or at-least-once guarantees that actually hold, manual offset management is necessary</li></ul><h3>Rebalance Mechanics</h3><p>A consumer group rebalance is a “stop the world” moment:</p><ul><li>All consumers in the group pause while Redpanda redistributes partition assignments</li><li>For most applications: under a second, unnoticeable</li><li>For latency-sensitive applications with strict SLAs: even a brief pause can cause deadline violations</li></ul><p><strong>Advanced strategies that minimize disruption:</strong></p><ul><li><strong>Sticky partition assignment</strong> — avoids moving partitions that don’t need to move</li><li><strong>Incremental cooperative rebalancing</strong> — consumers gradually hand off partitions rather than all stopping at once</li></ul><p>Understanding when and why to reach for these matters — you don’t want to discover them for the first time while debugging a production latency spike.</p><h3>Schema Evolution</h3><p>The course uses raw JSON throughout — pedagogically fine, but it normalizes an approach that becomes a liability at scale:</p><ul><li>The moment you have multiple services producing to the same topic, you have a schema evolution problem</li><li>A field gets renamed. A type changes. An optional field becomes required</li><li>Without a schema registry enforcing compatibility rules, these changes silently break consumers</li><li>The failure surfaces as a deserialization error deep in the stack — not a visible produce/consume failure, not easy to trace</li></ul><h3>Final Note</h3><p>The concepts in this course — clusters, topics, partitions, record anatomy, producer/consumer patterns, consumer groups — are not Redpanda-specific features. They’re the shared grammar of modern event streaming, inherited from Kafka and now implemented across a growing ecosystem of systems.</p><p><strong>What distinguishes Redpanda is the quality of that implementation:</strong></p><ul><li>No JVM, no garbage collection pauses</li><li>No ZooKeeper, no external coordination</li><li>Native Raft consensus built in</li><li>Tiered storage from day one</li><li>The abstractions are identical; the machinery underneath is cleaner</li></ul><p>For engineers working with or evaluating streaming infrastructure, the practical implication is this:</p><ul><li>Everything you know about Kafka applies directly — your clients, your tooling, your operational intuitions, your code</li><li>You’re not learning a new system — you’re running the same concepts on an engine that was built right the first time</li></ul><p>The building blocks covered in this course are the foundation for everything that follows: stream processing, connector pipelines, schema governance, cluster operations. Understanding them deeply — not just the happy path, but the partition-routing edge cases, the rebalance mechanics, the serialization contract — is what separates engineers who <em>use</em> streaming systems from engineers who can design, operate, and debug them.</p><p><em>Written as part of a deep-dive into the Redpanda University curriculum. The goal isn’t to summarize courses — it’s to understand the engineering decisions well enough to explain them, defend them, and critique them.</em></p><p>👤 Contact — khrsam02@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=decbc1aaccb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Redpanda vs. Kafka: An Honest Engineering Guide to When You Should Actually Switch]]></title>
            <link>https://medium.com/@kherasam18/redpanda-vs-kafka-an-honest-engineering-guide-to-when-you-should-actually-switch-c72ebc326195?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/c72ebc326195</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[red-panda]]></category>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Tue, 12 May 2026 18:43:43 GMT</pubDate>
            <atom:updated>2026-05-12T18:43:43.189Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Every few months the same debate resurfaces. Every time, people compare the wrong things.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oONHydM0MFpVgJas.jpg" /></figure><p>I’ve spent enough time in event streaming — tuning JVM heaps at midnight, nursing ZooKeeper through leadership elections, watching consumer lag grow like a slow-motion disaster — to have strong opinions about this. And after running Redpanda in real workloads alongside years on Kafka, here’s what I can tell you with confidence:</p><ul><li>This is not a performance debate.</li><li>It’s an operational and architectural one.</li></ul><p>The benchmarks are everywhere.</p><ul><li>Redpanda’s own numbers claim 10x lower p99 latencies.</li><li>Jack Vanlightly from Confluent spent months running counter-benchmarks and found cases where Kafka comfortably outperformed Redpanda.</li><li>The Redpanda founder fired back on Hacker News.</li><li>The community argued for days.</li></ul><p>Here’s what nobody tells you:</p><ul><li>You can win any benchmark by picking the right workload.</li><li>What actually matters when you’re building real systems is:</li><li>What happens at 2 AM</li><li>What your on-call rotation looks like in six months</li><li>Whether your team can keep the cluster healthy without becoming distributed systems specialists</li></ul><p>That’s what this article is actually about.</p><h3>What Redpanda Is — and What It Isn’t</h3><p>Before the comparison, let’s be precise about what Redpanda is, because a lot of the debate is muddied by loose language.</p><p>Redpanda is:</p><ul><li>Not a Kafka distribution (like Confluent Platform or Amazon MSK)</li><li>A ground-up reimplementation of the Kafka API and protocol</li><li>Written entirely in C++ using the Seastar framework</li></ul><p>It speaks the same language as Kafka clients, connectors, and tooling, but the engine underneath is completely different.</p><p>This matters because:</p><ul><li>You cannot assume behavioral equivalence just because the API looks the same</li><li>The Kafka ecosystem (clients, connectors, tools) works with Redpanda — but some edge cases in Kafka Connect or Kafka Streams may behave differently</li><li>Performance characteristics are fundamentally different at the storage layer</li></ul><p>The honest framing is this:</p><ul><li>Redpanda is Kafka-compatible, not Kafka-identical.</li><li>It’s the difference between a Rolls-Royce and a Bentley — they look similar from the outside, but you shouldn’t swap parts between them without testing.</li></ul><h3>The Real Cost of Running Kafka</h3><p>Before you evaluate Redpanda, you have to be honest about what Kafka actually costs you — and most people undercount it.</p><p>The infrastructure cost is the easy part.</p><ul><li>Everyone knows Kafka needs to be sized correctly.</li><li>The harder costs are invisible until they hit you.</li></ul><h3>JVM Operational Overhead</h3><p>This is the first hidden tax.</p><ul><li>Kafka is a Java application.</li><li>That means you’re managing:</li><li>Heap sizing</li><li>Garbage collection pauses</li><li>The JVM’s interaction with the OS page cache</li></ul><p>GC pauses are non-deterministic.</p><ul><li>They can spike your tail latencies at the worst possible moment.</li><li>Getting Kafka to behave predictably at high throughput requires months of accumulated tuning knowledge.</li><li>It’s not impossible, but it’s a specialized skill.</li></ul><h3>ZooKeeper Dependency</h3><p>For clusters not yet on KRaft, ZooKeeper doubles the operational surface area.</p><ul><li>You’re now running two distributed systems that must agree on cluster state.</li><li>ZooKeeper has:</li><li>Its own failure modes</li><li>Its own configuration</li><li>Its own resource requirements</li></ul><p>Kafka 3.3+ introduced KRaft as production-ready, which eliminates ZooKeeper.</p><p>But:</p><ul><li>A huge number of production Kafka deployments are still ZooKeeper-based.</li><li>Migration requires careful planning.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KUeWlu4stNOEuMPB.png" /></figure><h3>Tribal Knowledge Accumulation</h3><p>This is the most dangerous hidden cost.</p><ul><li>Kafka doesn’t break often.</li><li>But when it does, it fails in ways that require deep, specialized knowledge to diagnose.</li></ul><p>Over time, organizations build an almost institutional relationship with their cluster.</p><ul><li>Engineers learn to “feel” when a broker is struggling.</li><li>Teams develop instincts for which lag graph shapes mean “wake up the senior person.”</li><li>This knowledge is valuable.</li><li>It’s also fragile.</li><li>It lives in people, not documentation.</li></ul><p>When those people leave, you find out what your Kafka cluster actually costs.</p><h3>What Redpanda Actually Solves</h3><p>Redpanda’s pitch is simple:</p><ul><li>Keep the Kafka API.</li><li>Remove the baggage.</li></ul><p>Understanding which baggage it removes — and what it doesn’t — is the whole game.</p><h3>No JVM, No ZooKeeper</h3><p>Redpanda ships as:</p><ul><li>A single binary</li><li>With native Raft-based consensus</li><li>No ZooKeeper</li><li>No separate coordination cluster</li></ul><p>It runs directly on C++.</p><p>That means:</p><ul><li>No JVM to tune</li><li>No garbage collection to manage</li></ul><p>The practical consequence:</p><ul><li>Broker restarts that take minutes in Kafka take under a second in Redpanda.</li><li>Teams that have migrated consistently describe the same experience:</li><li>“It felt like a bug.”</li></ul><p>This isn’t a benchmark.</p><ul><li>It’s operational behavior that directly affects recovery time when things go wrong.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wXUYI8gXMZbpNNQP.png" /></figure><h3>Thread-Per-Core Architecture</h3><p>Redpanda uses Seastar.</p><p>That means:</p><ul><li>Each application thread is pinned to a CPU core.</li><li>No shared state between threads.</li><li>No locking overhead.</li><li>No context switching.</li></ul><p>This design delivers:</p><ul><li>Predictable latency</li><li>The kind where p99 and p999 numbers don’t randomly spike because the OS scheduler decided to do something inconvenient.</li></ul><p>The flip side:</p><ul><li>This architecture is also the source of some of Redpanda’s weaknesses.</li></ul><h3>Autotuning and Operational Simplicity</h3><p>Redpanda includes:</p><ul><li>An Autotuner that detects your hardware configuration and optimizes itself accordingly</li><li>Built-in leadership balancing</li><li>The rpk CLI</li><li>Native Prometheus metrics exposure</li></ul><p>The operational experience is dramatically cleaner:</p><ul><li>No JMX adapter required</li><li>No Kafka shell scripts</li></ul><p>For a small engineering team, this is significant.</p><ul><li>The difference between a 5-person team maintaining Kafka and the same team maintaining Redpanda is real.</li><li>Kafka requires:</li><li>A specialist</li><li>Or an expensive managed service</li><li>Redpanda is more self-sufficient.</li></ul><h3>The Benchmark Problem (And Why You Should Distrust Everyone, Including Me)</h3><p>This section is important.</p><ul><li>Both sides have weaponized benchmarks.</li><li>You deserve an honest picture.</li></ul><h3>Redpanda’s Headline Numbers</h3><p>At 1 GB/s throughput:</p><ul><li>Redpanda delivers p99.99 latencies around 80ms using 3 nodes on i3en.6xlarge instances.</li><li>Kafka requires 9 nodes to get anywhere close.</li><li>Kafka still shows 5.5 seconds at p99.99.</li><li>At 500 MB/s, Redpanda is ~23x faster at tail latencies with fewer nodes.</li></ul><p>These numbers are real.</p><p>But:</p><ul><li>They’re also cherry-picked.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I0OB4PSHG20qSzS6.png" /></figure><h3>Jack Vanlightly’s Counter-Findings</h3><p>Running:</p><ul><li>The same hardware</li><li>The same Kafka version</li><li>Corrected benchmark code</li></ul><p>Findings:</p><h4>Change 4 producers to 50</h4><ul><li>Redpanda’s p99 latency jumps to 24 seconds.</li><li>Kafka handles it without drama.</li><li>Most real workloads don’t have 4 producers.</li></ul><h4>Run for 24 hours</h4><p>After 12 hours at sustained 1 GB/s load:</p><ul><li>Redpanda’s NVMe drives start exhibiting garbage collection pressure from random IO patterns.</li><li>Latency jumps to 26 seconds at p99.99.</li><li>Kafka’s performance actually improved over the same period.</li></ul><h4>Use record keys</h4><p>Which most real systems do for ordering:</p><ul><li>Redpanda topped out at 330 MB/s trying to reach 500 MB/s.</li><li>Kafka reached the target with 100 producers.</li></ul><h4>Hit the retention limit</h4><p>When Redpanda starts deleting old segment files:</p><ul><li>There’s a measurable stepwise increase in latency.</li><li>Kafka shows no such effect.</li></ul><h4>Push to NVMe limits</h4><p>With acks=1:</p><ul><li>Kafka saturated the 2 GB/s physical limit of the NVMe drives.</li><li>Redpanda maxed out at 1.4 GB/s.</li><li>It never reached the drive’s physical ceiling.</li></ul><p>The truth is:</p><ul><li>Redpanda’s architecture creates more random IO patterns than Kafka’s page cache approach.</li><li>This is:</li><li>Great in some workloads</li><li>Worse in others</li></ul><p>Great for:</p><ul><li>Bursty workloads</li><li>Latency-sensitive systems</li><li>Small number of high-throughput producers</li></ul><p>Worse for:</p><ul><li>Many producers</li><li>Many partitions</li><li>Sustained high-throughput</li><li>Key-based routing</li></ul><p>Vanlightly’s conclusion is fair:</p><ul><li>Both systems can “win” benchmarks.</li><li>The right answer is to benchmark your actual workload.</li><li>If you don’t, you’re making an architectural decision based on marketing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B6pgz08b22Vol-6t.png" /></figure><h3>When to Choose Redpanda</h3><p>With the honest picture established, here’s a clear framework for when Redpanda is the better call.</p><h3>You’re Starting From Scratch</h3><p>This is the clearest Redpanda win.</p><ul><li>If you’re building a new event-driven system and haven’t committed to Kafka:</li><li>Redpanda gives you Kafka API compatibility from day one</li><li>With dramatically lower operational overhead</li></ul><p>You get:</p><ul><li>The ecosystem</li><li>Without the baggage</li></ul><p>There’s:</p><ul><li>No migration debt</li><li>No existing ZooKeeper to deal with</li><li>No tribal knowledge accumulated around Kafka internals</li></ul><h3>Your Team is Small</h3><p>A 5-person engineering team maintaining a Kafka cluster is genuine pain.</p><p>Especially if:</p><ul><li>Nobody on the team has Kafka expertise.</li></ul><p>Redpanda helps because:</p><ul><li>Autotuning reduces operational complexity</li><li>Single-binary deployment simplifies management</li><li>The operational model is cleaner</li></ul><p>You can:</p><ul><li>Run a competent Redpanda cluster with general distributed systems understanding.</li></ul><p>Kafka often demands specialists.</p><h3>Latency Is a Hard Requirement</h3><p>For latency-critical applications:</p><ul><li>High-frequency trading</li><li>Real-time fraud detection</li><li>Live auction systems</li><li>Gaming matchmaking</li></ul><p>Redpanda’s predictable tail latencies under moderate load are a real, measurable advantage.</p><p>When:</p><ul><li>p99 latency is a contract requirement</li><li>You’re running workloads with a small number of high-throughput producers</li></ul><p>Redpanda’s architecture shines.</p><h3>You’re on a Constrained Hardware Budget</h3><p>Redpanda’s efficiency means:</p><ul><li>You can run equivalent workloads on fewer nodes.</li></ul><p>Redpanda’s own TCO analysis claims:</p><ul><li>6x cost efficiency</li></ul><p>Take that with skepticism.</p><p>But:</p><ul><li>Independent analysis still confirms Redpanda tends to require fewer resources for comparable workloads.</li></ul><p>If hardware budget is a real constraint, this matters.</p><h3>Developer Experience Is a Priority</h3><p>Redpanda improves developer experience significantly.</p><ul><li>Spins up in seconds with a single Docker command</li><li>The rpk CLI is designed for humans</li><li>Prometheus metrics work immediately</li><li>No JMX</li><li>No Kafka shell scripts</li></ul><p>For teams where developer time is the limiting resource:</p><ul><li>This friction reduction compounds.</li></ul><h3>When to Stay With Kafka</h3><p>Kafka remains the stronger choice in several real scenarios.</p><h3>You’re Already Running Kafka at Scale</h3><p>Migration has a cost.</p><p>If you already have:</p><ul><li>A well-functioning Kafka deployment</li><li>Established operational practices</li><li>Monitoring</li><li>Runbooks</li><li>Team expertise</li></ul><p>Then:</p><ul><li>The return on migration investment is lower.</li></ul><p>The gains are real.</p><p>But:</p><ul><li>They need to outweigh the disruption.</li></ul><h4>Exception</h4><p>If:</p><ul><li>Your team is spending significant engineering time on Kafka operational work</li><li>Kafka expertise has become a recruitment constraint</li></ul><p>Then:</p><ul><li>The calculus shifts.</li></ul><h3>You Need the Full Kafka Ecosystem</h3><p>Kafka’s ecosystem is enormous.</p><p>If you’re running Kafka Streams extensively:</p><ul><li>You cannot simply point it at Redpanda.</li><li>You’d need to refactor to a different stream processor.</li></ul><p>Kafka Connect:</p><ul><li>Has hundreds of production-grade connectors.</li><li>Most work with Redpanda.</li><li>But edge cases exist.</li></ul><p>Especially:</p><ul><li>Connectors using internal Kafka admin APIs.</li></ul><p>Redpanda acquired Benthos (now Redpanda Connect).</p><p>It handles many integration scenarios cleanly.</p><p>But:</p><ul><li>It’s not a full replacement for Kafka Streams’ rich DSL.</li></ul><h3>Your Workload Matches Kafka’s Strengths</h3><p>Kafka is often stronger for:</p><ul><li>High partition counts</li><li>Many concurrent producers using record keys</li><li>Sustained 1 GB/s+ throughput</li><li>Long-running continuous load</li></ul><p>Why?</p><ul><li>Kafka’s page cache approach and sequential IO patterns can outperform Redpanda’s direct IO model.</li></ul><p>If your workload looks like this:</p><ul><li>Benchmark both before deciding.</li></ul><h3>LinkedIn/Netflix Scale</h3><p>At the absolute ceiling of scale:</p><ul><li>Hundreds of terabytes</li><li>Thousands of partitions</li><li>Dozens of teams</li></ul><p>Kafka has:</p><ul><li>Documented war stories</li><li>Scaling guides</li><li>Community knowledge</li></ul><p>Redpanda:</p><ul><li>Simply hasn’t accumulated the same operational history yet.</li></ul><p>The gap is closing.</p><p>But:</p><ul><li>It still exists.</li></ul><h3>What a Real Migration Looks Like</h3><p>The engineering community’s migration stories are remarkably consistent.</p><p>They share a common pattern:</p><ul><li>More anticlimactic than expected.</li></ul><p>The typical migration involves:</p><ol><li>Spinning up a Redpanda cluster</li><li>Running shadow mode</li><li>Mirroring production Kafka traffic into Redpanda</li><li>Running parallel consumers</li><li>Comparing behavior</li><li>Switching producers service by service</li></ol><p>Most teams report:</p><ul><li>Existing Go, Python, or Java producers connected to Redpanda without modification.</li><li>The Kafka protocol compatibility is genuinely good.</li></ul><p>The surprises come from edge cases.</p><h3>Transaction semantics</h3><ul><li>Redpanda supports Kafka transactions.</li><li>But exactly-once semantics under failure conditions should be tested explicitly before production use.</li></ul><h3>Monitoring</h3><ul><li>Existing Kafka JMX dashboards need rebuilding for Prometheus.</li><li>Not hard.</li><li>But it’s work.</li></ul><h3>Kafka Streams</h3><p>If you’re using it:</p><ul><li>You have a refactoring project.</li><li>Not a configuration change.</li></ul><h3>Partition behavior differences</h3><p>Redpanda:</p><ul><li>Validates all replicas during reassignment</li><li>Rejects duplicate reassignment requests rather than silently canceling</li><li>Supports shard-level partition assignments that Kafka doesn’t</li></ul><p>Operationally:</p><ul><li>Minor differences</li><li>Still worth knowing</li></ul><p>The operational payoff takes weeks to appear.</p><ul><li>On-call rotations get quieter.</li><li>Engineers stop having institutional knowledge of what the cluster “feels like.”</li><li>Maintenance becomes a daytime activity.</li></ul><p>One engineer described it perfectly:</p><ul><li>“The cluster simply stopped fighting us.”</li></ul><h3>The Honest Critique of Redpanda</h3><p>Any serious engineering evaluation requires calling out the weaknesses without softening them.</p><h3>Redpanda’s benchmarks are selective</h3><ul><li>The company’s published performance claims are based on workloads that favor their architecture.</li></ul><p>Examples:</p><ul><li>Small number of high-throughput producers</li><li>No record keys</li><li>Short test durations</li><li>Empty drives</li></ul><p>Real production systems frequently look different.</p><p>Always:</p><ul><li>Benchmark your actual workload.</li></ul><h3>The BSL license has implications</h3><p>Redpanda uses the Business Source License (BSL).</p><p>That means:</p><ul><li>You cannot offer Redpanda as a commercial managed service.</li></ul><p>For most teams:</p><ul><li>This is irrelevant.</li></ul><p>But:</p><ul><li>It limits broader ecosystem participation.</li></ul><p>Kafka:</p><ul><li>Is genuinely open source under Apache License 2.0.</li></ul><p>This matters for:</p><ul><li>Community growth</li><li>External contributors</li><li>Long-term vendor risk</li></ul><h3>NVMe over-provisioning may be necessary</h3><p>Because of Redpanda’s random IO patterns:</p><ul><li>NVMe drives can degrade over time under sustained high throughput with many partitions.</li></ul><p>AWS recommends:</p><ul><li>10% over-provisioning as a baseline.</li></ul><p>Redpanda may require more at high load.</p><p>This is:</p><ul><li>Not a fundamental flaw</li><li>But a production consideration that isn’t prominently documented</li></ul><h3>The community is younger and smaller</h3><ul><li>Stack Overflow has 32,000+ Kafka questions.</li><li>Redpanda has tens.</li></ul><p>When:</p><ul><li>You hit an obscure production issue at 3 AM</li></ul><p>The collective knowledge base matters.</p><p>The gap is shrinking.</p><p>But:</p><ul><li>It’s real.</li></ul><h3>Kafka Streams compatibility is not drop-in</h3><p>If you’re invested in Kafka Streams:</p><ul><li>Migration to Redpanda isn’t just a broker swap.</li><li>It’s a refactor.</li></ul><h3>Where Redpanda Actually Changes Things</h3><p>Setting aside the benchmark wars, there are areas where Redpanda makes a genuinely different architectural bet that’s worth understanding.</p><h3>Fsync by default</h3><p>Kafka’s default configuration:</p><ul><li>Avoids fsyncing to disk</li><li>Relies on OS page cache and replication for durability</li></ul><p>This is safe with proper multi-AZ deployment.</p><p>But:</p><ul><li>Some engineers have been uncomfortable with the trade-off for years.</li></ul><p>Redpanda:</p><ul><li>Fsyncs by default.</li></ul><p>The HN debate between Redpanda’s founder and Vanlightly is worth reading.</p><p>Why?</p><ul><li>It reflects a real philosophical difference about where durability guarantees should live.</li></ul><h3>The hardware story</h3><p>Redpanda’s architecture is genuinely optimized for:</p><ul><li>Modern NVMe hardware</li></ul><p>In ways Kafka’s page cache approach isn’t.</p><p>For:</p><ul><li>Low-to-moderate throughput workloads</li><li>Where drive GC pressure doesn’t become the bottleneck</li></ul><p>This is a real advantage.</p><h3>Redpanda Connect</h3><p>The acquisition of Benthos and its rebranding as Redpanda Connect is interesting.</p><p>Bloblang gives you:</p><ul><li>Complex stream processing in YAML</li><li>Without writing Java</li><li>Without running a separate Flink cluster</li></ul><p>For simpler transformation pipelines:</p><ul><li>This significantly reduces architectural complexity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*nqp6BkQkTQiZSGhy.png" /></figure><h3>What Redpanda Needs to Fix to Compete at Kafka’s Scale</h3><p>Redpanda has earned its place in the conversation.</p><p>But:</p><ul><li>Earning a place is different from winning the room.</li></ul><p>For Redpanda to displace Kafka at true enterprise scale:</p><ul><li>Specific gaps need closing.</li></ul><p>This isn’t speculation.</p><p>It’s what:</p><ul><li>Benchmarks</li><li>Migration stories</li><li>HN debates</li></ul><p>Reveal once you read past the marketing layer.</p><h3>1. The Random IO Problem at Scale Is Not Optional</h3><p>Redpanda’s storage engine:</p><ul><li>Writes in small 16 KiB chunks</li><li>Bypasses the OS page cache with direct IO</li><li>Performs fsyncs per partition</li></ul><p>At low-to-moderate partition counts:</p><ul><li>This delivers excellent latency.</li></ul><p>At high partition counts and sustained throughput:</p><ul><li>NVMe garbage collection pressure progressively degrades performance.</li></ul><p>Kafka’s page cache approach:</p><ul><li>Produces more sequential IO patterns.</li><li>Is gentler on drives over time.</li></ul><p>That’s why:</p><ul><li>Kafka’s long-running performance is stable.</li><li>Redpanda’s can deteriorate.</li></ul><p>What Redpanda likely needs:</p><ul><li>Less write amplification</li><li>A rethink of the one-partition-one-active-segment model</li><li>Possibly a shared-log physical storage model</li></ul><p>This is:</p><ul><li>A deep architectural change</li><li>Not a configuration tweak</li></ul><h3>2. The Small-Batch, High-Producer-Count Weakness</h3><p>The 4-producers-at-1-GB/s benchmark:</p><ul><li>Is Redpanda’s sweet spot.</li></ul><p>But:</p><ul><li>Change it to 50 producers</li><li>Tail latencies explode</li></ul><p>Using record keys:</p><ul><li>Makes the problem worse.</li></ul><p>The root issue:</p><ul><li>Redpanda’s thread-per-core architecture optimizes for large contiguous writes.</li></ul><p>When workloads fragment into:</p><ul><li>Many producers</li><li>Many partitions</li><li>Key-based routing</li></ul><p>Then:</p><ul><li>Per-core task overhead</li><li>High fsync rates</li></ul><p>Become the bottleneck.</p><p>Redpanda needs:</p><ul><li>Better batch coalescing</li><li>Smarter cross-core scheduling</li><li>Storage optimizations for high fsync rates</li></ul><h3>3. Kafka Streams Parity Is a Real Gap</h3><p>Kafka Streams is not niche.</p><p>Organizations invested in it:</p><ul><li>Cannot migrate cleanly to Redpanda.</li></ul><p>Redpanda Connect handles:</p><ul><li>Filtering</li><li>Routing</li><li>Bloblang transformations</li></ul><p>But Kafka Streams supports:</p><ul><li>Stateful operations</li><li>Aggregations</li><li>Windowed joins</li><li>Changelog topics</li><li>Interactive queries</li></ul><p>Redpanda does not yet provide:</p><ul><li>A direct equivalent</li><li>A no-refactor migration path</li></ul><p>Until that changes:</p><ul><li>Entire categories of Kafka users cannot migrate.</li></ul><h3>4. The Connector Ecosystem Is Still a Gap</h3><p>Kafka Connect has:</p><ul><li>Hundreds of production-grade connectors</li><li>A decade of ecosystem maturity</li></ul><p>Most connectors work with Redpanda.</p><p>But:</p><ul><li>“Works in practice” is not the same as “supported and tested.”</li></ul><p>Edge cases often appear:</p><ul><li>Under load</li><li>During failure scenarios</li><li>Not during happy-path testing</li></ul><p>Redpanda needs:</p><ul><li>Active connector validation</li><li>Clear compatibility matrices</li><li>Formal certification for major connectors</li></ul><p>Users shouldn’t discover incompatibilities in production.</p><h3>5. Community Knowledge Takes Time</h3><p>Kafka:</p><ul><li>Has 32,000+ Stack Overflow questions.</li></ul><p>Redpanda:</p><ul><li>Has tens.</li></ul><p>This matters because:</p><ul><li>Production failures at 3 AM rely heavily on accumulated tribal knowledge.</li></ul><p>Redpanda can accelerate this by:</p><ul><li>Publishing public post-mortems</li><li>Encouraging operational writeups</li><li>Growing deeper community runbooks</li><li>Strengthening operational Slack support</li></ul><p>But:</p><ul><li>Community knowledge compounds over time.</li><li>There are no shortcuts.</li></ul><h3>6. Tiered Storage Needs Feature Parity</h3><p>Redpanda’s tiered storage:</p><ul><li>Supports S3, GCS, and Azure Blob</li><li>Helps reduce long-term retention cost</li></ul><p>But:</p><ul><li>It’s behind an Enterprise license.</li></ul><p>Kafka’s open-source tiered storage:</p><ul><li>Will eventually arrive without licensing restrictions.</li></ul><p>For cost-sensitive teams:</p><ul><li>This is a real adoption barrier.</li></ul><h3>7. The BSL License Limits Ecosystem Growth</h3><p>Redpanda’s Business Source License:</p><ul><li>Protects against cloud commoditization</li></ul><p>But also:</p><ul><li>Reduces external contributors</li><li>Limits third-party integrations</li><li>Creates friction in open-source-first environments</li></ul><p>Kafka’s Apache 2.0 license:</p><ul><li>Helped its ecosystem explode.</li></ul><p>This is a genuine strategic tension.</p><p>And:</p><ul><li>There isn’t an easy answer.</li></ul><h3>Decision Framework</h3><p>Situation Recommendation New project, no Kafka commitment yet <strong>Redpanda — strongly</strong> Small team, limited Kafka expertise <strong>Redpanda</strong> Latency-critical, few high-throughput producers <strong>Redpanda</strong> Existing Kafka, running well, team has expertise <strong>Stay on Kafka</strong> Existing Kafka, ops cost is a real problem <strong>Evaluate migration</strong> Heavy Kafka Streams investment <strong>Stay on Kafka or plan a refactor</strong> Massive scale, LinkedIn/Netflix territory <strong>Kafka — for now</strong> Constrained hardware budget <strong>Redpanda</strong></p><p>The deeper question isn’t which system is technically superior.</p><p>It’s:</p><ul><li>What the cost of understanding and operating each system will be over the next five years</li><li>At your organization’s scale</li><li>With your team’s expertise</li></ul><p>Redpanda is genuinely impressive.</p><ul><li>It removes entire classes of operational pain.</li><li>Anyone who has run Kafka in production will recognize this immediately.</li></ul><p>The C++ architecture:</p><ul><li>Isn’t a marketing claim.</li><li>It’s a fundamentally different set of trade-offs.</li><li>Better for a large class of workloads.</li></ul><p>But Kafka isn’t dying.</p><ul><li>KRaft removed the ZooKeeper argument.</li><li>The ecosystem advantage remains enormous.</li><li>The community knowledge base is priceless.</li></ul><p>The streaming space is better with both systems.</p><ul><li>Redpanda forced Kafka to improve faster.</li><li>That’s good for everyone.</li></ul><p>Choose deliberately.</p><ul><li>Benchmark your workload.</li><li>Watch the 12-hour numbers, not the 30-minute ones.</li><li>Plan for production behavior, not benchmark behavior.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*ewAUe9MlpXl4wQT1.png" /></figure><p><em>If you work in distributed systems and have migration stories to share — real ones, including the messy parts — I’d genuinely like to hear them. The community learns more from honest accounts than from vendor success stories.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c72ebc326195" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Zero to Streaming: What “Getting Started with Redpanda” Actually Teaches You (And What It…]]></title>
            <link>https://medium.com/@kherasam18/from-zero-to-streaming-what-getting-started-with-redpanda-actually-teaches-you-and-what-it-f40a6daee1f4?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40a6daee1f4</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[red-panda]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Wed, 06 May 2026 14:33:54 GMT</pubDate>
            <atom:updated>2026-05-06T14:33:54.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Zero to Streaming: What “Getting Started with Redpanda” Actually Teaches You (And What It Doesn’t)</h3><p><em>A working engineer’s take on Redpanda’s onboarding course — the good, the great, and the gaps.</em></p><p>There are two kinds of technology onboarding experiences. The first kind gives you a five-minute Docker Compose setup and calls it a day. The second kind makes you <em>feel</em> the architecture before you run a single command. Redpanda’s “Getting Started” course leans heavily toward the second — and that’s worth unpacking.</p><p>I went through Redpanda University’s Course 2 end-to-end: installation, cluster management, topic operations, and finally writing real producer/consumer applications in Java, Python, and NodeJS. What follows is my honest read on what the course teaches well, what the design decisions reveal about Redpanda’s philosophy as a platform, and where the material leaves you wanting more.</p><h3>The Problem Redpanda Is Solving (And Why It Matters More Than You Think)</h3><p>Apache Kafka is the undisputed standard for event streaming. It’s used everywhere. It also carries a decade’s worth of operational complexity:</p><ul><li>ZooKeeper dependencies (or KRaft, its newer replacement)</li><li>A JVM-based runtime that is memory-hungry by nature</li><li>A CLI surface area split across dozens of shell scripts, each with its own invocation style</li><li>A configuration model that requires you to know which file controls which behavior before you can tune anything sensibly</li></ul><p>The teams that run Kafka at scale have learned to live with all of this. The teams <em>adopting</em> streaming for the first time — making the jump from request-response to event-driven — find this complexity punishing.</p><p>Redpanda’s stated mission is to eliminate that gap. Same API. Radically simpler operations. This course is the proof of concept for that claim. And it mostly delivers.</p><h3>Chapter 1: Installation — The Single Binary Promise, Made Literal</h3><p>The course opens with a single command:</p><pre>rpk container start -n 3</pre><p>This spins up a full three-broker Redpanda cluster — locally, with a web UI, in seconds.</p><p>Under the hood, rpk (Redpanda Keeper — the CLI) orchestrates four Docker containers: three broker nodes and Redpanda Console. What&#39;s significant here isn&#39;t the convenience — it&#39;s <em>what each container exposes</em>.</p><p>Every broker runs four services simultaneously:</p><ul><li><strong>Kafka API</strong> on port 9092 — the binary Kafka protocol your producers and consumers connect to</li><li><strong>Admin API</strong> on port 9644 — HTTP management interface for cluster operations</li><li><strong>Pandaproxy</strong> on port 8082 — REST HTTP interface for producing and consuming without a Kafka client</li><li><strong>Schema Registry</strong> on port 8081 — Confluent-compatible schema management, built in</li></ul><p>This is the “single binary” architecture in action. In the Kafka ecosystem:</p><ul><li>The Schema Registry is a separate Confluent service — separate process, separate deployment, separate upgrade path</li><li>The REST Proxy (Pandaproxy equivalent) is another separate Confluent service</li><li>The admin REST API requires either Confluent’s REST Proxy or your own implementation</li></ul><p>With Redpanda, all of that is baked into one binary. You’re not managing four different JVM processes with four separate config files. You’re managing one. That’s a real, measurable reduction in operational surface area.</p><h3>Why the -n 3 Flag Is More Significant Than It Looks</h3><p>The course spins up three brokers without explaining why. The reason connects to something foundational: <strong>Raft consensus</strong>.</p><p>Redpanda uses the Raft protocol — instead of Kafka’s older ISR-based replication — to replicate data and elect partition leaders. Raft requires a <em>majority quorum</em> to commit a write:</p><ul><li><strong>3 brokers</strong> → majority is 2 → you can lose 1 broker and the cluster keeps accepting writes ✅</li><li><strong>2 brokers</strong> → majority is 2 → losing 1 broker means the cluster can’t confirm writes ❌</li><li><strong>1 broker</strong> → no fault tolerance at all — fine for a throwaway test, nothing more</li></ul><p>Three is the minimum for meaningful fault tolerance. It’s why every serious Redpanda deployment starts there. The course doesn’t say this. It should.</p><h3>The rpk Profile System</h3><p>One thing the course explains well is how rpk manages cluster connections through <strong>profiles</strong>. When you run rpk container start, it automatically creates and activates a profile called rpk-container, which stores:</p><ul><li>Broker addresses</li><li>Admin API endpoints</li><li>TLS settings</li></ul><p>The practical implication: you can maintain a local profile, a staging profile, and a production profile — and switch between them with rpk profile use &lt;name&gt;. No re-specifying broker addresses on every command.</p><p>Kafka’s CLI equivalent requires you to pass --bootstrap-server on nearly every script invocation. rpk&#39;s profile system is a genuinely better design for teams working across multiple environments.</p><h3>Chapter 2: Topics, Producers, and Consumers — The Day-to-Day Reality</h3><p>This is where you spend most of your time as a Redpanda practitioner: topic lifecycle management, producing events, consuming them, and understanding consumer groups.</p><h3>Topic Design Is a Decision, Not a Default</h3><p>The course uses a music platform as its working example — two topics, created in one command:</p><pre>rpk topic create song_plays song_likes --partitions 6 --replicas 3</pre><p>The choice of six partitions is instructive. In Redpanda (and Kafka), <strong>the number of partitions is your parallelism ceiling</strong>. A consumer group can have at most one active consumer per partition:</p><ul><li>6 partitions → up to 6 consumers reading in parallel → that’s your throughput ceiling</li><li>Too few partitions → consumers bottleneck even if you add more of them</li><li>Too many partitions → unnecessary overhead: more leader elections, more metadata, more replication traffic</li></ul><p>Partition count is a design decision that needs to happen <em>before</em> you create a topic. The course demonstrates this — though it doesn’t dig into the tradeoffs explicitly.</p><h3>The alter-config Trap: Treat Topic Config Like a Schema</h3><p>The course shows two approaches to topic configuration:</p><ul><li>Set configs at creation time with --topic-config</li><li>Modify them after the fact with rpk topic alter-config</li></ul><p>Experienced engineers will recognize the hidden risk in the second approach. Consider cleanup.policy:</p><ul><li>You create a topic with cleanup.policy=delete — time-based retention, the default</li><li>Later you change it to cleanup.policy=compact — keep only the latest value per key</li><li>Redpanda now runs compaction on log segments that were never designed for it</li><li>Events without keys can’t be compacted — <strong>you may lose data you didn’t intend to lose</strong></li></ul><p>The right mental model: treat topic configuration like a database schema. Design it before you deploy. Migrations are possible, but they carry real risk.</p><h3>Consumer Groups: Redpanda’s View Into Your Application Health</h3><p>The most operationally important thing this chapter teaches is rpk group describe:</p><pre>GROUP    TOPIC       PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG<br>groupA   song_plays  0          1024            1024            0<br>groupA   song_plays  1          998             1100            102</pre><p>The LAG column is the single most important metric in a streaming system. It tells you the gap between where your consumer is and where the log currently ends:</p><ul><li>A lag of 0 → consumer is fully caught up ✅</li><li>A <em>growing</em> lag → your processing speed can’t keep up with your event production rate ⚠️</li></ul><p>Redpanda exposes this directly through rpk — no external monitoring tool, no Prometheus exporter required for a first look.</p><p>The chapter also demonstrates rpk group seek — the ability to reposition a consumer group&#39;s reading position:</p><pre># Replay everything from the beginning<br>rpk group seek groupA --to start --topics song_plays</pre><pre># Skip forward — only process future events<br>rpk group seek groupA --to end</pre><p>This is the <strong>replay capability</strong> that makes event streaming fundamentally different from message queues. Deploy a bug fix and need to reprocess the last 24 hours? Seek to start and replay. You can’t do that with SQS. You can’t do that with RabbitMQ. The immutability of the log is what makes replay possible, and rpk group seek is what makes it practical.</p><h3>Chapter 3: Real Application Code — The Kafka API Compatibility Payoff</h3><p>The final chapter shows you how to write producer and consumer applications in Java, Python, and NodeJS — using <strong>standard Kafka client libraries, completely unchanged</strong>:</p><ul><li>Java → org.apache.kafka:kafka-clients</li><li>Python → kafka-python-ng</li><li>NodeJS → kafkajs</li></ul><p>None of these are Redpanda-specific. The BOOTSTRAP_SERVERS config simply points to your Redpanda broker instead of a Kafka broker. Nothing else changes.</p><p>The implications are significant:</p><ul><li><strong>For teams with existing Kafka code</strong> — migration to Redpanda is a configuration change, not a rewrite</li><li><strong>For developers new to streaming</strong> — every Kafka tutorial, every StackOverflow answer, every example project written for Kafka applies directly to Redpanda</li><li><strong>No vendor lock-in at the application layer</strong> — your code doesn’t depend on anything Redpanda-proprietary</li></ul><p>This is Redpanda’s most important architectural decision: full Kafka wire protocol compatibility. Not partial. Not “mostly compatible.” Full.</p><h3>The Three-Step Pattern — Same in Every Language</h3><p>Regardless of language, every Redpanda producer and consumer follows the same structure:</p><p><strong>Producer:</strong></p><ol><li><strong>Configure</strong> — broker address, serializer, idempotence settings</li><li><strong>Connect</strong> — establish connection to the broker</li><li><strong>Send</strong> — produce the message, flush/await to confirm delivery</li></ol><p><strong>Consumer:</strong></p><ol><li><strong>Configure</strong> — broker address, group ID, offset reset policy, deserializer</li><li><strong>Subscribe</strong> — declare which topic(s) to read</li><li><strong>Poll forever</strong> — loop continuously, processing each message as it arrives</li></ol><p>The “poll forever” step is worth pausing on. All three consumer examples run indefinitely until you interrupt them. This is correct behavior, not a tutorial shortcut:</p><ul><li>Kafka and Redpanda consumers are long-running processes by design</li><li>There is no “end” to a stream the way there’s an end to a file — new events keep arriving</li><li>In production, a consumer might run for months without stopping</li><li>Restarts happen via rolling deploys — one consumer at a time, while others keep processing</li></ul><h3>The Idempotence Question the Course Skips</h3><p>The Java example explicitly disables producer idempotence:</p><pre>properties.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, false);</pre><p>The course doesn’t explain why, or what you’re giving up. Here’s what you’re giving up:</p><ul><li><strong>Idempotence disabled (</strong><strong>false):</strong> If a producer sends a message and doesn&#39;t receive an acknowledgment — say, due to a network hiccup — it retries. The broker may have already written the original. It now receives a duplicate. Result: <strong>duplicate events in your topic</strong></li><li><strong>Idempotence enabled (</strong><strong>true):</strong> The producer gets a unique producer ID and sequence-numbers every message. The broker detects and discards duplicates. Result: <strong>exactly-once delivery on the produce side</strong></li></ul><p>For a Hello World tutorial, disabling idempotence is fine. For any production system processing payments, inventory updates, or anything where duplicate events cause real harm — enable it. The course should have said this explicitly.</p><h3>Environment Variables as First-Class Configuration</h3><p>All three language examples read broker addresses from an environment variable:</p><pre>export REDPANDA_BROKERS=&quot;127.0.0.1:9092&quot;</pre><p>This isn’t just tutorial convenience — it’s the twelve-factor app principle applied to streaming. The same binary runs across all environments by changing only the variable:</p><p>Environment REDPANDA_BROKERS value Local dev 127.0.0.1:9092 Staging staging-broker.internal:9092 Production prod-1:9092,prod-2:9092,prod-3:9092</p><p>No code changes between environments. In production, you’d pass this via Kubernetes secrets, Docker Compose environment files, or a secrets manager. You never hardcode broker addresses — and <em>especially</em> never hardcode credentials — in application code.</p><h3>What Redpanda Does Better Than Kafka Here</h3><p>This course is implicitly a comparison to running the same exercises on Kafka. The differences are concrete:</p><p><strong>CLI ergonomics</strong></p><ul><li>Kafka: kafka-topics.sh, kafka-console-producer.sh, kafka-consumer-groups.sh — separate scripts, different styles, different flags</li><li>Redpanda: one binary, one consistent structure — rpk topic create, rpk topic produce, rpk group describe</li><li>Muscle memory built with rpk transfers across all operations. Kafka&#39;s doesn&#39;t.</li></ul><p><strong>Startup speed</strong></p><ul><li>Kafka startup involves controller election, storage initialization, and broker readiness — takes tens of seconds even locally</li><li>rpk container start -n 3 completes in seconds — Redpanda&#39;s core is written in C++, no JVM, no warm-up time, no GC pause before the cluster is responsive</li></ul><p><strong>Built-in tooling</strong></p><ul><li>Kafka: Schema Registry, REST Proxy, and admin API are all separate Confluent services — separate deployments, separate upgrades, separate versioning</li><li>Redpanda: all three are part of the single binary — included, always available, always version-matched to the broker</li></ul><p><strong>Consumer group seek via CLI</strong></p><ul><li>Kafka: kafka-consumer-groups.sh --reset-offsets is available but awkward — multiple flags, requires a dry-run first, easy to get wrong</li><li>Redpanda: rpk group seek groupA --to start — one command, one line, human-readable</li></ul><h3>Where Redpanda Can Still Do Better</h3><p>No honest review ends without criticism.</p><p><strong>The Windows/WSL2 path is underserved</strong></p><ul><li>Linux gets a step-by-step walkthrough. Windows gets a redirect to Docker Compose docs.</li><li>WSL2 users frequently hit Docker socket permission issues requiring either sudo or Docker group membership — a known, fixable problem the course never mentions</li></ul><p><strong>Adding partitions after the fact is a silent footgun</strong></p><ul><li>The course shows rpk topic add-partitions without explaining the key routing implication</li><li>Partition count is part of the hash function that routes messages by key</li><li>Add partitions and the same key may hash to a <em>different</em> partition than it did before</li><li>If your system relies on key-based ordering (all events for a user ID on the same partition), adding partitions <strong>silently breaks that guarantee for new messages</strong></li><li>This deserved an explicit warning</li></ul><p><strong>Redpanda Connect is introduced, then abandoned</strong></p><ul><li>The course demos Redpanda Connect (formerly Benthos) — YAML-based declarative data pipelines with inputs, processors, and outputs — then drops it</li><li>Connect is a serious alternative to Kafka Connect: simpler config, no JVM runtime, no separate cluster to manage</li><li>It deserves dedicated coverage, not a footnote</li></ul><p><strong>No security coverage at all</strong></p><ul><li>Everything runs on localhost with no TLS, no SASL, no authentication</li><li>A getting-started course doesn’t need to be a security course — but a brief note on what rpk looks like pointed at a TLS-enabled cluster would bridge the gap to the real world, especially since rpk profiles are <em>designed</em> to store TLS config</li></ul><p><strong>rpk group seek --to &lt;timestamp&gt; is missing</strong></p><ul><li>The course covers --to start and --to end</li><li>The most production-useful variant — seek to a specific Unix timestamp (“replay everything from 2 hours ago”) — goes unmentioned</li><li>This is the exact command you reach for when debugging a production incident</li></ul><h3>The Real Takeaway</h3><p>The “Getting Started with Redpanda” course accomplishes what it sets out to do:</p><ul><li>✅ Running cluster from zero in minutes</li><li>✅ Topic lifecycle management via a coherent, unified CLI</li><li>✅ Real application code in three languages against standard Kafka-compatible client libraries</li><li>✅ Consumer group visibility and offset management that would require third-party tooling to replicate on Kafka</li></ul><p>The course is weakest where most getting-started courses are weakest — the gap between localhost and production:</p><ul><li>❌ No security (TLS, SASL, ACLs)</li><li>❌ No partition planning guidance for real workloads</li><li>❌ No walkthrough of what happens when a broker actually dies</li></ul><p>But those gaps are surmountable. The foundation this course builds — the mental model for topics, partitions, consumer groups, offsets, and the producer/consumer pattern — is correct and well-constructed. Everything in the streaming world builds on exactly this.</p><p>Redpanda is betting that if you can get engineers to the <em>“it’s running and I understand it”</em> state faster than Kafka can, the rest of the operational complexity becomes manageable. Based on this course, that bet is well-placed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DGVokcKmjrGv-bAx.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40a6daee1f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot Roadmap (2026): From Beginner to Production-Ready Engineer]]></title>
            <link>https://medium.com/@kherasam18/spring-boot-roadmap-2026-from-beginner-to-production-ready-engineer-1982c7e6db6c?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/1982c7e6db6c</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Mon, 04 May 2026 21:11:23 GMT</pubDate>
            <atom:updated>2026-05-04T21:11:23.704Z</atom:updated>
            <content:encoded><![CDATA[<p>This roadmap forces you to <strong>build</strong>, not just consume content. Every phase includes a project that exposes your weaknesses.</p><h3>⚠️ Before You Even Touch Spring Boot</h3><p>Most people jump into Spring Boot way too early and then struggle.</p><h3>🔹 Core Prerequisites</h3><ul><li><strong>Java fundamentals (non-negotiable)</strong> — Without strong basics, you’ll rely on guesswork instead of understanding.</li><li><strong>OOP, collections, streams, exceptions</strong> — These are used everywhere in real applications.</li><li><strong>HTTP basics</strong> — Backend is just structured HTTP communication.</li><li>Methods: GET, POST, PUT, DELETE</li><li>Status codes: 200, 400, 404, 500</li><li><strong>Basic SQL</strong> — Your app is useless without data.</li><li>SELECT, JOIN, indexing basics</li><li><strong>JSON &amp; APIs</strong> — This is how services talk.</li><li><strong>Git (basics)</strong> — No version control = no real development.</li></ul><p>👉 If you skip this, Spring Boot will feel like magic — and that’s dangerous.</p><h3>🧠 PHASE 0 — How to Think (Most People Skip This)</h3><h3>Goal</h3><p>Building reliable, scalable APIs</p><h3>What You Must Be Able To Do</h3><ul><li>Build a Java CLI CRUD app using collections</li><li>Consume a public API and parse JSON</li><li>Write SQL queries with JOINs</li><li>Use Git (commit, branch, push, merge)</li></ul><p>👉 Focus on <em>why things exist</em>, not just <em>how to use them</em>.</p><h3>🧱 PHASE 1 — Foundations (Build Real APIs)</h3><h3>What to Learn</h3><ul><li>Project setup (Spring Initializr)</li><li>Build tools (Maven/Gradle)</li><li>Core annotations</li><li>@RestController, @Service, @Repository</li><li>REST basics</li><li>@GetMapping, @PostMapping, etc.</li><li>Request handling</li><li>Path variables &amp; query params</li><li>Database integration</li><li>H2 → MySQL/PostgreSQL</li><li>JPA basics</li><li>JpaRepository, CrudRepository</li></ul><h3>Build</h3><p>A simple REST API for managing tasks.</p><h3>Features</h3><ul><li>CRUD operations for tasks</li><li>In-memory database (H2)</li><li>Basic validation</li><li>Clean API structure — Messy APIs don’t scale.</li></ul><h3>What This Teaches You</h3><ul><li>Controller → Service → Repository structure</li><li>REST fundamentals (HTTP methods, status codes)</li><li>Request/response flow</li></ul><h3>Explanation</h3><p>This phase teaches <strong>structure discipline</strong>. If you mix layers or write everything in one class, you’re building bad habits.</p><h3>⚙️ PHASE 2 — Make It Production-Ready</h3><h3>What to Learn</h3><ul><li>Global exception handling (@ControllerAdvice) — Prevents inconsistent error responses.</li><li>Custom error responses — Makes APIs usable and debuggable.</li><li>Spring Security basics — Every real app needs protection.</li><li>JWT authentication — Stateless and scalable auth.</li><li>API versioning — Prevents breaking clients.</li><li>Testing</li><li>JUnit + Mockito</li><li>MockMvc</li><li>Actuator &amp; monitoring — Visibility into your app health.</li></ul><h3>Build</h3><p>A secure backend with authentication.</p><h3>Features</h3><ul><li>User registration &amp; login</li><li>JWT authentication</li><li>Role-based access (Admin/User)</li><li>MySQL/PostgreSQL integration</li></ul><h3>What This Teaches You</h3><ul><li>Spring Security fundamentals</li><li>Stateless authentication (JWT)</li><li>Database design basics</li></ul><h3>Explanation</h3><p>This is where most beginners break. Security and auth expose whether you actually understand backend systems.</p><h3>🧩 PHASE 3 — Configuration &amp; Scaling Basics</h3><h3>What to Learn</h3><ul><li>Profiles (dev, prod) — Different environments, different configs.</li><li>Environment configs — No hardcoding secrets.</li><li>Spring Cloud basics — Distributed systems tooling.</li><li>Eureka (service discovery)</li><li>API Gateway — Centralized routing.</li></ul><h3>Build</h3><p>An e-commerce or booking backend.</p><h3>Features</h3><ul><li>Global exception handling</li><li>Logging</li><li>API versioning</li><li>Pagination &amp; filtering</li><li>Unit &amp; integration tests</li></ul><h3>What This Teaches You</h3><ul><li>Writing maintainable APIs</li><li>Debugging and monitoring</li><li>Testing real systems</li></ul><h3>Explanation</h3><p>This phase separates hobby coders from engineers. If you skip testing/logging, your app is not production ready.</p><h3>🏗️ PHASE 4 — Microservices (Only If You Actually Need It)</h3><h3>What to Learn</h3><ul><li>Inter-service communication</li><li>RestTemplate / Feign</li><li>Resilience</li><li>Resilience4j (circuit breakers)</li><li>Distributed tracing</li><li>Sleuth + Zipkin</li><li>Messaging</li><li>Kafka / RabbitMQ / Redpanda</li><li>Event-driven systems</li></ul><h3>Build</h3><p>A larger system (e.g., multi-module app).</p><h3>Features</h3><ul><li>Profile-based configs (dev/prod)</li><li>Modular structure</li><li>Caching (Redis)</li><li>Dockerized application</li></ul><h3>What This Teaches You</h3><ul><li>Clean architecture</li><li>Environment management</li><li>Performance optimization</li></ul><h3>Explanation</h3><p>Before microservices, you must prove you can scale a monolith. Most people fail here.</p><h3>🔧 PHASE 5— DevOps &amp; Deployment</h3><h3>Build</h3><p>Deploy your application pipeline.</p><h3>Features</h3><ul><li>CI/CD pipeline (GitHub Actions)</li><li>Docker containers</li><li>Basic Kubernetes setup</li><li>Monitoring (logs/metrics)</li></ul><h3>What This Teaches You</h3><ul><li>Shipping real software</li><li>Automation</li><li>Observability</li></ul><h3>Explanation</h3><p>If you can’t deploy, you’re not a backend engineer — you’re just writing code locally.</p><h3>🔧 Tools &amp; Tech You Should Learn Alongside</h3><h3>Must-Have Stack</h3><ul><li>Postman / Insomnia — API testing tools.</li><li>Docker — Makes your app portable.</li><li>GitHub Actions / CI-CD basics — Automate builds &amp; deployment.</li><li>Logging tools (ELK stack basics) — Debug production systems.</li></ul><h3>Nice-to-Have</h3><ul><li>Kubernetes (later, not now)</li><li>Redis (caching)</li><li>Swagger/OpenAPI — API documentation</li></ul><h3>🤖 Where AI Changes the Game</h3><h3>What AI Can Do</h3><ul><li>Generate controllers — Saves time on boilerplate.</li><li>Write repetitive code — Speeds up development.</li><li>Suggest configs — Helps beginners move faster.</li></ul><h3>What AI Cannot Do</h3><ul><li>Design architecture — Requires real understanding.</li><li>Debug production issues — Needs experience.</li><li>Make tradeoffs — Context matters.</li></ul><p>👉 If you just copy code, you’re replaceable.<br>👉 If you understand systems, you’re valuable.</p><h3>⚖️ Where Spring Boot Excels (and Where It Doesn’t)</h3><h3>✅ Best For</h3><ul><li>Enterprise backend systems</li><li>REST APIs</li><li>Microservices ecosystems</li><li>Rapid development with structure</li></ul><h3>❌ Not Ideal For</h3><ul><li>Ultra-low latency systems</li><li>Lightweight scripts</li><li>Frontend-heavy apps</li><li>Simple apps where Spring is overkill</li></ul><h3>🔄 What Comes After Spring Boot?</h3><h3>Next Skills to Build</h3><ul><li>Spring AI, Spring Cloud</li><li>API evolution</li><li>REST → GraphQL</li><li>Architecture</li><li>System design basics</li><li>Scalability patterns</li><li>DevOps</li><li>CI/CD pipelines</li><li>Docker + Kubernetes</li><li>Advanced testing</li><li>Contract testing</li><li>Load testing</li><li>Observability</li><li>Metrics, logging, tracing</li></ul><h3>🎯 Final Advice (No Sugarcoating)</h3><ul><li>Don’t try to “complete” this roadmap — You can’t.</li><li>Build projects — That’s where real learning happens.</li><li>Stop binge-watching tutorials — It’s passive and useless without action.</li></ul><p>👉 If you’re not building:</p><ul><li>Authentication system</li><li>Real database-backed API</li><li>Deployment pipeline</li></ul><p>Then you’re just consuming, not learning.</p><h3>🎯 Final Rule</h3><p>👉 No project = no learning<br>👉 No deployment = no real skill<br>👉 No debugging = no growth</p><p>Stop consuming. Start building.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*vQCHx1zzKJuZ17X4.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1982c7e6db6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Chose Redpanda — And What Learning Event Streaming from Scratch Actually Taught Me]]></title>
            <link>https://medium.com/@kherasam18/why-i-chose-redpanda-and-what-learning-event-streaming-from-scratch-actually-taught-me-3ee7e7d0b775?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ee7e7d0b775</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[red-panda]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 14:40:13 GMT</pubDate>
            <atom:updated>2026-04-27T14:40:13.377Z</atom:updated>
            <content:encoded><![CDATA[<p><em>An honest breakdown of everything the Streaming Fundamentals course covers, why it matters, and where the real insights live between the lines.</em></p><h3>🚧 The Breaking Point</h3><p>I didn’t come to Redpanda because someone told me to. I came to it because I kept hitting the same wall, just from different angles.</p><p>I’d built backend services that talked to each other over REST APIs and watched them become a tangled mess of retry logic, timeouts, and cascading failures the moment traffic spiked. I’d worked on analytics pipelines that ran on nightly batch jobs, and I watched business decisions get made on data that was twelve hours stale. I’d seen teams carefully copy data between queues just to fan it out to three different downstream services — because queues delete messages after consumption and there was no better option in the system they’d inherited.</p><p>The pattern I kept seeing was this: <strong>systems were fighting the nature of data</strong> instead of working with it. Data isn’t a static object sitting in a warehouse waiting to be queried. It’s a continuous stream of events — things that happen, one after another, in the real world. And when you build systems that pretend otherwise, you pay for it.</p><p>That’s why I started learning Redpanda. Not to chase a trend. But because I wanted to understand the tooling that’s built around how data <em>actually behaves</em> — and Redpanda is the most thoughtfully engineered option in that space right now.</p><p>This article covers everything I learned in Redpanda University’s <strong>Streaming Fundamentals</strong> course. Written not as a student summarizing a syllabus, but as an engineer thinking through why these concepts matter and what they actually mean in production.</p><h3>🧠 The Real Problem with “Data at Rest”</h3><p>Most engineers learned to think about data as something you store and retrieve. A database. A table. A set of rows you can query, filter, aggregate. This mental model has served the industry well for decades — and it still does, for a lot of use cases.</p><p>But here’s the thing it fundamentally can’t do:</p><blockquote><em>⚠️ </em><strong><em>Capture the fact that things change over time.</em></strong></blockquote><p>A traditional database shows you the current state of the world. It tells you that a user has 500 orders. It doesn’t tell you that they placed an order at 9am, cancelled it at 9:05, placed a new one at 9:07, then returned it three days later.</p><p>👉 The <em>journey</em> is gone. Only the destination survives.</p><p>This matters more than it sounds.</p><ul><li>The cancellation-and-replacement pattern tells you something about behavior</li><li>Rapid browsing/removal reveals purchase intent</li><li>Pre-fraud patterns are what make fraud detectable</li></ul><p>The journey <em>is</em> the signal.</p><p>Traditional systems model data as:</p><ul><li><strong>Nouns → objects at rest</strong></li></ul><p>Event streaming systems model data as:</p><ul><li><strong>Verbs → things that happen</strong></li></ul><p>This isn’t philosophical. It’s architectural.</p><h3>⚡ The Latency Problem Nobody Talks About Enough</h3><p>Batch processing introduces a silent killer:</p><ul><li>Hourly pipelines → 1-hour-old decisions</li><li>Daily jobs → yesterday’s reality</li></ul><p>In:</p><ul><li>Financial systems</li><li>E-commerce</li><li>Recommender engines</li></ul><p>👉 That delay is not inconvenience. It’s <strong>lost advantage</strong>.</p><p>Event streaming solves both:</p><ul><li>Time-awareness (events)</li><li>Real-time processing (no batching)</li></ul><h3>🧩 What an Event Actually Is</h3><p>An event is:</p><blockquote><strong><em>A timestamped, immutable fact describing something that happened</em></strong></blockquote><p>Break that down:</p><ul><li><strong>Timestamped</strong> → anchored in time</li><li><strong>Immutable</strong> → once an event is recorded, it cannot be changed</li><li><strong>Fact</strong> → describes the past (not commands). It’s a statement of what occurred</li></ul><h3>🔁 Why Immutability Matters</h3><p>This is where things get serious.</p><p>If history is immutable and complete:</p><p>👉 You can <strong>replay everything</strong></p><ul><li>Fix a bug</li><li>Reprocess events</li><li>Rebuild correct state</li></ul><p>Traditional systems?</p><p>❌ Data already overwritten<br>❌ Corruption becomes permanent</p><p>This isn’t just a feature.</p><p>👉 It’s a <strong>shift in how failure is handled</strong>.</p><h3>🔌 Communication Patterns — Where Systems Break</h3><p>The dominant model in web development is <strong>Client-Server</strong> — one system sends a request directly to another and waits for a response. REST APIs. HTTP calls. Direct service-to-service communication.</p><h3>❌ The Client-Server Trap</h3><p>Client-server works… until it doesn’t.</p><ul><li>Tight coupling — Every new service that needs data from your order system has to know that your order system exists, where it is, what API it exposes, and how to handle its failures.</li><li>Cascading failures</li><li>Retry storms</li><li>Latency amplification</li></ul><p>Add more services → complexity explodes.</p><p>More practically: what happens when your recommendation engine gets a spike of traffic? If it’s calling the analytics service directly, that spike propagates. The analytics service gets hammered. Latency climbs. Timeouts start. Retries cascade. Now you have a distributed failure on your hands because two services were wired together without any buffer between them.</p><h3>⚔️ Commands vs Events</h3><p>Commands:</p><ul><li>“Do this”</li><li>Direct</li><li>Assumes receiver</li></ul><p>Events:</p><ul><li>“This happened”</li><li>Passive</li><li>No assumptions</li></ul><p>👉 This is the pivot point.</p><p>Commands = dependency graph<br>Events = extensible system</p><h3>📡 Why Pub/Sub Wins</h3><p><strong>Publish-Subscribe</strong> is the communication pattern that makes event streaming work in practice.</p><p>Publish once. Consume everywhere.</p><p>Producers publish events to a named topic. Consumers subscribe to the topics they care about. Producers don’t know which consumers exist. Consumers don’t know which producers exist. They never talk directly.</p><p>Benefits:</p><ul><li>New consumers can be added without touching producers</li><li>Traffic spikes on one consumer don’t affect others — the stream acts as a durable buffer</li><li>If a consumer goes offline, events wait in the stream until it comes back — no data lost</li><li>The same event can be consumed by entirely different systems for entirely different purposes simultaneously</li></ul><p>Example: The Ecommerce order example illustrates this cleanly. When an order is placed, three systems need to act: order processing, analytics, and recommendations.</p><ul><li>With Client-Server, the checkout service makes three separate API calls and is tightly coupled to all three.</li><li>With Pub/Sub, checkout publishes one order_placed event. All three systems subscribe and react independently. Adding a fourth system — say, fraud detection — is a single subscriber addition, zero changes upstream.</li></ul><p>Instead of:</p><ul><li>3 API calls</li></ul><p>You get:</p><ul><li>1 event → many reactions</li></ul><p>👉 That’s scale-friendly architecture.</p><h3>⚠️ Why Message Queues Fall Short</h3><p>Queues:</p><ul><li>Destroy messages after consumption</li><li>No replay</li><li>Duplicate data for fan-out</li></ul><p>Streams:</p><ul><li>Immutable log</li><li>Multiple consumers</li><li>Independent reads</li></ul><p>👉 That difference changes everything.</p><h3>🌍 The Streaming Landscape (Reality Check)</h3><h3>☁️ Cloud Options (Kinesis, Google Pub/Sub, SNS, EventBridge, Event Hubs)</h3><p>Pros:</p><ul><li>Easy start</li><li>Pay for what you use</li></ul><p>Cons:</p><ul><li>Retention limits — undercut the replay superpower</li><li>Vendor lock-in — Tightly coupled to a specific cloud vendor</li><li>Push-based backpressure issues (SNS, EventBridge) — force messages at consumers whether they’re ready or not</li></ul><p>👉 Good for small systems. Weak for serious streaming.</p><h3>🌀 Apache Pulsar</h3><p>Strength:</p><ul><li>Built-in functions — run processing logic directly on the cluster,</li></ul><p>Problems:</p><ul><li>Operational complexity — Pulsar’s architecture involves brokers, bookies (BookKeeper for storage), ZooKeeper for coordination, and more</li><li>Multiple subsystems — You need to understand which mode you’re in</li><li>Smaller ecosystem</li></ul><p>👉 Powerful, but heavy.</p><h3>🧱 Apache Kafka</h3><p>Kafka is the industry standard for good reason. It’s been running in production at LinkedIn, Netflix, Uber, and Airbnb at genuinely massive scale for over a decade.</p><p>Strength:</p><ul><li>Proven at scale</li><li>Massive ecosystem</li><li>Great API</li></ul><p>Weakness:</p><ul><li>JVM overhead (GC pauses, heap tuning, latency spikes)</li><li>Operational complexity</li><li>Hard to self-manage</li><li>Managed options are expensive</li><li>Stream processing requires separate infrastructure like Apache Flink or Spark cluster</li></ul><p>👉 Correct model, messy execution.</p><h3>🔴 Redpanda</h3><p>Redpanda is not a “Kafka alternative.” It’s a Kafka-compatible streaming platform built from scratch in C++, on the Seastar framework, designed to get the architecture right and fix the implementation problems.</p><p>Key advantages:</p><ul><li>No JVM → consistent latency</li><li>Single binary → Includes streaming platform, a schema registry, an HTTP proxy and native transforms</li><li>No ZooKeeper → reduced complexity — Redpanda uses the Raft consensus protocol for cluster coordination internally</li><li>Kafka-compatible → ecosystem reuse — Existing Kafka producers, consumers, connectors, and client libraries work with Redpanda unchanged</li><li>Redpanda transforms → in-place processing — Like Pulsar Functions, Redpanda lets you run transformation logic directly on the cluster using WebAssembly modules</li></ul><p>👉 Cleaner architecture. Lower overhead.</p><p>The honest caveat: Kafka has ten-plus years of battle-testing at extreme scale. Redpanda is newer. For greenfield projects, Redpanda is clearly the better choice — the architecture is cleaner, the operational overhead is lower, and the performance is measurably better. For teams with existing Kafka deployments, the migration path is clean (same API), but the decision involves real risk/benefit analysis based on current operational pain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2GzuR-9xUV-V8FOB.png" /></figure><h3>🏗️ How the Architecture Actually Works</h3><h3>Clusters and Brokers</h3><p>A Redpanda cluster is made of one or more <strong>brokers</strong> — servers that each serve three functions: storing event data on disk, mediating communication between producers and consumers, and monitoring the health of consumer groups.</p><p>Importantly, brokers in Redpanda handle both storage and communication. Pulsar splits these into separate node types (brokers and BookKeeper nodes). Redpanda’s unified design is simpler and eliminates a class of network hops.</p><h3>Topics</h3><p>Events are organized into <strong>topics</strong> — named channels for related events. Every payment_processed event goes to the payments topic. Every user_login event goes to the logins topic.</p><h3>Partitions</h3><p>Topics are split into <strong>partitions</strong></p><p>The unit that enables horizontal scaling. A topic with 32 partitions distributes its data across 32 independent logs, potentially on different brokers. <br>This means storage capacity scales with the cluster rather than being limited by a single machine, and consumers can process different partitions in parallel.</p><h3>Records</h3><p>Every individual event is a <strong>record</strong></p><p>A key-value pair with a timestamp and optional headers. <br>The key is not just metadata: it determines which partition the record routes to. This has direct consequences for ordering guarantees.</p><h3>🔄 Producers &amp; Consumers</h3><ul><li>Producers → Publish events. They write to topics without knowing anything about who will consume those events.</li><li>Consumers → Applications that read events. They subscribe to topics and read from partitions at their own pace. This is the pull-based model that makes backpressure management possible — consumers only pull when they’re ready.</li><li>Consumer Groups → Mechanism that enables parallel consumption and multi-system fan-out simultaneously. Consumers in the same group split up the partitions between them — if a topic has 32 partitions and a group has 8 consumers, each consumer handles 4 partitions. Multiple independent groups can read the same topic simultaneously, each tracking their own position, with no coordination required between groups. This is how the Etsy order example scales: one topic, three consumer groups, each independently processing without interfering with the others.</li></ul><p>👉 One stream. Many readers. No duplication.</p><h3>🎯 How Work Gets Distributed — Partition Assignment</h3><p>So who decides which consumer gets which partition? That’s the job of the group leader.</p><h4>The Group Leader</h4><p>Each consumer group automatically elects a <strong>group leader</strong> — a special consumer whose extra job is to handle <strong>partition assignment</strong> among the group members.</p><ul><li>When a new consumer joins the group, the group leader redistributes partitions</li><li>When a consumer leaves (or crashes), the group leader triggers a <strong>rebalance</strong></li><li>The goal is always: every partition covered, no partition double-assigned</li></ul><h4>The Group Coordinator (Broker Side)</h4><p>On the broker side, each consumer group has an assigned broker called the <strong>group coordinator</strong>. This broker:</p><ul><li>Receives <strong>heartbeats</strong> from all consumers in the group</li><li>If a heartbeat is missed → triggers a rebalance by messaging the group leader</li><li>Ensures the group can <strong>recover automatically</strong> from failures</li></ul><blockquote><em>🩺 </em><strong><em>Heartbeat = a “I’m alive” ping.</em></strong><em> Consumers constantly tap the broker to say they’re healthy. If they stop tapping, the broker assumes something went wrong and redistributes their work.</em></blockquote><h3>🛡️ Fault Tolerance — What Happens When Things Break?</h3><p>One of the biggest advantages of Redpanda’s consumer group model is built-in fault tolerance.</p><h4>🔴 Scenario: AConsumer Crashes Mid-Processing</h4><ul><li>Consumer C2 stops sending heartbeats</li><li>Group coordinator notices the missed heartbeat</li><li>Group coordinator signals the group leader</li><li>Group leader triggers a rebalance — C2’s partitions are redistributed to C1 and C3</li><li>Processing continues without any manual intervention</li></ul><p>✅ No data lost. No human needed. System heals itself.</p><h4>🔄 Scenario: Rolling Restart of Your Application</h4><p>When you deploy a new version of your service, you might restart consumers one by one (a rolling restart). During this time:</p><ul><li>Consumers go offline temporarily</li><li>Their partitions are reassigned to other consumers</li><li>When they come back, they rejoin the group and get partitions back</li></ul><p>✅ Zero downtime. No events missed.</p><blockquote>💡This is exactly the durable delivery guarantee we talked about. Consumers track their own read position (offset). When a consumer comes back after a failure, it picks up exactly where it left off — no events skipped, no events double-processed (when configured correctly).</blockquote><h3>📜 The Log — The Real Backbone</h3><p>Inside every partition is a data structure called a <strong>Log</strong>. Not an application log — a specific data structure:</p><blockquote><strong><em>Append-only log </em></strong>→ ordered sequence of immutable records.</blockquote><p>Properties:</p><ul><li>Ordered</li><li>Immutable</li><li>Sequential writes (fast)</li></ul><p>Each event has:</p><ul><li><strong>Offset → permanent position</strong></li></ul><p>Consumers track:</p><ul><li><strong>Sequential Offsets → progress</strong></li></ul><p>👉 This enables independent replay and scaling.</p><p>Each group maintains its own <strong>committed offset</strong> per partition — stored in a special internal Redpanda topic called __consumer_offsets. Group A might be at offset 1200 on Partition 0. Group B might be at 1185. They’re reading the same log, at their own pace, without affecting each other. No data duplication. No coordination overhead.</p><h3>⚠️ The Ordering Gotcha</h3><p>Ordering is:</p><ul><li>✅ Guaranteed within partition</li><li>❌ Not guaranteed across partitions</li></ul><p>Solution:</p><p>👉 <strong>Key-based routing</strong></p><p>All events for same key → same partition → correct order</p><p>👉 Bad key = broken system</p><h3>⚙️ The Four Operational Pillars</h3><h3>🧩 Ease of Use</h3><ul><li>One binary vs multiple systems</li></ul><p>Kafka requires four separate systems for a complete production deployment: the Kafka cluster itself, Confluent Schema Registry (for schema management), a REST Proxy (for HTTP clients), and a separate stream processing cluster (Flink or Spark) for transformations.</p><p>Redpanda ships all four as a single binary. One deployment. One thing to monitor. One upgrade path. The operational surface area reduction is substantial.</p><ul><li>Unified CLI (rpk)</li></ul><p>rpk is a unified CLI that handles cluster management, topic operations, consumer group inspection, and more — with a consistent interface that&#39;s actually pleasant to use.</p><p>👉 Less operational pain</p><h3>⚡ Performance</h3><ul><li>No GC pauses</li><li>Lower latency variance →10x lower tail latency, 6x faster Kafka transactions</li><li>In-place transforms →Redpanda Transforms (built on WebAssembly) let you run filtering, enrichment, and transformation logic directly on the broker, co-located with the data.</li></ul><p>👉 Consistency &gt; peak speed</p><h3>🛡️ Reliability</h3><ul><li>Raft consensus protocol for replication</li><li>Durable offsets</li></ul><p>👉 Failure becomes recoverable</p><h3>📈 Scalability</h3><ul><li>Horizontal scaling via partitions</li><li>Consumer parallelism</li></ul><h3>☁️ Shadow Indexing</h3><ul><li>Old data → object storage</li><li>Infinite retention (practically)</li></ul><p>👉 Replay forever without cost explosion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*L0FH8CP_4d-C3Ddr" /></figure><h3>⚠️ Where Redpanda Still Falls Short</h3><p>Let’s not pretend it’s perfect.</p><ul><li>Less battle-tested than Kafka</li><li>Performance claims need context</li><li>Tiered storage latency trade-offs</li><li>Schema evolution not deeply covered</li></ul><p>👉 Strong foundation. Still maturing.</p><h3>🧠 The Big Realization</h3><p>Everything connects:</p><ul><li>Immutability → replay</li><li>Replay → log</li><li>Log → offsets</li><li>Offsets → independent consumers</li><li>Consumers → Pub/Sub</li><li>Pub/Sub → decoupling</li></ul><p>👉 This is not features.</p><p>👉 This is a <strong>system</strong>.</p><h3>🚀 What’s Next</h3><p>Learn everything about this course here: [Medium link placeholder]</p><p>Next step:</p><ul><li>Install Redpanda</li><li>Create topics</li><li>Produce events</li><li>Consume streams</li></ul><p>👉 Theory is clean.<br>👉 Reality is where it gets interesting.</p><p><em>I am a developer, documenting learnings with technical depth for engineers who want more than a summary. Follow along as the series covers hands-on installation, stream processing, Kafka building blocks, and production operations.</em></p><p>Contact - khrsam02@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ee7e7d0b775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Complete Java Developer Roadmap for 2026, Everything You Need to Clear the Interview]]></title>
            <link>https://medium.com/@kherasam18/the-complete-java-developer-roadmap-for-2026-everything-you-need-to-clear-the-interview-12c4184a37a7?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/12c4184a37a7</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[java25]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 11:24:04 GMT</pubDate>
            <atom:updated>2026-04-25T11:24:04.825Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Topic-by-topic breakdown of what actually gets tested from core fundamentals to cloud-native and GenAI</em></h3><p>I spent weeks going through Java interview threads, job descriptions, and tech blogs from 2024–2026. The same pattern kept showing up: people who prepared broad failed. People who went deep on the right topics cleared rounds others didn’t even get through.</p><p>This roadmap is everything you need — categorized, prioritized, and honest about what level each topic matters at. Bookmark it. Come back to it. Use it as a checklist.</p><h3>1. Core Java</h3><p>The foundation. If this is shaky, nothing else holds up.</p><p><strong>What to know:</strong></p><ul><li>Primitives vs Objects, pass-by-value vs pass-by-reference</li><li>String, StringBuilder, StringBuffer — internals and when to use which</li><li>equals() and hashCode() contract — not just definitions, understand the bug you&#39;d cause by breaking it</li><li>Immutability — why String is immutable, how to design immutable classes</li><li>final, static, transient, volatile — what each one actually does</li><li>Autoboxing, unboxing, and the subtle bugs they hide</li><li>Wrapper classes, Integer caching (-128 to 127)</li><li>Varargs, enums, nested classes, inner classes, anonymous classes</li><li>instanceof, casting, and ClassCastException</li><li>Java memory model basics — stack vs heap</li></ul><p><strong>Where it shows up:</strong> Every interview, at every level. Senior interviews assume you know this cold.</p><h3>2. Object-Oriented Programming (OOP)</h3><p>Interviewers don’t want definitions. They want applied thinking.</p><p><strong>What to know:</strong></p><ul><li>The four pillars — but more importantly, when to break encapsulation, when NOT to use inheritance</li><li>Abstract classes vs interfaces — and why the line blurred with Java 8 default methods</li><li>Composition over inheritance — why, and how to apply it in design</li><li>Polymorphism — runtime vs compile-time, method overloading vs overriding</li><li>SOLID principles — not as theory, but as code review feedback</li><li>Cohesion and coupling — spotting them in real code</li><li>Object class methods — toString(), clone(), finalize() and why finalize() is dead</li></ul><p><strong>Where it shows up:</strong> Mid and senior roles. Often framed as “review this code” or “how would you redesign this.”</p><h3>3. Collections Framework</h3><p>One of the highest-frequency interview topics. Internals matter more than the API.</p><p><strong>What to know:</strong></p><ul><li>ArrayList vs LinkedList — actual performance trade-offs, not just &quot;ArrayList is faster&quot;</li><li>HashMap internals — hashing, buckets, load factor, resize, treeification after Java 8</li><li>LinkedHashMap, TreeMap, WeakHashMap — when each one is the right pick</li><li>HashSet, TreeSet, LinkedHashSet</li><li>ArrayDeque vs Stack, PriorityQueue internals</li><li>Collections utility class, Arrays utility class</li><li>Fail-fast vs fail-safe iterators</li><li>ConcurrentHashMap vs Hashtable vs synchronized Map</li><li>CopyOnWriteArrayList — why it exists, when the cost is worth it</li><li>Generics — bounded wildcards (? extends T, ? super T), type erasure</li></ul><p><strong>Where it shows up:</strong> Every level. Internals questioned heavily from mid-level onwards.</p><h3>4. Java 8+ Features (up to Java 21)</h3><p>If you can’t talk about Streams internals, you’re leaving senior roles on the table.</p><p><strong>What to know:</strong></p><ul><li>Lambda expressions — syntax, effectively final, method references</li><li>Streams API — filter, map, flatMap, reduce, collect</li><li>Lazy evaluation and short-circuiting — this is what interviewers probe</li><li>Optional — correct usage, avoiding .get() without check</li><li>Default and static methods in interfaces</li><li>Functional interfaces — Predicate, Function, Consumer, Supplier, BiFunction</li><li>CompletableFuture — chaining, exception handling, combining futures</li><li>New Date/Time API — LocalDate, LocalDateTime, ZonedDateTime, Duration, Period</li><li>var keyword (Java 10) — where it helps, where it hides intent</li><li>Records (Java 14+) — when to use them, what they can’t do</li><li>Sealed classes (Java 17) — pattern matching with switch</li><li>Text blocks (Java 15)</li><li>Pattern matching for instanceof (Java 16)</li></ul><p><strong>Where it shows up:</strong> Mid-level onwards. Java 17 features increasingly expected in 2025–26.</p><h3>5. Multithreading and Concurrency</h3><p>Where mid-level developers get separated from senior developers.</p><p><strong>What to know:</strong></p><ul><li>Thread lifecycle, Runnable vs Callable, Thread vs ExecutorService</li><li>synchronized keyword — method vs block level</li><li>volatile — visibility guarantee, not atomicity</li><li>ReentrantLock, ReadWriteLock — when to prefer over synchronized</li><li>Semaphore, CountDownLatch, CyclicBarrier, Phaser</li><li>Atomic classes — AtomicInteger, AtomicReference, compare-and-swap</li><li>Thread-local storage — ThreadLocal and its memory leak risk</li><li>Deadlock, livelock, starvation — how to detect, prevent, and explain</li><li>wait(), notify(), notifyAll() — producer-consumer pattern</li><li>ConcurrentHashMap, BlockingQueue, concurrent collections</li><li>Common concurrency bugs: race conditions, memory visibility issues</li></ul><p><strong>Where it shows up:</strong> Mid-level and above. Senior interviews often involve designing thread-safe structures from scratch.</p><h3>6. Executor Framework and Scheduling</h3><p>Often treated as a subtopic of concurrency but deserves its own focus in 2026.</p><p><strong>What to know:</strong></p><ul><li>ExecutorService, ThreadPoolExecutor, ScheduledExecutorService</li><li>Executors factory methods — newFixedThreadPool, newCachedThreadPool, newSingleThreadExecutor</li><li>Thread pool sizing — CPU-bound vs I/O-bound task heuristics</li><li>Future, FutureTask — blocking vs non-blocking patterns</li><li>CompletableFuture pipelines — the modern way</li><li>ScheduledExecutorService vs @Scheduled in Spring</li><li>Virtual threads (Project Loom) — how they change the thread pool model entirely</li><li>ForkJoinPool — work stealing, parallel streams under the hood</li></ul><p><strong>Where it shows up:</strong> Senior roles. Any system with background jobs, scheduled tasks, or async processing.</p><h3>7. JVM Internals and Garbage Collection</h3><p>You don’t need to know every GC algorithm. You need to know enough to make decisions.</p><p><strong>What to know:</strong></p><ul><li>JVM architecture — class loader, runtime data areas, execution engine</li><li>Class loading — bootstrap, extension, application, and custom class loaders</li><li>JIT compilation — interpreted vs compiled, tiered compilation</li><li>Heap structure — young generation, old generation, metaspace</li><li>GC algorithms — Serial, Parallel, G1, ZGC, Shenandoah — trade-offs between throughput and latency</li><li>GC tuning flags — -Xms, -Xmx, -XX:+UseG1GC</li><li>Memory leaks in Java — what causes them, how to find them</li><li>OutOfMemoryError types — heap, metaspace, stack</li><li>Profiling tools — JVisualVM, JConsole, Java Flight Recorder</li><li>GraalVM — AOT compilation, native images, startup time advantage for microservices</li></ul><p><strong>Where it shows up:</strong> Senior and architect roles. Often asked as “walk me through what happens when this app runs.”</p><h3>8. Project Loom — Virtual Threads and Structured Concurrency</h3><p>This is the topic that separates people who are actually reading from people who are just revising. Project Loom ships two distinct ideas that often get collapsed into one — they’re related but worth understanding separately.</p><h3>Virtual Threads</h3><p>The core idea: instead of one OS thread per Java thread, virtual threads are lightweight threads managed entirely by the JVM. You can spin up millions of them without exhausting system resources.</p><p><strong>What to know:</strong></p><ul><li>How virtual threads work — JVM multiplexes them onto a small pool of carrier threads (ForkJoinPool by default)</li><li>Thread.ofVirtual().start(Runnable) — the direct API</li><li>Executors.newVirtualThreadPerTaskExecutor() — the idiomatic way in most services</li><li>Why they matter for I/O-bound workloads — when a virtual thread blocks on I/O, it unmounts from the carrier thread, freeing it for other work</li><li><strong>Pinning</strong> — when a virtual thread gets stuck to its carrier thread and can’t unmount. Happens inside synchronized blocks and native method calls. This is the most common interview follow-up question</li><li>-Djdk.tracePinnedThreads=full — the JVM flag to detect pinning in your app</li><li>ReentrantLock instead of synchronized — the practical fix for pinning in library code</li><li>When virtual threads don’t help — CPU-bound tasks still need real threads; virtual threads don’t make computation faster</li><li>Thread-local variables with virtual threads — ThreadLocal still works but can cause memory pressure at scale; ScopedValue is the intended replacement</li><li><strong>Spring Boot 3.2+ integration</strong> — setting spring.threads.virtual.enabled=true switches the entire web layer to virtual threads</li></ul><h3>Structured Concurrency</h3><p>Virtual threads solve the scale problem. Structured concurrency solves the correctness and observability problem when running concurrent tasks.</p><p>The core idea: if you fork multiple tasks, their lifetimes should be scoped to the block that created them. A parent task should not complete while its child tasks are still running. This is the same principle as structured programming (no arbitrary GOTOs) applied to threads.</p><p><strong>What to know:</strong></p><ul><li>StructuredTaskScope — the main API, finalized in Java 21 as a preview feature</li><li>StructuredTaskScope.ShutdownOnFailure — if any subtask fails, cancel the rest and propagate the exception</li><li>StructuredTaskScope.ShutdownOnSuccess — cancel remaining tasks as soon as the first one succeeds (useful for redundant calls, race-to-first-response patterns)</li><li>The lifecycle: fork() → join() → throwIfFailed() — and why the try-with-resources pattern enforces proper cleanup</li><li>How structured concurrency improves observability — thread dumps show the full parent-child task tree, making it far easier to understand what’s in-flight</li><li>ScopedValue — the structured concurrency-friendly replacement for ThreadLocal, allows passing immutable context down a call tree without thread-local mutation</li><li>Why structured concurrency makes cancellation reliable — cancelling the scope cancels all forked tasks, no orphaned threads</li></ul><p><strong>A concrete example to have in your head:</strong></p><pre>try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {<br>    Subtask&lt;User&gt;    user    = scope.fork(() -&gt; fetchUser(userId));<br>    Subtask&lt;Account&gt; account = scope.fork(() -&gt; fetchAccount(userId));</pre><pre>    scope.join().throwIfFailed();</pre><pre>    return new Dashboard(user.get(), account.get());<br>}</pre><p>Both calls run concurrently. If either fails, the other is cancelled automatically, the exception propagates cleanly, and the scope closes — no leaked threads, no manual Future plumbing.</p><h3>The Bigger Picture</h3><ul><li>Virtual threads + Structured Concurrency together are Project Loom’s answer to the complexity of reactive programming — same throughput, far simpler code</li><li>The honest trade-off: reactive programming (WebFlux, RxJava) still has a place for advanced back-pressure scenarios, but for most I/O-bound services, virtual threads make it unnecessary</li><li>Java 21 ships both as preview features; they’re expected to finalize in Java 23/24. Spring Boot 3.2+ and frameworks like Quarkus and Micronaut all have integration support</li></ul><p><strong>Where it shows up:</strong> Senior and architect roles. Interviewers use this as a signal for who’s paying attention to where Java is actually going, not just where it’s been.</p><h3>9. Design Patterns and Architecture Principles</h3><p>Theory is table stakes. Application is what gets evaluated.</p><p><strong>What to know:</strong></p><ul><li>Creational — Singleton (and its thread-safety issues), Factory, Abstract Factory, Builder, Prototype</li><li>Structural — Adapter, Decorator, Proxy, Facade, Composite</li><li>Behavioral — Strategy, Observer, Command, Template Method, Chain of Responsibility, State</li><li>SOLID principles — with real code examples of each violation</li><li>DRY, KISS, YAGNI — and when breaking them is justified</li><li>Domain-Driven Design basics — aggregates, value objects, bounded contexts</li><li>Hexagonal architecture (Ports and Adapters)</li><li>CQRS — Command Query Responsibility Segregation</li><li>Event Sourcing — what it is and what complexity it introduces</li></ul><p><strong>Where it shows up:</strong> Mid-level to architect. Often embedded in system design discussions.</p><h3>10. Spring Framework (Core + Boot)</h3><p>The most commonly asked framework topic across all levels.</p><p><strong>Spring Core:</strong></p><ul><li>Dependency Injection — constructor vs setter vs field injection (and why field injection is discouraged)</li><li>Bean lifecycle — @PostConstruct, @PreDestroy, BeanPostProcessor</li><li>Bean scopes — Singleton, Prototype, Request, Session</li><li>ApplicationContext vs BeanFactory</li><li>AOP — @Aspect, @Before, @After, @Around, pointcut expressions</li><li>@Transactional — propagation, isolation levels, rollback rules</li><li>Spring Events — ApplicationEvent, @EventListener</li></ul><p><strong>Spring Boot:</strong></p><ul><li>Auto-configuration — how it works, spring.factories, @ConditionalOn*</li><li>application.properties vs application.yml, profiles</li><li>Actuator — health checks, metrics, custom endpoints</li><li>Spring Boot testing — @SpringBootTest, @WebMvcTest, @DataJpaTest</li><li>Externalized configuration — @ConfigurationProperties, @Value</li></ul><p><strong>Where it shows up:</strong> From mid-level onwards. Spring is assumed knowledge in most Java job descriptions.</p><h3>11. APIs — REST, GraphQL, gRPC</h3><p>Modern Java services communicate via APIs. Knowing one isn’t enough anymore.</p><p><strong>REST:</strong></p><ul><li>HTTP methods, status codes, idempotency</li><li>REST constraints — statelessness, uniform interface</li><li>Versioning strategies — URI, header, parameter</li><li>HATEOAS — what it is, when it’s practical</li><li>OpenAPI / Swagger documentation</li><li>Rate limiting, pagination, filtering patterns</li></ul><p><strong>GraphQL:</strong></p><ul><li>Queries, mutations, subscriptions</li><li>Schema-first design</li><li>N+1 problem and DataLoader pattern</li><li>When GraphQL is the right choice vs REST</li></ul><p><strong>gRPC:</strong></p><ul><li>Protocol Buffers — .proto files, code generation</li><li>Unary, server streaming, client streaming, bidirectional</li><li>When gRPC beats REST — internal microservice communication, high-throughput</li><li>gRPC in Java with grpc-java</li></ul><p><strong>Where it shows up:</strong> Mid-level onwards. gRPC increasingly expected in microservices-heavy shops.</p><h3>12. Databases</h3><p>SQL fundamentals are non-negotiable. NoSQL and vector databases are fast becoming relevant.</p><p><strong>Relational (PostgreSQL, H2):</strong></p><ul><li>SQL — joins, subqueries, window functions, CTEs</li><li>Indexing strategies — B-tree, composite indexes, partial indexes, covering indexes</li><li>Query optimization — EXPLAIN ANALYZE, avoiding full scans</li><li>Transactions and isolation levels — read committed, repeatable read, serializable</li><li>H2 in-memory database — for testing, embedded mode</li><li>PostgreSQL-specific — JSONB, full-text search, advisory locks</li></ul><p><strong>JPA / Hibernate:</strong></p><ul><li>Entity mappings, relationships (@OneToMany, @ManyToMany)</li><li>Fetch types — lazy vs eager and the N+1 query problem</li><li>JPQL vs Criteria API vs native queries</li><li>Caching — first-level (session), second-level (Ehcache, Redis)</li><li>@Transactional in JPA context</li><li>Optimistic vs pessimistic locking</li></ul><p><strong>NoSQL and Vector Databases:</strong></p><ul><li>MongoDB basics — documents, collections, aggregation pipeline</li><li>Redis — data structures, pub/sub, TTL, use as cache and message broker</li><li>Vector databases (Pinecone, pgvector, Weaviate) — embeddings, similarity search, relevance for RAG-based AI apps</li><li>When to choose NoSQL over relational</li></ul><p><strong>Where it shows up:</strong> All levels. JPA internals and query optimization at senior level.</p><h3>13. Kafka and Event Streaming</h3><p>Real-time systems are everywhere. Kafka knowledge is now expected in mid-to-senior roles.</p><p><strong>What to know:</strong></p><ul><li>Core concepts — topics, partitions, offsets, consumer groups</li><li>Producers — acknowledgment modes (acks=0, 1, all), batching, compression</li><li>Consumers — poll loop, offset management, auto.commit vs manual commit</li><li>Consumer group rebalancing — what triggers it, impact on processing</li><li>Exactly-once semantics — idempotent producer, transactional API</li><li>Schema Registry and Avro — why schema management matters</li><li>Kafka Streams vs plain consumer — when to use each</li><li>Dead letter queues and error handling</li><li>Spring Kafka — @KafkaListener, KafkaTemplate, error handlers</li><li>Kafka vs RabbitMQ — the actual trade-off conversation</li></ul><p><strong>Where it shows up:</strong> Mid and senior roles, especially in fintech, e-commerce, and data-heavy platforms.</p><h3>14. System Design Concepts</h3><p>This is where senior conversations actually happen.</p><p><strong>Fundamentals:</strong></p><ul><li>CAP theorem — what you actually sacrifice in partition scenarios</li><li>Consistency models — eventual, strong, causal</li><li>Scalability — vertical vs horizontal, stateless vs stateful services</li></ul><p><strong>Caching:</strong></p><ul><li>Cache-aside, write-through, write-behind, read-through</li><li>Cache invalidation — the hard problem</li><li>Redis as a distributed cache — TTL, eviction policies</li><li>What happens when the cache layer fails</li></ul><p><strong>Event Streaming and Messaging:</strong></p><ul><li>Synchronous vs asynchronous communication trade-offs</li><li>Event-driven architecture — event sourcing, outbox pattern</li><li>Saga pattern — choreography vs orchestration</li><li>When to use Kafka vs a message queue vs direct API calls</li></ul><p><strong>API Design:</strong></p><ul><li>API gateway patterns — rate limiting, authentication, routing</li><li>Backward compatibility — versioning strategies</li><li>Contract-first design</li><li>Idempotency keys for safe retries</li></ul><p><strong>Data and Storage:</strong></p><ul><li>Database sharding — horizontal partitioning, shard keys, hotspot problem</li><li>Read replicas, leader-follower replication</li><li>CQRS in practice</li><li>Choosing between SQL, NoSQL, and in-memory stores</li></ul><p><strong>Resilience:</strong></p><ul><li>Circuit breaker pattern — Resilience4j</li><li>Bulkhead pattern</li><li>Retry with exponential backoff</li><li>Timeout and fallback strategies</li></ul><p><strong>Where it shows up:</strong> Senior and architect rounds. Usually a 45–60 minute whiteboard session.</p><h3>15. Spring AI and GenAI / Agentic AI</h3><p>This is the fastest-growing area in Java interviews right now. Teams are shipping AI features and interviewers are starting to probe it.</p><p><strong>Spring AI:</strong></p><ul><li>ChatClient and ChatModel abstractions</li><li>Integrating OpenAI, Anthropic, Ollama via Spring AI</li><li>PromptTemplate and dynamic prompt construction</li><li>EmbeddingModel — generating and storing vector embeddings</li><li>VectorStore integration — pgvector, Pinecone, Chroma</li><li>RAG (Retrieval-Augmented Generation) pipeline — the architecture behind most AI features</li><li>@Tool annotation and tool calling from LLMs</li><li>Structured output — parsing LLM responses into Java objects</li></ul><p><strong>GenAI Fundamentals:</strong></p><ul><li>What embeddings are and why they matter for search</li><li>Context windows — what they are, why chunking matters</li><li>Prompt engineering basics — system prompts, few-shot examples</li><li>RAG architecture — retrieval, augmentation, generation flow</li></ul><p><strong>Agentic AI:</strong></p><ul><li>What agents are — LLMs that call tools and make sequential decisions</li><li>Agent loops — observe → think → act</li><li>Tool definitions and function calling</li><li>Multi-agent patterns — supervisor, handoff, parallel agents</li><li>LangChain4j as an alternative to Spring AI for agent workflows</li></ul><p><strong>Where it shows up:</strong> Not universal yet, but product companies and startups are actively asking this. By end of 2026 it will be mainstream.</p><h3>16. Reactive Programming</h3><p>Not every team needs this. But high-throughput services increasingly do.</p><p><strong>What to know:</strong></p><ul><li>Reactive Streams spec — Publisher, Subscriber, Subscription, Processor</li><li>Project Reactor — Mono, Flux, operators (map, flatMap, zip, merge)</li><li>Backpressure — what it is and how Reactor handles it</li><li>Error handling in reactive chains — onErrorReturn, onErrorResume, retry</li><li>WebFlux — Spring&#39;s reactive web layer vs Spring MVC</li><li>When reactive is the wrong choice — complexity cost, debugging difficulty</li><li>Virtual threads (Loom) as an alternative mental model</li></ul><p><strong>Where it shows up:</strong> Platforms with high I/O concurrency — streaming, notifications, real-time systems.</p><h3>17. Testing</h3><p>Bad tests are worse than no tests. Interviews increasingly test your testing thinking, not just coverage.</p><p><strong>What to know:</strong></p><ul><li>JUnit 5 — @Test, @ParameterizedTest, @BeforeEach, @ExtendWith</li><li>Mockito — @Mock, @InjectMocks, when/thenReturn, verify, ArgumentCaptor</li><li>Integration testing — @SpringBootTest, @TestContainers</li><li>@WebMvcTest — testing controllers without full context</li><li>@DataJpaTest — testing repositories with in-memory DB</li><li>Contract testing — Pact or Spring Cloud Contract</li><li>Test pyramid — unit, integration, E2E — and why it’s often inverted in practice</li><li>Test naming and structure — given/when/then</li><li>What NOT to mock — the debate around over-mocking</li></ul><p><strong>Where it shows up:</strong> Mid-level onwards. Senior interviews often ask “how would you test this design?”</p><h3>18. Logging and Caching</h3><p>Unglamorous but separates engineers who’ve run production systems from those who haven’t.</p><p><strong>Logging:</strong></p><ul><li>SLF4J and Logback — the standard stack</li><li>Log levels and when to use each — TRACE, DEBUG, INFO, WARN, ERROR</li><li>Structured logging — JSON logs for log aggregation</li><li>MDC (Mapped Diagnostic Context) — correlation IDs for tracing requests</li><li>Log aggregation — ELK stack (Elasticsearch, Logstash, Kibana) basics</li><li>What not to log — PII, passwords, secrets</li></ul><p><strong>Caching:</strong></p><ul><li>Spring Cache abstraction — @Cacheable, @CacheEvict, @CachePut</li><li>Cache providers — Caffeine (local), Redis (distributed)</li><li>Cache-aside pattern in Spring</li><li>TTL vs TTI — time-to-live vs time-to-idle</li><li>Cache stampede (thundering herd) — what it is, how to prevent it</li></ul><p><strong>Where it shows up:</strong> Senior roles and any conversation about production systems.</p><h3>19. Lombok</h3><p>Short but worth its own section because it’s everywhere and misused everywhere.</p><p><strong>What to know:</strong></p><ul><li>@Data, @Getter, @Setter, @ToString, @EqualsAndHashCode</li><li>@Builder — for clean object construction</li><li>@AllArgsConstructor, @NoArgsConstructor, @RequiredArgsConstructor</li><li>@Slf4j — simplest way to get a logger</li><li>@Value — for immutable classes</li><li>What Lombok generates under the hood — know what bytecode you’re shipping</li><li>The debate — some teams ban it, know both sides</li></ul><p><strong>Where it shows up:</strong> Practical coding rounds. Also “what does this annotation do?” questions.</p><h3>20. Build Tools — Maven and Gradle</h3><p>Not glamorous. Still tested.</p><p><strong>Maven:</strong></p><ul><li>POM structure — groupId, artifactId, version, packaging</li><li>Dependency scopes — compile, test, provided, runtime</li><li>Lifecycle phases — clean, compile, test, package, install, deploy</li><li>Plugins — Surefire, Failsafe, Spring Boot Maven Plugin</li><li>Multi-module projects — parent POM, inheritance vs aggregation</li><li>Dependency conflicts and &lt;exclusions&gt;</li></ul><p><strong>Gradle:</strong></p><ul><li>build.gradle structure — plugins, dependencies, tasks</li><li>Gradle wrapper — why it exists</li><li>Build cache and incremental builds — why Gradle is faster for large projects</li><li>Kotlin DSL vs Groovy DSL</li></ul><p><strong>Where it shows up:</strong> Practical questions. Sometimes “debug why this build is failing.”</p><h3>21. Git</h3><p>You’d be surprised how many people still don’t know this well.</p><p><strong>What to know:</strong></p><ul><li>Core commands — clone, fetch, pull, push, stash, rebase, cherry-pick</li><li>Branching strategies — GitFlow, trunk-based development</li><li>rebase vs merge — and when each is appropriate</li><li>Resolving conflicts — not just “accept theirs/ours” but understanding the diff</li><li>git bisect — binary search through commits to find a bug</li><li>git reflog — recovering from mistakes</li><li>Conventional commits — why commit message standards matter</li><li>Pull request reviews — what good feedback looks like</li></ul><p><strong>Where it shows up:</strong> Practical rounds. Also used to assess collaboration habits.</p><h3>22. Docker and Containerization</h3><p>Container knowledge is now a baseline expectation for Java developers.</p><p><strong>What to know:</strong></p><ul><li>Dockerfile for Java apps — multi-stage builds to reduce image size</li><li>Base image choices — eclipse-temurin, amazoncorretto, distroless</li><li>Layer caching — ordering instructions for faster builds</li><li>Environment variables and secrets in containers</li><li>docker-compose — local multi-service development</li><li>Health checks in Docker</li><li>Container resource limits — memory and CPU</li><li>JVM in containers — why -XX:+UseContainerSupport matters, heap sizing in containers</li></ul><p><strong>Where it shows up:</strong> Mid-level onwards. Often a “walk me through your Dockerfile” question.</p><h3>23. Kubernetes</h3><p>Expected at senior level, especially in cloud-native roles.</p><p><strong>What to know:</strong></p><ul><li>Core objects — Pod, Deployment, Service, ConfigMap, Secret, Ingress</li><li>kubectl fundamentals — get, describe, logs, exec, apply</li><li>Rolling updates and rollback strategies</li><li>Liveness and readiness probes — how they affect your Java app’s startup</li><li>Resource requests and limits — what happens when your Java app hits the limit</li><li>Horizontal Pod Autoscaler</li><li>ConfigMaps for Spring profiles — externalizing configuration in K8s</li><li>Namespaces, RBAC basics</li><li>Helm — templating Kubernetes manifests</li></ul><p><strong>Where it shows up:</strong> Senior and architect roles in cloud-native teams.</p><h3>24. AWS (and Cloud Fundamentals)</h3><p>You don’t need to be a cloud architect. You need to know enough to build and deploy services.</p><p><strong>Core services:</strong></p><ul><li>EC2 basics — instance types, security groups, key pairs</li><li>S3 — buckets, presigned URLs, lifecycle policies</li><li>RDS — managed databases, multi-AZ, read replicas</li><li>Lambda — serverless functions, cold start problem, Java runtime considerations</li><li>SQS / SNS — message queuing vs pub/sub, dead letter queues</li><li>API Gateway — exposing Lambda or ECS services</li><li>ECS / EKS — containers on AWS</li><li>CloudWatch — logs, metrics, alarms, dashboards</li><li>IAM — roles, policies, least privilege</li></ul><p><strong>Java-specific:</strong></p><ul><li>AWS SDK for Java v2 — async clients, S3Client, SqsClient</li><li>Spring Cloud AWS — integration with SQS, S3, Parameter Store</li></ul><p><strong>Where it shows up:</strong> Senior roles. Cloud-first companies expect hands-on AWS knowledge.</p><h3>25. CI/CD and Jenkins</h3><p>Shipping software reliably is part of the job description now.</p><p><strong>What to know:</strong></p><ul><li>CI/CD concepts — what continuous integration actually means vs deployment</li><li>Jenkins — Jenkinsfile, declarative vs scripted pipelines, agents</li><li>Pipeline stages — checkout, build, test, static analysis, Docker build, deploy</li><li>GitHub Actions as a modern alternative — workflows, jobs, steps, secrets</li><li>SonarQube integration — static code analysis in the pipeline</li><li>Artifact management — Nexus, JFrog Artifactory</li><li>Blue/green and canary deployments — strategies for zero-downtime releases</li><li>Rollback strategies — when a deploy goes wrong</li></ul><p><strong>Where it shows up:</strong> Senior roles and any conversation about DevOps practices.</p><h3>26. Linux</h3><p>Java runs on Linux. Not knowing the basics is a gap.</p><p><strong>What to know:</strong></p><ul><li>File system navigation — ls, cd, find, locate</li><li>File operations — cat, tail -f, grep, awk, sed</li><li>Process management — ps, top, htop, kill, nohup</li><li>Network commands — curl, wget, netstat, ss, ping, traceroute</li><li>Permissions — chmod, chown, umask</li><li>Cron jobs — syntax, crontab -e</li><li>Log inspection — tail -f, grep with logs, journalctl</li><li>Basic shell scripting — loops, conditionals, variables</li><li>systemd — starting, stopping, enabling services</li></ul><p><strong>Where it shows up:</strong> Practical rounds, ops-heavy roles, any senior Java position.</p><h3>Putting It Together</h3><p>Here’s a rough sequence that makes sense for most people:</p><pre>Core Java → OOP → Collections → Java 8+ → Concurrency<br>    → Design Patterns → Spring → Databases → Testing<br>        → JVM Internals → Kafka → System Design<br>            → Docker → Kubernetes → AWS → CI/CD<br>                → Project Loom → Spring AI → Reactive</pre><p>Don’t try to finish everything before applying. Get to System Design, then apply and fill gaps while interviewing.</p><h3>What’s Actually New in 2026</h3><ul><li><strong>Virtual threads are production-ready.</strong> Spring Boot 3.2+ ships with virtual thread support. Know the trade-offs.</li><li><strong>Spring AI is moving fast.</strong> RAG pipelines and tool calling are being built in Java shops right now.</li><li><strong>Java 21 LTS is the new baseline.</strong> Records, sealed classes, pattern matching — these are expected.</li><li><strong>GraalVM native images</strong> are showing up in cold-start-sensitive microservices. Know why.</li><li><strong>Vector databases</strong> are becoming relevant for any team touching AI features.</li></ul><h3>Final Thought</h3><p>Every topic on this list has been asked in interviews somewhere in the last 18 months. That doesn’t mean you need all of it before your first interview next week.</p><p>Know your level. Go deep on what’s tested at that level. Use this as a map, not a syllabus.</p><p>The developers who clear the hard rounds aren’t the ones who read the most. They’re the ones who understood a smaller set of things well enough to explain the trade-offs — not just the definitions.</p><p><em>If this was useful, follow for more honest Java content. Drop a comment with the topic that’s caught you off guard in a recent interview — I’m compiling a follow-up piece on the questions that actually separate candidates.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*sqxQYFlT-owiwqJe.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c4184a37a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Oracle Database Is Already Streaming — You Just Can’t Access It Yet]]></title>
            <link>https://medium.com/@kherasam18/your-oracle-database-is-already-streaming-you-just-cant-access-it-yet-5d58ad970659?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d58ad970659</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[red-panda]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 15:51:12 GMT</pubDate>
            <atom:updated>2026-04-22T15:51:12.470Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oracle CDC in Redpanda Connect: Less Infrastructure, More Data Flow</h3><p><strong>Redpanda just made one of the most painful pipelines in data engineering significantly simpler. Here’s what changed, what still needs work, and whether it’s worth your attention.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JyMl9_EK_iQOFunj.jpg" /></figure><h4>The Problem Nobody Talks About Honestly</h4><p>There’s a conversation that happens in a lot of data teams, usually when someone from product asks why the analytics dashboard is showing yesterday’s numbers.</p><p>The answer is almost always the same: <em>“The data’s in Oracle. It’ll sync tonight.”</em></p><p>This isn’t a data quality problem. It isn’t a database problem. It’s a movement problem. The data exists — orders, inventory updates, customer records, financial transactions — all of it sitting in Oracle, perfectly accurate, completely up to date. The problem is that it’s trapped there.</p><p>Getting it out in real time has historically meant standing up a non-trivial amount of infrastructure. And that infrastructure, not the data itself, is what most teams end up spending their time maintaining.</p><p>Redpanda’s new oracledb_cdc connector in Redpanda Connect v4.83.0 is a direct attempt to fix that. It&#39;s worth understanding both what it actually does and where it still falls short.</p><h3>A Quick Primer: What Is CDC?</h3><p><em>If you’re already familiar with Change Data Capture, skip ahead. If not, this section is for you.</em></p><p><strong>Change Data Capture (CDC)</strong> is exactly what it sounds like — a way to capture every change that happens in a database and broadcast it to other systems.</p><p>Think of it like this: instead of asking your database “what does the orders table look like right now?” every few hours (a batch job), CDC says “tell me the moment any order is created, updated, or deleted.”</p><p>The difference matters enormously for systems that need to react to data in real time — fraud detection, inventory management, live dashboards, search indexes, and dozens of other use cases.</p><p>The challenge with CDC has never been the concept. It’s been the execution.</p><h3>The Old Way: Debezium on Kafka Connect</h3><p>For years, the industry answer to Oracle CDC was <strong>Debezium</strong> running on <strong>Kafka Connect</strong>. It’s a legitimate solution that many large companies run in production today.</p><p>Here’s what the architecture looks like:</p><pre>Oracle DB → Kafka Connect Workers → Debezium Connector → Kafka Topics → Consumers</pre><p>It works. But look at what you’re actually operating:</p><ul><li>A <strong>Kafka Connect cluster</strong> with dedicated worker nodes</li><li>A <strong>JVM heap</strong> to size and tune for each connector</li><li><strong>Connector offsets</strong> stored and managed separately</li><li><strong>Schema Registry</strong> configured independently</li><li>Two distinct platforms — Kafka <em>and</em> Kafka Connect — with their own monitoring, alerting, and failure modes</li></ul><p>For teams already running Kafka Connect for other reasons, adding Oracle CDC on top is a reasonable lift. But if Oracle CDC is your <em>only</em> reason to run Kafka Connect, you’ve just taken on a significant operational burden for what should be a data pipeline.</p><p>The engineers on your team who know how to tune JVM garbage collection and debug Kafka Connect worker rebalances are spending time on infrastructure instead of delivering data. That’s the real cost.</p><h3>What Redpanda Changed</h3><p>Starting with Redpanda Connect v4.83.0, the oracledb_cdc input connector captures changes directly from Oracle and routes them downstream — in a single process, with a single config file, and no JVM.</p><p>Here’s what a complete production pipeline looks like:</p><pre>input:<br>  oracledb_cdc:<br>    connection_string: oracle://cdc_user:your_password@oracle-db.internal:1521/ORCL<br>    stream_snapshot: true<br>    include:<br>      - SALES\\.ORDERS<br>      - SALES\\.ORDER_ITEMS</pre><pre>pipeline:<br>  processors:<br>    - schema_registry_encode:<br>        url: &lt;http://schema-registry:8081&gt;<br>        subject: ${! meta(&quot;table_name&quot;) }</pre><pre>output:<br>  redpanda:<br>    seed_brokers:<br>      - redpanda-broker:9092<br>    topic: ${! meta(&quot;table_name&quot;).lowercase() }<br>    compression: lz4</pre><p>That’s the <em>whole config</em>, not an excerpt. It streams changes from two Oracle tables, registers Avro schemas automatically, and routes each event to a dedicated Redpanda topic per table.</p><p>Let’s break down what’s actually happening here.</p><h3>How It Works Under the Hood</h3><h3>Step 1: The Snapshot</h3><p>On first run with stream_snapshot: true, the connector takes a consistent snapshot of every table in your include list and emits each existing row as a read event. This gives downstream consumers a full picture of the current state before live streaming begins.</p><h3>Step 2: LogMiner Streaming</h3><p>Once the snapshot completes, the connector switches to streaming mode. It tails Oracle’s <strong>redo logs</strong> using <strong>LogMiner</strong> — a feature that ships with Oracle Enterprise Edition — and picks up insert, update, and delete events as they land.</p><p>Each event carries metadata:</p><p>Field Description database_schema Schema where the table lives table_name Table that generated the event operation read, insert, update, or delete scn System Change Number (Oracle&#39;s timestamp) schema Full column schema for downstream processors</p><h3>Step 3: Checkpointing</h3><p>The connector stores its current position using Oracle’s <strong>System Change Number (SCN)</strong>. When it restarts, it resumes from the last checkpointed SCN — no re-snapshot, no gaps, no external cache required. The checkpoint is stored in Oracle itself via an auto-created table under the rpcn schema.</p><h3>Step 4: Routing</h3><p>The ${! meta(&quot;table_name&quot;).lowercase() } Bloblang expression dynamically routes each event to a topic named after its source table. One pipeline config handles any number of tables automatically.</p><h3>Schema Tracking: The Feature That Actually Matters Most</h3><p>Here’s the thing about CDC pipelines that nobody talks about until it bites them in production: <strong>schema drift</strong>.</p><p>Your DBA adds a column to the orders table. Your CDC pipeline doesn’t know about it. A downstream consumer starts getting nulls where they expected a value. Nobody notices for three days because the pipeline is still technically “running.”</p><p>This is the 3am problem. Most CDC tools leave schema management entirely to you.</p><p>The oracledb_cdc connector handles it automatically:</p><ul><li>It queries Oracle’s ALL_TAB_COLUMNS catalog to build a full column schema for each table</li><li>It attaches that schema as metadata to every event</li><li>The schema_registry_encode processor reads the schema directly, registers it with your Schema Registry, and encodes the payload as Avro</li><li>New columns added to a captured table are detected <strong>automatically mid-stream</strong></li><li>Dropped columns are reflected after a connector restart</li></ul><p>The precision-aware NUMBER mapping is worth calling out specifically: integers map to int64, decimals map to json.Number. No more string columns where you expected numbers.</p><h3>Regulated Environments: Oracle Wallet Support</h3><p>If you’re running Oracle in a regulated environment — finance, healthcare, government — plain-text credentials in a connection string won’t pass security review.</p><p>The connector supports <strong>Oracle Wallet</strong>, the standard file-based credential store provisioned by DBAs:</p><pre>input:<br>  oracledb_cdc:<br>    connection_string: oracle://host:1521/ORCL<br>    wallet_path: /opt/oracle/wallet<br>    wallet_password: &quot;${WALLET_PASSWORD}&quot;<br>    include:<br>      - SALES\\..*</pre><p>Two wallet types are supported:</p><ul><li>cwallet.sso — auto-login, no password required</li><li>ewallet.p12 — PKCS#12, requires wallet_password</li></ul><p>The wallet_password field is treated as a secret and is redacted from logs and config dumps. SSL is enabled automatically when wallet_path is set. This is the kind of detail that keeps security reviewers satisfied and auditors quiet.</p><h3>The Architecture Comparison</h3><p>To make this concrete, here’s what you’re replacing:</p><p><strong>Before (Debezium + Kafka Connect):</strong></p><pre>Oracle → LogMiner → Kafka Connect Workers (JVM)<br>       → Debezium Connector → Kafka Topics<br>       → Schema Registry (separate)<br>       → Consumers</pre><p>Platforms to operate: <strong>2</strong> Processes to monitor: <strong>4–6</strong> Languages/runtimes involved: <strong>Java (JVM)</strong></p><p><strong>After (Redpanda Connect):</strong></p><pre>Oracle → oracledb_cdc (Go binary) → Schema Registry → Redpanda Topics → Consumers</pre><p>Platforms to operate: <strong>1</strong> Processes to monitor: <strong>1</strong> Languages/runtimes involved: <strong>Go</strong></p><p>The single binary deploys the same way as anything else in your stack — a container, a systemd unit, a Kubernetes deployment. When something goes wrong, the logs are in one place.</p><h3>What’s Still Not Perfect</h3><p>Being honest about current limitations matters more than hype. Here’s what you should know before betting a production pipeline on this:</p><h3>1. Oracle Complexity Doesn’t Disappear</h3><p>LogMiner is powerful but not trivial to operate. You still need to configure:</p><ul><li>scn_window_size — the SCN range mined per cycle (default: 20,000)</li><li>mining_interval — how frequently LogMiner polls (default: 300ms)</li><li>backoff_interval — wait time when no new changes exist (default: 5s)</li><li>Proper Oracle permissions for the CDC user</li></ul><p>The tool simplifies the pipeline. It doesn’t abstract away Oracle itself.</p><h3>2. Dropped Columns Require a Restart</h3><p>New columns are picked up mid-stream automatically. But dropped columns aren’t reflected until you restart the connector. For systems with strict uptime requirements, this is a real gap. Zero-downtime schema evolution isn’t fully there yet.</p><h3>3. Enterprise License Required</h3><p>This component requires a Redpanda Enterprise Edition license. There’s a 30-day trial available, but this isn’t something you can evaluate freely in production without a commercial conversation. Factor that into your evaluation timeline.</p><h3>4. LOB Handling Is Binary</h3><p>Large object columns — CLOB and BLOB — are either fully enabled (lob_enabled: true, which adds memory overhead) or present but empty (lob_enabled: false). There&#39;s no middle ground like selective LOB capture per column. For schemas with heavy LOB usage, this is a real trade-off.</p><h3>5. Limited Visibility Into Failure Modes</h3><p>What happens when a transaction exceeds max_transaction_events? It&#39;s discarded silently. What&#39;s the behavior under sustained LogMiner lag? How does backpressure propagate? These are the questions that only get answered in production — and the documentation doesn&#39;t yet give you a clear picture.</p><h3>Where Redpanda Should Push This Further</h3><p>For this to truly replace Debezium-class setups at scale, there are four areas that need work:</p><h3>Observability</h3><p>Right now there’s no native visibility into:</p><ul><li>SCN lag (how far behind is the connector from the current Oracle SCN?)</li><li>LogMiner health and performance</li><li>Backpressure propagation through the pipeline</li></ul><p>For production CDC pipelines, lag visibility isn’t optional. You need to know when your pipeline is falling behind <em>before</em> your downstream systems notice.</p><h3>Zero-Downtime Schema Evolution</h3><p>The current behavior for dropped and renamed columns requires a restart. In a high-uptime environment, planned restarts for schema changes are acceptable — unplanned ones aren’t. The ideal behavior would reflect all schema changes mid-stream without interruption.</p><h3>Smarter Defaults and Auto-Tuning</h3><p>The scn_window_size, mining_interval, and batching parameters currently require manual tuning based on your specific Oracle workload. An adaptive mode that adjusts these based on observed lag and throughput would reduce the operational burden significantly — especially for teams without deep Oracle expertise.</p><h3>Clearer Failure Guarantees</h3><p>At-least-once delivery is documented. But the exact behavior under partial failures, large transaction rollbacks, LogMiner gaps, and redo log archiving scenarios needs more explicit documentation. Production CDC pipelines fail in interesting ways, and knowing exactly what to expect matters.</p><h3>Who Should Actually Use This</h3><p><strong>Strong fit:</strong></p><ul><li>Teams currently running Oracle CDC with Debezium + Kafka Connect <em>only</em> for Oracle, who want to reduce operational surface area</li><li>Organizations already using Redpanda as their streaming platform</li><li>Teams with Oracle Enterprise Edition already licensed (LogMiner comes included)</li><li>Environments where deploying a Go binary is simpler than operating a JVM cluster</li></ul><p><strong>Worth waiting on:</strong></p><ul><li>Teams requiring zero-downtime schema evolution for high-uptime systems</li><li>Organizations that need detailed observability and SLA-level guarantees before production adoption</li><li>Teams evaluating this without an existing Redpanda relationship (the Enterprise license conversation adds friction)</li></ul><h3>Final Take</h3><p>The oracledb_cdc connector doesn&#39;t do anything fundamentally new. Oracle LogMiner, Avro schema registration, and topic-based routing all existed before. Debezium has been doing this for years.</p><p>What this does is remove the unnecessary architectural weight that came with getting all of it to work together. One binary, one config, one place to look when something breaks. That’s not a small thing — it’s the difference between a pipeline your team can own and one that owns your team.</p><p>The gaps are real and worth taking seriously before committing to production. But the direction is right, and the simplification is genuine.</p><p>For most teams, the question isn’t whether this is technically superior to Debezium. It’s whether the operational simplicity is worth the trade-offs for your specific situation.</p><p>That answer depends on your Oracle setup, your uptime requirements, and how much of your engineering time is currently going into maintaining CDC infrastructure instead of using it.</p><p><em>Have you run Oracle CDC in production? I’d be curious what your current setup looks like and whether a single-binary approach would actually change the calculus for your team. Drop a comment below.</em></p><p><strong>Tags:</strong> Data Engineering, Oracle, CDC, Redpanda, Kafka, Real-Time Data, Data Infrastructure, Streaming</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d58ad970659" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You’ll Regret This Architecture Decision in 18 Months]]></title>
            <link>https://medium.com/@kherasam18/youll-regret-this-architecture-decision-in-18-months-111de699592d?source=rss-452341009f79------2</link>
            <guid isPermaLink="false">https://medium.com/p/111de699592d</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Sam Khera]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 12:39:21 GMT</pubDate>
            <atom:updated>2026-04-07T12:39:21.554Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In the last two posts, we broke two assumptions:</blockquote><blockquote>In <a href="https://medium.com/@kherasam18/why-your-backend-architecture-is-already-outdated-and-you-dont-know-it-872d56d0d727">Post 1</a>, we saw why <strong>data isn’t static — it’s a stream of events: </strong><a href="https://medium.com/@kherasam18/why-your-backend-architecture-is-already-outdated-and-you-dont-know-it-872d56d0d727">Post 1</a></blockquote><blockquote>In <a href="https://medium.com/@kherasam18/the-hidden-reason-your-microservices-keep-breaking-2c7e688fd1f5">Post 2</a>, we saw why <strong>request-response communication creates tightly coupled systems: </strong><a href="https://medium.com/@kherasam18/the-hidden-reason-your-microservices-keep-breaking-2c7e688fd1f5">Post 2</a></blockquote><blockquote><em>🎯 </em><strong><em>Goal:</em></strong><em> Understand the current streaming data platform landscape — who the major players are and which is the most evolved option today.</em></blockquote><blockquote>Because this decision isn’t just technical.</blockquote><blockquote>It’s architectural.</blockquote><blockquote>And if you get it wrong, you won’t just switch later.</blockquote><h3>Why This Decision Actually Matters</h3><p>Most engineers treat this like a tool comparison.</p><p>It’s not.</p><p>This choice affects:</p><ul><li>How your system scales</li><li>How you recover from failures</li><li>How expensive your infrastructure becomes</li><li>How hard it is to evolve your architecture later</li></ul><p>Pick wrong, and you introduce a new kind of coupling:</p><blockquote><strong><em>Infrastructure lock-in</em></strong></blockquote><h3>Option 1: Cloud-Native Streaming (Easy Start, Expensive Trap)</h3><p>Services like:</p><ul><li>AWS Kinesis</li><li>Google Pub/Sub</li></ul><p>look attractive.</p><p>You don’t manage infrastructure.<br>You don’t worry about scaling.</p><p>Everything “just works.”</p><p>Until it doesn’t.</p><h3>The hidden problems:</h3><ul><li><strong>Limited retention</strong> → kills your ability to replay history (from Post 1)</li><li><strong>Strict quotas</strong> → your system hits limits when traffic spikes (from Post 2)</li><li><strong>Vendor lock-in</strong> → your architecture becomes tied to one cloud</li></ul><p>You solved operational complexity…</p><p>by introducing <strong>long-term constraints</strong>.</p><p><strong>AWS</strong> also has two other pub/sub-flavored services: <strong>Simple Notification Service (SNS) and EventBridge</strong>.</p><p>But they’re push-based, not pull-based.</p><p>Push-based systems force messages at consumers whether they’re ready or not bringing back the traffic spike problem we thought we solved.</p><p>Also, SNS and EventBridge have severe limitations on viewing historical data — again, goodbye replay superpower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RBC881QLbsr451Ut" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*Wm-nW3zlKO20lHOa.png" /></figure><h3>Option 2: Apache Pulsar (Flexible… but Complex)</h3><p>Pulsar tries to do a lot:</p><ul><li>Messaging</li><li>Streaming</li><li>Built-in processing</li></ul><p>Sounds powerful.</p><p>But here’s the problem:</p><h3>It’s trying to be everything</h3><ul><li>Queue-like behavior</li><li>Pub/Sub behavior</li></ul><p>And that creates confusion.</p><p>Add to that:</p><ul><li>Multiple components to manage</li><li>Smaller ecosystem</li></ul><p>You don’t just adopt Pulsar.</p><p>You <strong>commit to understanding its complexity</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ndzxo1AYk2NvM-PQ.png" /></figure><h3>Option 3: Apache Kafka (The Standard… with a Cost)</h3><p>Kafka is the industry default.</p><p>There’s a reason for that:</p><ul><li>Massive ecosystem</li><li>Battle-tested at scale</li><li>Strong pub/sub model (what we need from Post 2)</li></ul><p>If you understand event streaming, Kafka makes sense.</p><p>But here’s what people don’t say upfront:</p><h3>Kafka is operationally heavy</h3><ul><li>JVM tuning</li><li>Memory management</li><li>ZooKeeper dependency</li><li>Cluster complexity</li><li>Additional components (connectors, processing systems)</li></ul><p>So teams face a trade-off:</p><ul><li>Run Kafka yourself → complexity</li><li>Use managed Kafka → cost</li></ul><p>Either way, you’re paying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/0*KT1ZaTmJ73HtWhqR.jpg" /></figure><h3>The Real Pattern You Should Notice</h3><p>Every option so far forces a compromise:</p><ul><li>Cloud solutions → simplicity vs lock-in</li><li>Pulsar → flexibility vs complexity</li><li>Kafka → power vs operational cost</li></ul><p>So the real question becomes:</p><blockquote><em>Can you get Kafka’s model… without Kafka’s pain?</em></blockquote><h3>Where Redpanda Changes the Equation</h3><p>This is where <strong>Redpanda</strong> becomes more than just another option.</p><p>It doesn’t try to replace Kafka conceptually.</p><p>It keeps the same model:</p><ul><li>Topics</li><li>Partitions</li><li>Event logs</li><li>Kafka API compatibility</li></ul><p>Every tool, connector, and client library built for Kafka works with Redpand. <br>You get the entire Kafka ecosystem without touching Kafka itself</p><p>Teams already on Kafka can migrate without rewriting their applications</p><p>But it changes the implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6_fqgU-Ai7273xKR.png" /></figure><h3>What Redpanda Actually Fixes</h3><h3>1. No JVM = Predictable Performance</h3><p>Kafka runs on the JVM.</p><p>Which means:</p><ul><li>Garbage collection pauses</li><li>Memory tuning</li><li>Latency unpredictability</li></ul><p>Redpanda is built in C++.</p><p>No GC.<br>No JVM tuning.</p><p>More predictable performance under load.</p><h3>2. Simpler Operations (This Matters More Than You Think)</h3><p>Kafka setup often involves multiple moving parts.</p><p>Redpanda:</p><ul><li>Single binary</li><li>No ZooKeeper</li><li>Easier deployment</li></ul><p>Less infrastructure.<br>Less failure surface.</p><h3>3. Same Ecosystem, Less Friction</h3><p>This is the smart part.</p><p>Redpanda is <strong>Kafka-compatible</strong>.</p><p>Which means:</p><ul><li>Existing Kafka tools work</li><li>Existing connectors work</li><li>Existing knowledge transfers</li></ul><p>You’re not starting from zero.</p><h3>4. Processing Without Extra Systems</h3><p>Traditionally:</p><ul><li>Kafka → send data → process elsewhere (Flink/Spark)</li></ul><p>Redpanda introduces <strong>Transforms</strong>:</p><ul><li>Process data where it lives</li></ul><p>Fewer network hops.<br>Lower latency.<br>Less infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*S2aZuVWpzOso8zXN" /></figure><h3>The Real Advantage (Most People Miss This)</h3><p>This isn’t about performance.</p><p>It’s about <strong>adoption friction</strong>.</p><p>Most teams understand event streaming.</p><p>They just don’t adopt it because:</p><ul><li>Kafka feels heavy</li><li>Cloud solutions feel limiting</li></ul><p>Redpanda removes that barrier.</p><p>Which means:</p><blockquote><em>You can actually move from understanding → implementation</em></blockquote><p>Without rewriting your system or overcomplicating your stack.</p><h3>How This Connects Everything</h3><p>Let’s tie this back:</p><p>From Post 1:</p><ul><li>You need full event history → Redpanda supports long retention</li></ul><p>From Post 2:</p><ul><li>You need decoupled pub/sub → Redpanda is built for it</li></ul><p>Now in Post 3:</p><ul><li>You need a platform that doesn’t break under real-world constraints</li></ul><p>That’s the missing piece.</p><h3>Final Thought</h3><p>Choosing a streaming platform isn’t about features.</p><p>It’s about what constraints you’re willing to live with.</p><ul><li>Lock-in?</li><li>Complexity?</li><li>Cost?</li></ul><p>Or none of the above.</p><p>Because once your architecture depends on it…</p><p>switching isn’t a refactor.</p><p>It’s a rebuild.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*gfsxXVH4tM-8YkvI.png" /></figure><h3>What’s Next</h3><p>Next, we go deeper into how systems like Redpanda actually work internally —</p><p>and why concepts like topics and partitions matter more than they seem.</p><p>Because once you understand the internals,</p><p>you stop using streaming platforms…</p><p>and start designing around them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=111de699592d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>