The Complete Guide to Software Architecture and Design Principles
30. Introduction to System Design
System design turns software requirements into a technical plan. It defines how application components communicate, how data is stored, how workloads are processed, and how the system handles growth and failure.
A good design balances several concerns:
- Functionality
- Performance
- Scalability
- Availability
- Reliability
- Security
- Maintainability
- Operational cost
There is no universal architecture for every application. A small business application may work well as a modular monolith. A large platform with independent teams may benefit from distributed services.
The right design depends on the system's requirements, expected workload, team capabilities, and operating environment.
This part explores the foundations of system design and the engineering decisions behind APIs, databases, distributed systems, scalability, and performance.
31. System Design Fundamentals
System design begins with understanding what the application must do and how well it must do it.
31.1 Functional Requirements
Functional requirements describe system behavior.
For an online learning platform, they might include:
- Register and authenticate users.
- Create and publish courses.
- Enroll students.
- Stream lessons.
- Submit quizzes.
- Track learning progress.
- Process payments.
- Send notifications.
These requirements help identify the main components and workflows.
31.2 Non-Functional Requirements
Non-functional requirements describe quality expectations.
| Requirement | Meaning |
| Performance | How quickly the system responds |
| Scalability | How well it handles increased demand |
| Availability | Whether users can access the service |
| Reliability | Whether it operates correctly over time |
| Security | How it protects users and data |
| Maintainability | How easily developers can change it |
| Observability | How well engineers can understand its behavior |
Make these requirements measurable whenever possible.
For example, instead of saying "the API must be fast," define a target response time under a specified workload.
31.3 Identify System Constraints
Constraints affect architecture decisions.
Common examples include:
- Development budget
- Delivery deadline
- Team experience
- Existing infrastructure
- Regulatory requirements
- Third-party dependencies
- Data residency requirements
- Expected traffic
Record important assumptions. An architecture based on incorrect assumptions may require expensive changes later.
32. Capacity Planning and Workload Estimation
Capacity planning estimates the resources needed to support an application.
It helps teams identify likely bottlenecks before production deployment.
32.1 Estimate User Activity
Suppose an application has 100,000 registered users.
Not every registered user is active at the same time. Capacity planning should estimate active users and their behavior.
Consider:
- Daily active users
- Peak concurrent users
- Requests per user
- Average request size
- Read-to-write ratio
- Peak traffic periods
- Data growth
32.2 Estimate Request Volume
A simple estimate:
\[
RPS = \frac{\text{Total Requests}}{\text{Time in Seconds}}
\]
If a service receives 600,000 requests in one hour:
\[
RPS = \frac{600000}{3600} \approx 167
\]
The average is about 167 requests per second. Peak traffic may be much higher.
Design for realistic peak conditions rather than relying only on daily averages.
32.3 Estimate Storage
Storage planning should consider:
- Initial data volume
- Daily data growth
- File sizes
- Index overhead
- Replication
- Backup retention
- Log retention
For example, if an application stores 20 GB of new data each day, annual growth is approximately:
\[
20 \times 365 = 7300\text{ GB}
\]
This estimate excludes indexes, backups, and replicas.
32.4 Workload Categories
Different workloads need different design choices.
Read-heavy workloads: Product catalogues, news sites, and public information services.
Write-heavy workloads: Event collection, transaction processing, and telemetry systems.
Batch workloads: Reports, data imports, and scheduled processing.
Streaming workloads: Live analytics, activity feeds, and event processing.
Understand the workload before selecting databases, caches, or infrastructure.
33. API Design and Architecture
An Application Programming Interface (API) defines how software components communicate.
A well-designed API provides predictable behavior, clear contracts, and controlled access to application capabilities.
33.1 Common API Styles
REST
REST commonly uses HTTP methods and resource-based URLs.
Example:
GET /api/products
GET /api/products/101
POST /api/products
PUT /api/products/101
DELETE /api/products/101
Common methods include:
- GET: Retrieve a resource.
- POST: Submit data or create a resource.
- PUT: Replace a resource.
- PATCH: Partially update a resource.
- DELETE: Remove a resource.
REST is widely used for web and mobile applications.
GraphQL
GraphQL lets clients request specific fields through a defined query language.
Example:
query {
product(id: "101") {
name
price
category {
name
}
}
}
It can reduce unnecessary data transfer when clients need different combinations of fields. It also requires careful query limits, authorization, and performance controls.
gRPC
gRPC uses service definitions and Protocol Buffers for structured communication.
It is useful for communication between services, especially when efficient serialization and strongly defined contracts are important.
33.2 Choosing an API Style
| API Style | Common Use |
| REST | Public web APIs and resource-based services |
| GraphQL | Clients with varied data requirements |
| gRPC | Internal service communication |
| WebSocket | Real-time, two-way communication |
| Webhooks | Event notifications between systems |
Choose based on clients, communication patterns, performance needs, and team experience.
33.3 API Versioning
APIs evolve as applications change.
Versioning helps teams introduce changes without unexpectedly breaking existing clients.
A common URL-based approach:
/api/v1/customers
/api/v2/customers
Other approaches include version headers.
Avoid creating new versions for every minor change. Maintain backward compatibility where practical and publish a clear deprecation policy.
Returning thousands of records in one response can increase latency and resource use.
Pagination limits the amount of data returned.
Offset-based example:
GET /api/products?page=2&limit=20
Cursor-based example:
GET /api/products?cursor=eyJpZCI6MTAwfQ&limit=20
Offset pagination is simple. Cursor pagination can work better for large or frequently changing datasets.
33.5 API Error Handling
Use consistent response formats.
Example:
{
"error": {
"code": "PRODUCT_NOT_FOUND",
"message": "The requested product does not exist."
}
}
Common HTTP status codes include:
| Code | Meaning |
| 200 | Successful request |
| 201 | Resource created |
| 204 | Successful request with no response body |
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 409 | Conflict |
| 429 | Too many requests |
| 500 | Internal server error |
| 503 | Service unavailable |
Do not expose stack traces, database details, passwords, tokens, or other sensitive information in API responses.
33.6 API Security
API security should include:
- Authentication
- Authorization
- Input validation
- TLS
- Rate limiting
- Secure token handling
- Audit logging
- Request size limits
- Abuse detection
Authentication identifies the caller. Authorization determines what the caller can do.
Never assume that an authenticated user has permission to access every resource.
34. Database Architecture
Databases store application data and support retrieval, updates, reporting, and transactions.
Database selection should follow data structure, query patterns, consistency needs, and operational requirements.
34.1 Relational Databases
Relational databases store structured data in tables.
Examples include PostgreSQL, MySQL, and Microsoft SQL Server.
They support:
- Tables and relationships
- SQL queries
- Constraints
- Indexes
- Transactions
- Joins
They are often suitable for orders, payments, customer records, and other structured business data.
34.2 NoSQL Databases
NoSQL databases support different data models and access patterns.
Common categories include:
Document databases: Store records as documents, often using JSON-like structures.
Key-value databases: Store values using unique keys. They are useful for caching and simple lookups.
Wide-column databases: Organize data for distributed, high-volume workloads.
Graph databases: Represent entities and their relationships as nodes and edges.
NoSQL is not automatically faster or more scalable than SQL. The data model and workload determine suitability.
34.3 SQL and NoSQL Comparison
| Area | Relational | NoSQL |
| Data model | Tables and relationships | Documents, keys, columns, or graphs |
| Schema | Usually structured | Varies by database |
| Queries | SQL | Database-specific APIs or query languages |
| Relationships | Joins and constraints | Often modeled differently |
| Transactions | Strong transaction support | Varies by product and configuration |
| Common use | Business records and transactions | Flexible or specialized data workloads |
Many systems use both types when there is a clear reason.
34.4 Database Normalization
Normalization organizes relational data to reduce duplication and update problems.
For example, instead of repeating customer details in every order record, store customer information in a separate table and reference it using a customer ID.
This improves consistency but may require joins.
34.5 Denormalization
Denormalization stores selected repeated or precomputed data to improve particular read operations.
It can reduce joins or simplify queries.
However, it creates additional work to keep duplicated values consistent.
Use it when measurements show that the benefits justify the maintenance cost.
34.6 Database Indexing
Indexes help databases find records without scanning every row.
Example:
CREATE INDEX idx_customers_email
ON customers(email);
Indexes can improve reads but require storage and add work to inserts, updates, and deletes.
Create indexes based on actual query patterns. Review execution plans and remove indexes that provide no useful benefit.
34.7 Transactions and ACID
Transactions group database operations into a logical unit.
ACID describes four important transaction properties:
- Atomicity: All operations succeed or the transaction is rolled back.
- Consistency: Constraints remain valid.
- Isolation: Concurrent transactions follow defined isolation rules.
- Durability: Committed changes survive supported failures.
Example:
BEGIN;
UPDATE accounts
SET balance = balance - 100
WHERE account_id = 1;
UPDATE accounts
SET balance = balance + 100
WHERE account_id = 2;
COMMIT;
A real transfer must also validate balances, authorization, account status, and transaction rules.
34.8 Isolation and Concurrency
Concurrent transactions can create problems such as:
- Dirty reads
- Non-repeatable reads
- Phantom reads
- Lost updates
Database systems provide isolation levels that control which concurrency effects are possible.
Choose the required isolation level based on business correctness and performance. Do not assume every application needs the strictest setting for every query.
34.9 Replication
Replication copies data between database instances.
Common purposes include:
- Read scaling
- High availability
- Disaster recovery
- Geographic distribution
Some systems use a primary database for writes and replicas for reads.
Replication may be asynchronous. A read from a replica may therefore return slightly older data.
Applications must account for this when immediate consistency matters.
34.10 Sharding and Partitioning
Partitioning divides a large dataset into smaller parts.
Sharding distributes those parts across multiple database nodes.
Possible partition keys include:
- Customer ID
- Region
- Time period
- Tenant ID
A poor partition key can create uneven workloads or make queries expensive.
Plan for data distribution, rebalancing, cross-shard queries, and operational complexity.
34.11 Database Backup and Recovery
A database strategy should define:
- Backup frequency
- Retention period
- Encryption
- Off-site or separate-region storage
- Point-in-time recovery
- Restore testing
- Recovery objectives
A backup is only useful if it can be restored successfully. Test recovery procedures regularly.
35. Distributed Systems Fundamentals
A distributed system consists of multiple computers or services that communicate over a network.
Examples include cloud applications, payment platforms, search systems, and large online services.
Distributed systems provide opportunities for independent scaling and deployment. They also introduce network failures, latency, coordination, and consistency challenges.
35.1 Network Latency
Network communication takes time.
A request between services may be affected by:
- Physical distance
- Network congestion
- DNS lookup
- TLS negotiation
- Service processing
- Database queries
- Queue delays
A design with many sequential service calls can become slow even if each individual call appears fast.
Reduce unnecessary network round trips and measure end-to-end latency.
35.2 Partial Failures
In a distributed system, one component may fail while others continue operating.
For example:
- The API is available but the database is not.
- The payment provider is slow.
- A message broker is temporarily unavailable.
- A worker crashes during processing.
Applications should not assume that every dependency is always available.
35.3 Timeouts
A timeout limits how long a caller waits for a response.
Without timeouts, requests may remain blocked and consume resources.
Set timeouts according to the operation and service-level requirements.
35.4 Retries
Retries can help recover from temporary failures.
However, uncontrolled retries can overload an already struggling service.
Use:
- Limited retry attempts
- Exponential backoff
- Randomized jitter
- Retry rules based on error type
- Idempotent operations where possible
Do not automatically retry every failed operation. Some errors require correction rather than repetition.
35.5 Circuit Breakers
A circuit breaker temporarily blocks calls to a dependency when failures exceed a defined threshold.
It usually has three states:
- Closed: Calls are allowed.
- Open: Calls are blocked temporarily.
- Half-open: Limited calls test whether the dependency has recovered.
Circuit breakers can prevent repeated failures from consuming application resources.
35.6 Load Balancing
A load balancer distributes requests across available instances.
Common strategies include:
- Round robin
- Least connections
- Weighted distribution
- Health-based routing
Load balancers should avoid sending traffic to unhealthy instances.
35.7 Service Discovery
Service discovery helps applications locate available service instances.
It may use:
- DNS
- Service registries
- Platform-native discovery
- Kubernetes service names
The right approach depends on deployment infrastructure and network architecture.
36. Messaging and Event-Driven Communication
Messaging allows components to exchange information without requiring every operation to complete immediately.
It is useful for background processing, notifications, integration, and event-driven systems.
36.1 Message Queues
A message queue stores work until a consumer processes it.
Example:
Customer Request
|
Order API
|
Message Queue
|
Background Worker
|
Update Order Status
|
Send Notification
The API can accept the request while background workers handle slower tasks.
36.2 Events
An event records something that happened.
Examples:
- OrderCreated
- PaymentCompleted
- UserRegistered
- CoursePublished
- InventoryUpdated
Events help independent components respond to business activity.
Use clear event names and versioned schemas. Avoid exposing unnecessary internal implementation details in event payloads.
36.3 Delivery Guarantees
Messaging systems may provide different delivery guarantees.
At-most-once: A message is delivered zero or one time. Messages may be lost.
At-least-once: Messages are retried until acknowledged. Duplicates may occur.
Exactly-once semantics: Some platforms provide carefully scoped exactly-once processing guarantees. End-to-end business operations still require careful design.
Consumers should be prepared for duplicate messages.
36.4 Idempotent Consumers
An idempotent consumer can process the same message more than once without producing duplicate business effects.
One approach is to store a unique message ID and record whether it has already been processed.
This is important when a worker completes an operation but fails before acknowledging the message.
36.5 The Outbox Pattern
The outbox pattern helps avoid a common problem: updating a database successfully but failing to publish the corresponding event.
The application writes both the business change and an outbox record in one database transaction.
A separate process reads the outbox and publishes events.
Application
|
DB Transaction
/ \
Business Outbox
Data Record
|
Outbox Worker
|
Event Broker
|
Consumers
Consumers should still handle duplicate event delivery.
36.6 Saga Pattern
A saga coordinates a business workflow across multiple services.
Each service performs a local transaction. If a later step fails, the workflow may execute compensating actions.
For example:
- Reserve inventory.
- Request payment.
- Confirm the order.
- Arrange shipping.
If payment fails, the workflow may release the inventory reservation.
A compensation is a new business operation. It does not always reverse the original action perfectly.
37. Caching Architecture
Caching stores frequently used data in a faster location to reduce response time and repeated work.
37.1 Common Cache Locations
- Browser cache
- CDN cache
- Reverse proxy cache
- Application memory cache
- Distributed cache
- Database buffer cache
Each layer has different storage, access, and invalidation behavior.
37.2 Cache-Aside Pattern
In cache-aside:
- The application checks the cache.
- If data exists, it returns the cached value.
- If data is missing, it reads from the database.
- It stores the result in the cache.
- It returns the data.
Example:
async function getProduct(id) {
const cached = await cache.get(`product:${id}`);
if (cached) {
return JSON.parse(cached);
}
const product = await database.findProduct(id);
if (!product) {
return null;
}
await cache.set(
`product:${id}`,
JSON.stringify(product),
{ ttl: 300 }
);
return product;
}
This is a simplified example. Production code should handle cache failures, serialization, expiration, and concurrent requests.
37.3 Cache Invalidation
Cached data can become outdated.
Common strategies include:
- Time-to-live expiration
- Explicit invalidation after updates
- Versioned cache keys
- Event-based invalidation
Cache invalidation is difficult because the system must balance freshness, performance, and complexity.
37.4 Cache Stampede
A cache stampede occurs when many requests try to rebuild the same expired cache entry at once.
Possible controls include:
- Request coalescing
- Background refresh
- Randomized expiration
- Temporary stale responses where acceptable
Caching should follow measured access patterns, not assumptions.
38. Scalability Engineering
Scalability describes a system's ability to handle increased workload while maintaining acceptable behavior.
38.1 Vertical Scaling
Vertical scaling increases the resources of an existing machine.
Examples:
- More CPU
- More memory
- Faster storage
It is relatively simple but limited by machine capacity and cost.
38.2 Horizontal Scaling
Horizontal scaling adds more instances.
For example, an application may run several backend instances behind a load balancer.
Advantages include:
- More capacity
- Better distribution of workload
- Potential fault isolation
- Flexible scaling
The application must handle shared state, session management, and concurrent requests correctly.
38.3 Stateless Application Design
A stateless application instance does not depend on its local memory to preserve important user state between requests.
Shared state can be stored in a database, cache, or other suitable service.
Stateless application instances are easier to add, replace, and scale.
38.4 Auto Scaling
Auto scaling changes the number of application instances based on demand or configured schedules.
Useful signals include:
- CPU usage
- Memory usage
- Request rate
- Queue depth
- Response latency
Scaling decisions should account for startup time, warm-up behavior, cost, and downstream capacity.
38.5 Database Scaling
Database scaling may include:
- Query optimization
- Better indexing
- Connection pooling
- Read replicas
- Partitioning
- Sharding
- Workload separation
Do not add database replicas or shards before understanding the actual bottleneck.
38.6 Bottleneck Analysis
A system may be limited by:
- CPU
- Memory
- Network
- Database
- Storage
- External services
- Lock contention
- Thread or connection pools
Use monitoring and profiling to identify the limiting component.
Improving an unrelated component may not improve total system performance.
Performance engineering measures and improves system behavior under realistic conditions.
It should be part of development and operations, not a final activity before release.
| Metric | Description |
| Latency | Time taken to complete a request |
| Throughput | Work completed per unit of time |
| Error rate | Proportion of failed operations |
| CPU usage | Processor consumption |
| Memory usage | Application memory consumption |
| Queue depth | Number of pending messages |
| Database response time | Time spent on database operations |
39.2 Percentile Latency
An average response time can hide slow requests.
Percentiles provide more detail.
- p50: Median response time.
- p95: 95% of requests complete within this time.
- p99: 99% of requests complete within this time.
For example, a p95 latency of 300 milliseconds means 95% of measured requests completed in 300 milliseconds or less.
The remaining requests may take longer.
39.3 Profiling
Profiling helps identify where an application spends its time and resources.
It can reveal:
- Expensive functions
- Repeated database calls
- Memory allocation problems
- Lock contention
- Slow serialization
- Excessive network communication
Profile representative workloads before optimizing code.
39.4 Query Optimization
Database performance often depends on query design.
Useful practices include:
- Selecting only required columns
- Adding suitable indexes
- Avoiding unnecessary queries
- Reviewing execution plans
- Using pagination
- Avoiding N+1 query patterns
- Monitoring slow queries
Example:
EXPLAIN ANALYZE
SELECT id, name, email
FROM customers
WHERE email = '*Emails are not allowed*';
The exact output and supported options depend on the database engine.
39.5 Connection Pooling
Creating a new database connection for every request can add overhead.
Connection pools reuse a controlled set of connections.
Pool sizes should be selected carefully. Too many connections can overload the database, while too few can cause application requests to wait.
39.6 Load Testing
Load testing measures system behavior under expected traffic.
Common test types include:
Load testing: Checks expected workload.
Stress testing: Pushes the system beyond expected capacity.
Spike testing: Introduces sudden traffic increases.
Soak testing: Runs a sustained workload to identify long-term problems.
Capacity testing: Estimates the workload the system can support.
Tests should use representative data and realistic request patterns.
Performance targets should connect technical measurements to user experience.
40.1 Service-Level Indicators
A Service-Level Indicator (SLI) is a measured value that describes service behavior.
Examples include:
- Successful request ratio
- Request latency
- Error rate
- Data processing delay
40.2 Service-Level Objectives
A Service-Level Objective (SLO) defines a target for an SLI over a period.
For example:
- 99.9% of valid requests succeed over a defined period.
- 95% of requests complete within a specified latency target.
These are examples, not universal requirements.
40.3 Service-Level Agreements
A Service-Level Agreement (SLA) is a formal commitment between a provider and a customer.
It may define availability, support, remedies, and measurement rules.
SLOs guide engineering. SLAs define contractual commitments.
40.4 Error Budgets
An error budget represents the amount of unreliability allowed by an SLO.
Teams can use it to balance feature delivery and reliability work.
When reliability falls below the agreed target, the team may prioritize stability improvements.
Consider an online platform with students, instructors, courses, lessons, quizzes, and payments.
41.1 Main Components
- Web and mobile clients
- API gateway
- User and identity module
- Course catalogue
- Enrollment module
- Learning progress module
- Payment integration
- Video storage
- Notification workers
- Relational database
- Cache
- Message broker
41.2 High-Level Architecture
Students / Instructors
|
Web / Mobile
|
API Gateway
|
Application Backend
|
-------------------------------------------
| | | | |
Users Courses Enrollment Progress Payments
| | | | |
-------------------------------------------
|
Relational DB
|
-----------------------------
| | |
Cache Message Queue Object Storage
| |
Background Video Lessons
Workers
|
Notifications
41.3 Example Enrollment Workflow
- A student selects a course.
- The API authenticates the student.
- The enrollment module checks course availability.
- The payment module processes payment if required.
- The enrollment record is created.
- A course-enrolled event is published.
- The notification worker sends confirmation.
- The progress module initializes the student's learning record.
41.4 Important Design Considerations
Data consistency: Payment and enrollment must not become inconsistent. Use a workflow that can recover from partial failures.
Video delivery: Store video files in object storage and deliver them through a CDN where suitable.
Caching: Cache public course information, but define how updates invalidate old data.
Security: Verify that students can access only courses and records permitted by their enrollment and role.
Performance: Monitor catalogue queries, lesson loading, and enrollment latency separately.
Scalability: Scale background video and notification processing independently from user-facing requests.
41.5 Architecture Evolution
Start with clear modules and simple deployment.
As usage grows, measurements may show that video processing, notifications, or another workload needs independent scaling.
Those components can be separated when the operational benefit justifies the added complexity.
42. Common System Design Mistakes
Avoid these common mistakes:
- Designing for imaginary traffic instead of measured or justified estimates.
- Selecting technologies before understanding requirements.
- Creating too many services too early.
- Ignoring database query patterns.
- Retrying failed requests without limits.
- Failing to plan for duplicate messages.
- Caching data without an invalidation strategy.
- Treating average latency as the only performance metric.
- Ignoring downstream service capacity.
- Failing to test backups and recovery.
- Exposing internal error details through APIs.
- Treating horizontal scaling as a complete solution to every bottleneck.
Good system design is based on clear requirements, measured behavior, and deliberate trade-offs.
43. System Design Review Checklist
Use this checklist when reviewing a new application or major architecture change.
Requirements
- Are functional requirements documented?
- Are quality attributes measurable?
- Are traffic and storage estimates available?
- Are constraints and assumptions recorded?
APIs
- Are API contracts clear?
- Are errors consistent?
- Is pagination supported where needed?
- Are versioning and compatibility considered?
- Are authentication and authorization enforced?
Databases
- Does the data model fit the domain?
- Are transactions used where required?
- Are indexes based on query patterns?
- Are backup and restore procedures tested?
- Are replication and consistency requirements understood?
Distributed Systems
- Are timeouts configured?
- Are retries limited and controlled?
- Are important operations idempotent?
- Are partial failures handled?
- Are messages processed safely?
Scalability
- Are bottlenecks measurable?
- Can application instances scale independently where needed?
- Is shared state managed correctly?
- Are database and queue limits understood?
- Are latency percentiles monitored?
- Are load tests representative?
- Are expensive queries identified?
- Are resource limits understood?
Operations
- Are logs, metrics, and traces available?
- Are alerts actionable?
- Is there an incident response process?
- Are recovery objectives documented?
44. Conclusion
System design connects software architecture principles with the practical needs of production applications.
APIs define communication contracts. Databases preserve application data. Distributed systems coordinate independent components. Caching and scaling help manage workload. Performance engineering measures whether the system meets its targets.
The most important lesson is to design from requirements rather than technology trends.
A successful system does not need the largest number of services, databases, or infrastructure components. It needs the right structure for its workload, team, security needs, and business goals.
In Part 4, the series moves into security, reliability, testing, deployment, DevOps, and operations engineering.
References and Further Reading
- Google Cloud Architecture Framework – https://cloud.google.com/architecture/framework
- AWS Well-Architected Framework – https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html
- Microsoft Azure Architecture Center – https://learn.microsoft.com/azure/architecture/
- PostgreSQL Documentation – https://www.postgresql.org/docs/
- MySQL Documentation – https://dev.mysql.com/doc/
- REST Architectural Style – https://ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm
- GraphQL Documentation – https://graphql.org/learn/
- gRPC Documentation – https://grpc.io/docs/
- Kubernetes Documentation – https://kubernetes.io/docs/
- Redis Documentation – https://redis.io/docs/latest/
- Apache Kafka Documentation – https://kafka.apache.org/documentation/
- OpenTelemetry Documentation – https://opentelemetry.io/docs/
- Google Site Reliability Engineering – https://sre.google/books/
- Martin Fowler – Patterns of Distributed Systems – https://martinfowler.com/articles/patterns-of-distributed-systems/
Disclaimer: This article is for educational purposes. Select architecture patterns, technologies, and infrastructure according to your application's requirements, security obligations, workload, and operational resources.