Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

google-cloud-solution-event-driven-decoupling

БесплатноБез исполняемых скриптовНе проверен

Decouples tightly coupled services or monoliths with Google Cloud Pub/Sub so services scale and fail independently, using Go reference implementations…

googleот google★ 25 380 звёзд на GitHub

Об этом скилле

Event-driven decoupling with Pub/Sub

Break a distributed monolith or tightly coupled service chain apart with asynchronous messaging on Pub/Sub so services scale and fail independently. This skill uses progressive disclosure across Phases 0–5 (with Phase 0 inline below and modular references/ files for Phases 1–5): run the full end-to-end migration sequence for architecture journeys, or load only the single phase reference needed for a focused design, code, or troubleshooting request.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Progressive disclosure: load only the phase you need

Phase & module Reference to load Produces Load when
0. Frame the goal Inline in SKILL.md (see End-to-end workflow and phase gates) Business outcome, runtime/DB constraints, measurable acceptance criteria Starting any end-to-end decoupling journey before design begins
1. Assess (Synchronous coupling assessment) Coupling assessment & transaction boundaries; plus Go & SQL outbox, post-commit, and bulkheads when authoring producer/outbox code Measured baseline, call graph, transaction cut, outbox vs state-marker decision, event catalog, bulkhead plan Auditing synchronous HTTP/gRPC/DB chains, Cloud Trace / Cloud SQL lock waits, dual writes, schema freezes, reference-lookup caching, or deciding what becomes an event
2. Design messaging (Pub/Sub topic and subscription design) Pub/Sub topology, flow-control sizing, DLQ, and claim-check Domain topics vs dedicated topics, subscription filters, dead-letter policy + service-agent IAM, backoff, DB-bounded flow control, 10 MB claim-check Sizing MaxOutstandingMessages, ack deadlines, or retry delays; choosing filtered vs per-event topics; handling payloads near/above 1–10 MB; or fixing DLQ delivery
3. Build consumers (Event-driven workflow triggering) Consumer ack/nack matrix, SIGTERM drain, GKE HPA, and Cloud Run Idempotent Go dispatcher, sentinel-error ack/nack/quarantine matrix, single-deadline SIGTERM drain, GKE autoscaling/v2 HPA, Cloud Run / Eventarc / Cloud Run functions (--retry) Writing or reviewing consumer handlers, fixing rollout context canceled or duplicate bugs, scaling GKE on num_undelivered_messages, or configuring Cloud Run / Eventarc triggers
4. Observe (Distributed trace instrumentation) OpenTelemetry propagation, OTLP export, and Cloud Logging correlation otelhttp/otelgrpc wrapping, Pub/Sub built-in tracing or attribute carrier, telemetry.googleapis.com:443 OTLP + Cloud Run sampler, slog correlation, InMemoryExporter tests Propagating traces across Pub/Sub, instrumenting synchronous HTTP/gRPC-only services, fixing missing Cloud Run traces or unlinked slog logs, or before Phase 1 when a service has no traces
5. Cut over & validate (Cut-over & acceptance) Solution checklist and hand-off template Phase gate table, event catalog template, budget worksheet, observable acceptance checks Defining measurable acceptance criteria, tracking phase hand-offs, executing Strangler dual-run cut-over, or validating post-cut-over gates

Routing rules:

  • End-to-end requests: run Phases 0–5 sequentially, loading each phase's reference only when that phase begins. Two exceptions apply:
    • Greenfield consumers: run Phases 3 and 4 together so new consumers ship with distributed tracing from day one.
    • Missing observability: if the user's primary problem is missing latency visibility or absent distributed traces, run Phase 4 (references/phase4-distributed-tracing.md) first to establish a trace baseline before proposing Pub/Sub changes, then resume Phases 1–3.
  • Focused single-phase requests: load only the matching phase reference, name which phase file applies, and never dump unrelated phases:
    • Flow-control / subscription configuration questions (MaxOutstandingMessages, ack deadline, max-delivery-attempts, backoff): load only Phase 2 (references/phase2-pubsub-topology-and-sizing.md). Relate flow control to the database connection pool and ack deadline to the per-message processing timeout; do not present the Phase 1 coupling matrix, Transactional Outbox, or Phase 3 consumer handler code.
    • Consumer handler ack/nack questions: load **o
Полный SKILL.md на GitHub

Установить google-cloud-solution-event-driven-decoupling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/attribution.mdreferences/phase1-coupling-assessment.mdreferences/phase1-outbox-and-bulkheads-go.mdreferences/phase2-pubsub-topology-and-sizing.mdreferences/phase3-consumer-and-autoscaling.mdreferences/phase4-distributed-tracing.mdreferences/solution-checklist.md

FAQ

Что делает скилл google-cloud-solution-event-driven-decoupling?

Decouples tightly coupled services or monoliths with Google Cloud Pub/Sub so services scale and fail independently, using Go reference implementations adaptable to Java, Python, Node.js, and other stacks. Use when breaking apart synchronous chains, defining transaction boundaries, bulkheads, and Transactional Outbox or post-commit publishing; sizing Pub/Sub topics, subscription filters, dead-letter policies, backoff, 10 MB Cloud Storage claim-check, or database-bounded flow control; building idempotent consumers with ack/nack/quarantine handling, SIGTERM draining, GKE HPA, Cloud Run push, Eventarc, or Cloud Run functions (--retry); or instrumenting OpenTelemetry W3C Trace Context across HTTP, gRPC, and Pub/Sub with Cloud Trace OTLP export and Cloud Logging correlation. Don't use for querying existing traces (use cloud-trace-querying), Kafka or non-Google brokers, or orchestration engines such as Workflows or Managed Service for Apache Airflow.

Как установить скилл google-cloud-solution-event-driven-decoupling?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл google-cloud-solution-event-driven-decoupling запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить google-cloud-solution-event-driven-decoupling с