liveBook · Manning

Active-active configuration

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

A deployment pattern in which multiple environments concurrently process requests and replicate data between them.

An active-active configuration runs multiple environments concurrently: each accepts user requests and replicates data with the others. Multiregion deployments use this pattern to improve reliability. section 9.1.2

Implementing the pattern requires:

  • Refactor infrastructure as code into reusable modules that accept regions as inputs. section 9.1.2
  • Support data replication between environments and separate shared resources from regional configuration. section 9.1.2
  • Connect each region to global load balancing so requests reach both active environments. section 9.1.2
  • Duplicate and manage both active environments through reproducible infrastructure configuration. section 9.4

Two-region request processing

The sundew system evolves from an active-passive arrangement into two active regional environments. Both regions process requests, replicate data, and receive traffic through global load balancing, allowing most requests to continue if one region fails. section 9.1.2

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Defines concurrent request processing and replication, then covers modular IaC, global load balancing, and regional configuration.
Examples
Uses the sundew system, two regions, replicated data, global load balancing, and traffic sent to both environments.
What it assumes
Assumes applications support active-active operation and requires infrastructure-as-code modularization plus data replication.
What you can do after
Operate/configure reproducible regional environments with replicated data and traffic distributed through global load balancing.
How it connects
Connects active-passive configuration, infrastructure as code, data replication, global load balancing, and multiregion deployment.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.