Further Reading: Pub/Sub
Back to Pub/Sub: Delivery Guarantees
Pub/Sub Documentation
Official Documentation: Google Cloud Pub/Sub Documentation
Why it matters: Comprehensive official documentation on Pub/Sub architecture, features, and best practices.
Key Concepts
Pub/Sub Architecture: - Topics and subscriptions - Message delivery guarantees - Ordering guarantees
Reliability: - At-least-once delivery - Dead letter queues - Retry policies
Relevance: Provides the authoritative reference for Pub/Sub implementation details.
Recommended Sections
- Pub/Sub Overview: Understanding Pub/Sub concepts
- Delivery Guarantees: At-least-once delivery
- Ordering: Ordering guarantees
- Dead Letter Queues: Handling failed messages
- Performance: Optimizing Pub/Sub performance
Google Cloud Architecture Center
Resource: Google Cloud Architecture Center
Why it matters: Reference architectures and best practices for Pub/Sub deployments.
Key Resources
Messaging Patterns: - Event-driven architectures - Microservices communication - Data pipeline patterns
Reliability Patterns: - Idempotency patterns - Retry strategies - Dead letter queue handling
Relevance: Provides real-world architecture examples and best practices.
Additional Resources
Books
"Designing Data-Intensive Applications" by Martin Kleppmann - Chapter on messaging systems - Delivery guarantees and ordering
"Google Cloud Platform in Action" by JJ Geewax - Chapter on Pub/Sub - Pub/Sub examples and best practices
"Site Reliability Engineering" (Google SRE Book) - Chapter on messaging systems - Real-world messaging challenges
Online Resources
Google Cloud Blog: Pub/Sub Articles - Latest Pub/Sub features - Best practices and case studies
GCP Well-Architected Framework: Messaging - Messaging best practices - Design principles
Key Takeaways
- At-least-once delivery: Messages may be duplicated, handle idempotently
- Ordering is per-key: Ordering only within same ordering key
- Dead letter queues: Handle poison messages and failures
- Monitor backlog: Track message backlog and processing rate
- Design for scale: Pub/Sub scales to millions of messages per second
Related Topics
- Queues & Streams - Messaging patterns
- Idempotency & Retries - Handling duplicates
- Data Pipeline - Pub/Sub in data pipelines