A replica is an additional running instance that duplicates the functionality of another service or component.
A replica is an additional running instance of a microservice or component. Multiple replicas provide redundancy: a load balancer distributes requests across instances, while Kubernetes restarts failed instances. section 11.1section 11.4.4
Use replicas to:
Maintain service during intermittent failures by redirecting requests to surviving instances. section 11.4.4
Distribute a larger workload across multiple instances when a microservice becomes a performance bottleneck. section 12.3.3
Recover failed instances with Kubernetes while continuing to log and investigate failures. section 11.4.4
Set three gateway replicas
Update a Kubernetes Deployment so its replicas field is 3, then apply the YAML with kubectl apply. The gateway runs three redundant instances instead of one. section 11.4.4
Listing 11.2 Adding replicas to our gateway microservice
Platform Engineering on KubernetesA replica is an additional running instance of a service or application component that provides redundancy and capacity.
horizontal scalingused by · Horizontal scaling is adjusting system capacity by adding or removing computing nodes or equivalent instances that share or distribute the workload.
replicationproduced by · Replication is the creation or maintenance of multiple copies of data, state, or functionality across separate locations or components.
uptimeproduces · Uptime is the duration or proportion of a specified period during which a system or service is operational and available to provide its intended function.
primary nodecontrasts with · A primary node is a designated authoritative or coordinating member of a distributed system, typically responsible for accepting operations or coordinating replicated state.
load balancerused by · A load balancer is a hardware or software component that distributes incoming network traffic or requests among multiple destinations, such as servers or service instances.
in-sync replicaincludes · An in-sync replica is a Kafka partition replica sufficiently caught up with its leader to remain eligible for failover.
This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.