liveBook · Manning

Cloud elasticity

As explained in Kafka for Architects

Elasticity is the ability of a system to dynamically add or remove resources in response to changing workload demand.

Cloud elasticity is the ability to add or remove system resources as workload demand changes. In Kafka deployments, cloud-managed services offer more elasticity than on-premises installations, but regulatory requirements may favor private or hybrid architectures. section 9.2.1

Elasticity depends on how Kafka manages infrastructure and persistent state:

  • On-premises Kafka provides control over data locality but carries greater infrastructure responsibility and less elasticity. section 9.2.1
  • Diskless Kafka separates message serving from remote object storage, allowing brokers to be started or stopped dynamically as traffic changes. section 12.3
  • This flexibility comes with early constraints: diskless topics lack log compaction and transactional writes. section 12.3

Scaling with diskless topics

A Kafka deployment can write producer batches to shared object storage instead of broker-local disks. Because brokers no longer maintain persistent local state, capacity can expand or contract with traffic while clients retain the same API. section 12.3

Figure 12.5 Producer path in diskless Kafka
A black background with white text

AI-generated content may be incorrect.

Use the producer-path diagram to trace how records move through a diskless Kafka design. section 12.3

How Kafka for Architects covers it

How deep it goes
Defines elasticity and explains broker scaling through remote storage, while noting diskless topics’ current feature limitations.
Examples
Uses on-premises versus cloud deployment and diskless topics writing records to shared object storage.
What you can do after
Evaluate Kafka deployment and storage designs against scaling needs, compliance constraints, cost, and feature limitations.
How it connects
Connects cloud elasticity with cloud Kafka deployment, stateful brokers, remote object storage, and stateless scaling.

Also explained in

Compare how 4 books explain cloud elasticity →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.