liveBook · Manning

Self-hosting

As explained in Kafka for Architects

An on-premises solution is software or infrastructure installed and operated within the customer’s own facilities.

Self-hosting Kafka means installing and operating the cluster on premises rather than buying it as a managed cloud service. It gives the organization control over brokers and configuration, but makes its team responsible for the infrastructure throughout its lifecycle. section 1.6.2

Before choosing that control, account for:

  • Hardware procurement, infrastructure setup, physical security, monitoring, maintenance, and troubleshooting. section 1.6.2
  • Broker configuration, authentication, observability, and disaster recovery—work that needs people with the right operational skills. section 9.2.1
  • The alternative’s limits: a managed service reduces administration but may restrict broker settings, version changes, and available ecosystem components. section 1.6.2

A local Customer 360 cluster

A team that needs control starts with three local Kafka brokers. It records a replication factor of 3 and min.insync.replicas of 2 for its topics, making redundancy an explicit design decision alongside the hosting choice. section 2.3.3

asyncapi: 3.0.0
info:
  title: Customer 360 Project
  version: 1.0.0
  description: >
    This project aims to aggregate data from various sources, providing a
    comprehensive view of customer information.

channels:
  customerProfile: 
    description: Storing profile information of customers.
    address: CUSTOMER_PROFILES
    bindings: 
      kafka:
        partitions: 9 #1
        replicas: 3    
        topicConfiguration:
          min.insync.replicas: 2    #2
  transactions:
    description: Information about customer transactions.
    address: TRANSACTIONS 
    bindings:
      kafka:
        partitions: 9 
        replicas: 3 
        topicConfiguration:
          min.insync.replicas: 2

The AsyncAPI listing records the topics’ partitions, replicas, and minimum in-sync replicas so the local cluster design can be reviewed and refined. section 2.3.3

Self-hosting is a fit decision, not a default. Compare it with cloud and hybrid deployment against cost, scalability, latency, security, compliance, and the team’s ability to keep the cluster operable. section 1.6 section 9.2

How Kafka for Architects covers it

How deep it goes
Compares responsibilities and trade-offs, naming operational tasks without providing a step-by-step installation procedure.
Examples
Uses a three-broker Customer 360 cluster and an AsyncAPI topic listing with replication settings.
What it assumes
Assumes basic Kafka cluster vocabulary while identifying, rather than teaching from zero, the work of provisioning and securing it.
What you can do after
Evaluate/understand when Kafka configuration control justifies in-house infrastructure and operational responsibility.
How it connects
Connects Kafka replication, managed services, authentication, observability, and disaster recovery to the hosting decision.

Also explained in

Compare how 5 books explain self-hosting →

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.