Vai al contenuto principale
JobCannon
Tutte le competenze

GCP Pub Sub Messaging

⬢ LIVELLO 2Tecniche
Medio
Impatto sullo stipendio
2 mesi
Tempo di apprendimento
Medio
Difficoltà
—
Carriere
In sintesi

Pub/Sub is a managed message broker for async communication. Publishers send messages (events), subscribers receive them. Decouples systems (publisher doesn't know subscribers). At-least-once delivery, ordering, filtering. Mastery takes 2-3 weeks. Mid-level practitioners earn 10-15% premium for designing event-driven architectures. Skill adjacent to Kafka, RabbitMQ, and event-streaming patterns.

Cos'è GCP Pub Sub Messaging

Pub/Sub is a managed message broker. Publishers send messages to topics; subscribers receive from subscriptions. Messages are decoupled, publisher doesn't know who's listening. Used for event streaming (user signed up, product viewed, payment processed). At-least-once delivery: if subscriber crashes before acknowledging, message is redelivered. Ordering: within a partition, messages are ordered. Filtering: receive only messages matching criteria.

🔧 STRUMENTI ED ECOSISTEMA
Google Cloud Consolegcloud CLIPub/Sub Python/Java/Node.js SDKsCloud Functions (subscriber trigger)Cloud Dataflow (subscriber)Cloud LoggingDead-letter topicsMessage filtering

💰 Stipendio per regione

RegioneLivello baseMidLivello esperto
USA$70k$120k$185k
UK£50k£88k£140k
EU€55k€95k€150k
CANADAC$75kC$125kC$195k

⚖ Confronta con

❓ Domande frequenti

What's the difference between Pub/Sub and Cloud Tasks?
Pub/Sub: broadcast to many subscribers, at-least-once delivery, good for events. Cloud Tasks: point-to-point queue, guaranteed delivery, good for transactional work. Use Pub/Sub for analytics/logging/events, Cloud Tasks for order processing/critical work.
How do I guarantee messages aren't lost?
Pub/Sub guarantees at-least-once delivery (subscribers must ack message). Subscriber crashes before acking? Message redelivered to another subscriber. For exactly-once, implement idempotency on receiver.
Can I order messages?
Pub/Sub guarantees ordering within a partition (same key). If you need global ordering (all messages in order), use a single partition (doesn't scale). For most cases, ordering-per-key is sufficient.
What if a subscriber is slow?
Pub/Sub buffers messages (up to 7 days). Slow subscriber pulls messages at its own pace. Doesn't affect other subscribers. If subscriber disappears, messages eventually purged (7-day default TTL).
How do I debug message failures?
Check Cloud Logging for errors. Use Cloud Trace to see message lifecycle. Create a dead-letter topic: failed messages (after retries) sent there. Inspect dead-letter topic for debugging.
Can I filter messages before receiving?
Yes. Create a subscription with a filter expression (Pub/Sub SQL-like syntax). Subscriber only receives messages matching filter. Reduces bandwidth and processing.

Non sei sicuro che questa competenza faccia per te?

Fai il Career Match — ti suggeriremo i percorsi giusti.

Trova le competenze adatte a te →

Trova il tuo percorso di carriera ideale

Abbinamento basato sulle competenze per 2521 carriere. Gratis, ~3 minuti.

Fai il Career Match — gratis →