Further Reading: Spanner
Back to Spanner: Consistency & Performance
Spanner Documentation
Official Documentation: Google Cloud Spanner Documentation
Why it matters: Comprehensive official documentation on Spanner architecture, features, and best practices.
Key Concepts
Spanner Architecture: - TrueTime and external consistency - Distributed transactions - Multi-region replication
Schema Design: - Tables and indexes - Interleaving - Secondary indexes
Relevance: Provides the authoritative reference for Spanner implementation details.
Recommended Sections
- Spanner Overview: Understanding Spanner concepts
- TrueTime: How TrueTime enables external consistency
- Schema Design: Best practices for schema design
- Performance: Optimizing query performance
- Multi-Region: Multi-region deployment patterns
Spanner Research Papers
"Spanner: Google's Globally-Distributed Database" (Corbett et al., 2012) - Original Spanner paper - Link
Why it matters: Deep dive into Spanner's architecture and design principles.
Key Topics
TrueTime: - Distributed clock synchronization - External consistency guarantees - Performance implications
Distributed Transactions: - Two-phase commit - Paxos consensus - Transaction performance
Relevance: Understanding the research behind Spanner's design.
Google Cloud Architecture Center
Resource: Google Cloud Architecture Center
Why it matters: Reference architectures and best practices for Spanner deployments.
Key Resources
Database Patterns: - Multi-region database deployments - Schema design patterns - Performance optimization
Consistency Patterns: - External consistency use cases - Transaction design patterns - Replication strategies
Relevance: Provides real-world architecture examples and best practices.
Additional Resources
Papers
"Spanner, TrueTime and The CAP Theorem" (Google Research) - CAP theorem analysis - Link
"The Datacenter as a Computer" (Barroso & Hölzle, 2018) - Chapter on distributed databases - Link
Books
"Designing Data-Intensive Applications" by Martin Kleppmann - Chapter on distributed transactions - Consistency models and tradeoffs
"Google Cloud Platform in Action" by JJ Geewax - Chapter on Spanner - Spanner examples and best practices
Online Resources
Google Cloud Blog: Spanner Articles - Latest Spanner features - Best practices and case studies
GCP Well-Architected Framework: Databases - Database best practices - Design principles
Key Takeaways
- TrueTime enables external consistency: Stronger than serializability
- Multi-region by default: Global distribution with strong consistency
- Schema design matters: Interleaving and indexes affect performance
- Transactions are expensive: Design to minimize transaction conflicts
- Plan for scale: Spanner scales to petabytes and millions of QPS
Related Topics
- Consensus & Leases - Consensus algorithms
- Replication Strategies - Replication patterns
- Multi-Region API - Spanner in multi-region architecture