100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

Building Multi-Tenant SaaS Architectures: Principles, Practices, and Patterns Using AWS 1st Edition 2024 with complete solution

Puntuación
-
Vendido
-
Páginas
487
Grado
A+
Subido en
16-06-2024
Escrito en
2023/2024

Building Multi-Tenant SaaS Architectures: Principles, Practices, and Patterns Using AWS 1st Edition 2024 with complete solution Software as a service (SaaS) is on the path to becoming the de facto model for building, delivering, and operating software solutions. Adopting a multi-tenant SaaS model requires builders to take on a broad range of new architecture, implementation, and operational challenges. How data is partitioned, how resources are isolated, how tenants are authenticated, how microservices are built—these are just a few of the many areas that need to be on your radar when you're designing and creating SaaS offerings. In this book, Tod Golding, a global SaaS technical lead at AWS, provides an end-to-end view of the SaaS architectural landscape, outlining the practical techniques, strategies, and patterns that every architect must navigate as part of building a SaaS environment. Describe, classify, and characterize core SaaS patterns and strategies Identify the key building blocks, trade-offs, and considerations that will shape the design and implementation of your multi-tenant solution Examine essential multi-tenant architecture strategies, including tenant isolation, noisy neighbor, data partitioning, onboarding, identity, and multi-tenant DevOps Explore how multi-tenancy influences the design and implementation of microservices Learn how multi-tenancy shapes the operational footprint of your SaaS environment Table of Contents Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii 1. The SaaS Mindset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Where We Started 2 The Move to a Unified Model 5 Redefining Multi-Tenancy 9 Where Are the Boundaries of SaaS? 13 The Managed Service Provider Model 14 At Its Core, SaaS Is a Business Model 16 Building a Service—Not a Product 19 Defining SaaS 20 Conclusion 21 2. Multi-Tenant Architecture Fundamentals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Adding Tenancy to Your Architecture 24 The Two Halves of Every SaaS Architecture 27 Inside the Control Plane 29 Onboarding 29 Identity 30 Metrics 32 Billing 32 Tenant Management 33 Inside the Application Plane 33 Tenant Context 34 Tenant Isolation 35 Data Partitioning 36 Tenant Routing 37 Multi-Tenant Application Deployment 39 iiiThe Gray Area 40 Tiering 40 Tenant, Tenant Admin, and System Admin Users 41 Tenant Provisioning 42 Integrating the Control and Application Planes 44 Picking Technologies for Your Planes 45 Avoiding the Absolutes 45 Conclusion 46 3. Multi-Tenant Deployment Models. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 What’s a Deployment Model? 48 Picking a Deployment Model 50 Introducing the Silo and Pool Models 51 Full Stack Silo Deployment 53 Where Full Stack Silo Fits 54 Full Stack Silo Considerations 56 Full Stack Silo in Action 59 Remaining Aligned on a Full Stack Silo Mindset 66 The Full Stack Pool Model 67 Full Stack Pool Considerations 69 A Sample Architecture 72 A Hybrid Full Stack Deployment Model 74 The Mixed Mode Deployment Model 75 The Pod Deployment Model 77 Conclusion 80 4. Onboarding and Identity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Creating a Baseline Environment 82 Creating Your Baseline Environment 83 Creating and Managing System Admin Identities 86 Triggering Onboarding from the Admin Console 86 Control Plane Provisioning Options 87 The Onboarding Experience 88 Onboarding Is Part of Your Service 88 Self-Service Versus Internal Onboarding 89 The Fundamental Parts of Onboarding 90 Tracking and Surfacing Onboarding States 93 Tier-Based Onboarding 94 Tracking Onboarded Resources 97 Handling Onboarding Failures 98 Testing Your Onboarding Experience 99 Creating a SaaS Identity 100 iv | Table of ContentsAttaching a Tenant Identity 102 Populating Custom Claims During Onboarding 105 Using Custom Claims Judiciously 105 No Centralized Services for Resolving Tenant Context 106 Federated SaaS Identity 107 Tenant Grouping/Mapping Constructs 109 Sharing User IDs Across Tenants 111 Tenant Authentication Is Not Tenant Isolation 111 Conclusion 112 5. Tenant Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Tenant Management Fundamentals 116 Building a Tenant Management Service 118 Generating a Tenant Identifier 119 Storing Infrastructure Configuration 120 Managing Tenant Configuration 121 Managing Tenant Lifecycle 124 Activating and Deactivating a Tenant 125 Decommissioning a Tenant 127 Changing Tenant Tiers 130 Conclusion 134 6. Tenant Authentication and Routing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Entering the Front Door 138 Access via a Tenant Domain 138 Access via a Single Domain 143 The Man in the Middle Challenge 145 The Multi-Tenant Authentication Flow 146 A Sample Authentication Flow 147 Federated Authentication 148 No One-Size-Fits-All Authentication 148 Routing Authenticated Tenants 149 Routing with Different Technology Stacks 150 Serverless Tenant Routing 151 Container Tenant Routing 153 Conclusion 155 7. Building Multi-Tenant Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Designing Multi-Tenant Services 158 Services in Classic Software Environments 158 Services in Pooled Multi-Tenant Environments 159 Extending Existing Best Practices 161 Table of Contents | vAddressing Noisy Neighbor 162 Identifying Siloed Services 164 The Influence of Compute Technologies 167 The Influence of Storage Considerations 168 Using Metrics to Analyze Your Design 169 One Theme, Many Lenses 170 Inside Multi-Tenant Services 170 Extracting Tenant Context 172 Logging and Metrics with Tenant Context 173 Accessing Data with Tenant Context 176 Supporting Tenant Isolation 178 Hiding Away and Centralizing Multi-Tenant Details 181 Interception Tools and Strategies 183 Aspects 184 Sidecars 185 Middleware 185 AWS Lambda Layers/Extensions 186 Conclusion 186 8. Data Partitioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Data Partitioning Fundamentals 190 Workloads, SLAs, and Experience 192 Blast Radius 193 The Influence of Isolation 193 Management and Operations 194 The Right Tool for the Job 195 Defaulting to a Pooled Model 195 Supporting Multiple Environments 196 The Rightsizing Challenge 196 Throughput and Throttling 198 Serverless Storage 198 Relational Database Partitioning 199 Pooled Relational Data Partitioning 200 Siloed Relational Data Partitioning 201 NoSQL Data Partitioning 202 Pooled NoSQL Data Partitioning 203 Siloed NoSQL Data Partitioning 204 NoSQL Tuning Options 205 Object Data Partitioning 206 Pooled Object Data Partitioning 206 Siloed Object Data Partitioning 207 Database Managed Access 208 vi | Table of ContentsOpenSearch Data Partitioning 210 Pooled OpenSearch Data Partitioning 211 Siloed OpenSearch Data Partitioning 212 A Mixed Mode Partitioning Model 214 Sharding Tenant Data 215 Data Lifecycle Considerations 216 Multi-Tenant Data Security 217 Conclusion 217 9. Tenant Isolation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Core Concepts 220 Categorizing Isolation Models 223 Application-Enforced Isolation 225 RBAC, Authorization, and Isolation 225 Application Isolation Versus Infrastructure Isolation 226 The Layers of the Isolation Model 227 Deployment-Time Versus Runtime Isolation 228 Isolation Through Interception 232 Scaling Considerations 234 Real-World Examples 235 Full Stack Isolation 235 Resource-Level Isolation 237 Item-Level Isolation 239 Managing Isolation Policies 240 Conclusion 242 10. EKS (Kubernetes) SaaS: Architecture Patterns and Strategies. . . . . . . . . . . . . . . . . . . . 245 The EKS–SaaS Fit 246 Deployment Patterns 248 Pooled Deployment 250 Siloed Deployments 251 Mixing Pooled and Siloed Deployments 254 The Control Plane 255 Routing Considerations 256 Onboarding and Deployment Automation 259 Configuring Onboarding with Helm 260 Automating with Argo Workflows and Flux 262 Tenant-Aware Service Deployments 264 Tenant Isolation 265 Node Type Selection 271 Mixing Serverless Compute with EKS 274 Conclusion 275 Table of Contents | vii11. Serverless SaaS: Architecture Patterns and Strategies. . . . . . . . . . . . . . . . . . . . . . . . . . . 277 The SaaS and Serverless Fit 278 Deployment Models 282 Pooled and Siloed Deployments 283 Mixed Mode Deployments 284 More Deployment Considerations 285 Control Plane Deployment 286 Operations Implications 288 Routing Strategies 288 Onboarding and Deployment Automation 291 Tenant Isolation 296 Pooled Isolation with Dynamic Injection 296 Deployment-Time Isolation 298 Simultaneously Supporting Silo and Pool Isolation 299 Route-Based Isolation 301 Concurrency and Noisy Neighbor 302 Beyond Serverless Compute 304 Conclusion 305 12. Tenant-Aware Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307 The SaaS Operations Mindset 308 Multi-Tenant Operational Metrics 310 Tenant Activity Metrics 311 Agility Metrics 313 Consumption Metrics 315 Cost-per-Tenant Metrics 318 Business Health Metrics 321 Composite Metrics 322 Baseline Metrics 322 Metrics Instrumentation and Aggregation 323 Building a Tenant-Aware Operations Console 324 Combining Experience and Technical Metrics 328 Tenant-Aware Logs 329 Creating Proactive Strategies 329 Persona-Specific Dashboards 329 Multi-Tenant Deployment Automation 330 Scoping Deployments 332 Targeted Releases 332 Conclusion 334 viii | Table of Contents13. SaaS Migration Strategies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 The Migration Balancing Act 338 Timing Considerations 339 What Kind of Fish Are You? 342 Thinking Beyond Technology Transformation 343 Migration Patterns 344 The Foundation 344 Silo Lift-and-Shift 346 Layered Migration 348 Service-by-Service Migration 351 Comparing Patterns 356 A Phased Approach 357 Where You Start Matters 358 Conclusion 361 14. Tiering Strategies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363 Tiering Patterns 364 Consumption-Focused Tiering 365 Value-Focused Tiering 367 Deployment-Focused Tiering 368 Free Tiers 370 Composite Tiering Strategies 370 Billing and Tiering 371 Tiering and Product-Led Growth 372 Implementing Tiering 372 API Tiering 373 Compute Tiering 375 Storage Tiering 377 Deployment Models and Tiering 380 Throttling and Tenant Experience 381 Tier Management 382 Operations and Tiering 382 Conclusion 383 15. SaaS Anywhere. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 The Fundamental Concepts 386 Ownership 387 Limiting Drift 389 Multiple Flavors of Remote Environments 390 Regional Deployments Versus Remote Resources 391 Table of Contents | ixArchitecture Patterns 391 Remote Data 393 Remote Application Services 394 Remote Application Plane 396 Staying in the Same Cloud 397 Integration Strategies 397 Operations Impacts and Considerations 398 Provisioning and Onboarding 398 Access to Remote Resources 399 Scale and Availability 400 Operational Insights 400 Deploying Updates 400 Conclusion 401 16. GenAI and Multi-Tenancy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403 Core Concepts 404 The Influence of Multi-Tenancy 406 Creating Custom Tenant AI Experiences 409 A Broad Range of Possibilities 410 SaaS and AI/ML 411 Introducing Tenant Refinements 412 Supporting Tenant-Level Refinement with RAG 412 Supporting Tenant Refinement with Fine-Tuning 416 Combining RAG and Fine-Tuning 420 Applying General Multi-Tenant Principles 421 Onboarding 421 Noisy Neighbor 422 Tenant Isolation 423 GenAI Pricing and Tiering Considerations 424 Developing a Pricing Model 424 Creating Tiered Tenant Experiences 427 Conclusion 428 17. Guiding Principles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431 Vision, Strategy, and Structure 432 Build a Business Model and Strategy 432 A Clear Focus on Efficiency 433 Avoiding the Tech-First Trap 434 Thinking Beyond Cost Savings 435 Be All-In with SaaS 435 Adopt a Service-Centric Mindset 436 Think Beyond Existing Tenant Personas 437 x | Table of ContentsCore Technical Considerations 438 No One-Size-Fits-All Model 438 Protect the Multi-Tenant Principles 439 Build Your Multi-Tenant Foundation on Day One 440 Avoid One-Off Customization 441 Measure Your Multi-Tenant Architecture 442 Streamline the Developer Experience 442 Operations Mindset 443 Thinking Beyond System Health 443 Introducing Proactive Constructs 445 Validating Your Multi-Tenant Strategies 445 You’re Part of the Team 447 Conclusion 447

Mostrar más Leer menos
Institución
Building Multi-Tenant SaaS Architectures
Grado
Building Multi-Tenant SaaS Architectures











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Building Multi-Tenant SaaS Architectures
Grado
Building Multi-Tenant SaaS Architectures

Información del documento

Subido en
16 de junio de 2024
Número de páginas
487
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$25.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Wiseman NURSING
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
7311
Miembro desde
4 año
Número de seguidores
3860
Documentos
27631
Última venta
14 horas hace
Premier Academic Solutions

3.9

1496 reseñas

5
738
4
272
3
229
2
81
1
176

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes