Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 3 of 5 · Concept · 25 min · revision 1

Tactics for availability, performance, modifiability and security

Select and combine architectural tactics across availability, performance, modifiability, and security.

Contentsand lesson path

On this page

  1. Tactics as Primitive Decisions and Availability Mechanisms
  2. Tactics for Performance, Modifiability, and Security

Lessons of Quality Attributes & Trade-offs

  1. Architecture drivers: goals, constraints and quality attributes Concept · 20 min
  2. From 'fast and secure' to testable scenarios Worked example · 25 min
  3. Tactics for availability, performance, modifiability and security Concept · 25 min
  4. A mini trade-off analysis of a booking system Lab · 30 min
  5. Drivers and trade-offs check Knowledge check · 6 questions

What you will learn

  • Write quality-attribute scenarios with source, stimulus, environment, artifact, response and response measure.
  • Prioritize scenarios in a utility tree and identify sensitivity points, trade-off points and risks for a candidate design, ATAM-style.

01. Tactics as Primitive Decisions and Availability Mechanisms

Once an architect has captured precise, testable quality attribute scenarios, the next challenge is deciding which design techniques will satisfy those requirements. In software engineering discourse, discussions often jump immediately to high-level architectural patterns such as microservices, event sourcing, or micro-frontends. While patterns provide proven structural templates for entire systems, they are frequently too coarse-grained and opinionated for targeted quality attribute problems. Before adopting a massive architectural pattern, experienced architects think in terms of architectural tactics.

An architectural tactic is a focused, fine-grained design decision directly aimed at controlling the response to a specific quality attribute stimulus. Where an architectural pattern is a package of multiple structural conventions, constraints, and relationships that addresses a broad architectural style, a tactic is a single primitive building block. For example, the Circuit Breaker pattern combines the tactics of fault detection (monitoring error thresholds), exception handling (tripping the breaker), and resource management (shedding load to prevent cascading thread pool exhaustion). Understanding tactics empowers architects to compose customized structural solutions tailored specifically to their prioritized drivers without incurring the unnecessary operational baggage of bloated macro-patterns.

Let us examine the foundational tactical catalog across four critical quality attributes: availability, performance, modifiability, and security.

Availability tactics focus on maximizing the proportion of time a system is fully operational and delivering correct results. Availability tactics divide into three strategic categories:

  • Fault detection: Techniques that identify anomalies before they escalate into user-facing failures. Common tactics include ping/echo heartbeats between clustered nodes, automated watchdogs that monitor memory consumption, exception detection hooks, and timestamped health check probes.
  • Fault recovery: Techniques that restore normal operation after an anomaly occurs. Tactics include active-active redundancy where redundant nodes process requests in parallel, active-passive hot standby where a secondary replica takes over upon primary failure, rollback mechanisms using database write-ahead logs, and graceful degradation where non-essential features (such as personalized recommendations) are disabled during degraded states.
  • Fault prevention: Techniques that eliminate the conditions leading to faults. Tactics include predictive removal from service (restarting memory-leaking pods before they crash) and transactional scoping that ensures state consistency across distributed updates.

02. Tactics for Performance, Modifiability, and Security

Performance tactics focus on controlling the response time and throughput of the system under specified resource constraints. Performance tactics primarily divide into managing resource demand and managing resource supply:

  • Controlling resource demand: Techniques that reduce the frequency and cost of operations. Tactics include rate limiting incoming client requests, debouncing rapid UI events, caching precomputed query results in memory, reducing communication overhead through protocol buffers instead of verbose JSON, and filtering data at the database boundary rather than in application memory.
  • Managing resource supply: Techniques that maximize the efficiency of hardware utilization. Tactics include introducing horizontal concurrency via thread pools and asynchronous event loops, dynamically scaling compute instances in response to queue depth, and prioritizing high-value transactions over asynchronous background analytics jobs.

Modifiability tactics govern the ease, cost, and risk of making structural modifications to the software over time. Modifiability tactics focus on two core architectural mechanisms: reducing coupling between components and deferring binding time:

  • Reducing coupling: Techniques that isolate changes so modifying one module does not ripple through the entire codebase. Tactics include maintaining strict interface boundaries, using intermediary adapters (such as anti-corruption layers), encapsulating volatile data representations within domain entities, and restricting direct module visibility.
  • Deferring binding time: Techniques that delay the decision of which concrete implementation binds to an interface. Tactics include configuration-driven dependency injection, dynamic runtime plugin loading, database schema feature flags, and compile-time interface polymorphism.

Security tactics govern the system's ability to resist, detect, and recover from malicious attacks. Security tactics align with the defensive triad:

  • Resisting attacks: Tactics include authenticating actor identity via cryptographic tokens, authorizing permissions through role-based access control, validating and sanitizing all incoming request payloads against strict schemas, encrypting data at rest and in transit, and enforcing the principle of least privilege across process boundaries.
  • Detecting attacks: Tactics include emitting immutable structured audit trails, monitoring real-time intrusion detection signatures, and auditing abnormal access patterns.
  • Recovering from attacks: Tactics include revoking compromised session tokens, restoring state from verified tamper-proof snapshots, and maintaining forensic execution logs.

Architects compose systems by assembling bundles of tactics into coherent subsystems. For instance, designing a high-throughput financial ingest gateway requires pairing the performance tactic of asynchronous queue buffering with the availability tactic of active-passive persistent brokers and the security tactic of mutual cryptographic handshake authentication.

However, tactical composition requires vigilant architectural governance. When multiple squads independently introduce overlapping tactics—such as three different caching tiers at the gateway, application, and database layers—they inadvertently create cache coherence nightmares and compound debugging difficulty. A disciplined architecture repository documents which tactics are officially authorized, where they reside in the topology, and how their interactions are instrumented.

Tactical fitness functions provide automated architectural guardrails that enforce tactics continuously throughout the continuous integration lifecycle. Rather than relying on sporadic manual architecture reviews, teams codify fitness functions using architectural linting tools like ArchUnit or custom AST parsers. For example, a fitness function can mechanically assert that domain modules never import outer infrastructure adapters, or that all database queries pass through a circuit breaker wrapper. These automated checks prevent architectural erosion as teams rapidly scale.

Furthermore, runtime telemetry must observe tactical health under live traffic conditions. Exposing metrics for circuit breaker state transitions, cache invalidation rates, and cryptographic verification latency ensures that chosen tactics deliver their promised quality responses without degrading auxiliary system attributes in production environments.

Practice check · 2 questions

Practice Check: Selecting Architectural Tactics

Assess your ability to match architectural requirements with targeted architectural tactics.

Q1. Which of the following represents an availability tactic aimed at fault recovery rather than fault detection?
Q2. How does the modifiability tactic of deferring binding time reduce software maintenance costs?
Practice only: not graded, not saved, not evidence.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

6 questions · about 5 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check