Microservices Architectureのロゴ

Microservices Architecture

コミュニティ
Omar-Obando
microservices-architecture

Use when designing and implementing microservices architectures, domain-driven design, service boundaries, event-driven communication, and distributed systems patterns. Includes CQRS, sagas, service discovery, and API gateway patterns. Based on Certified Microservices Architect (CMA) certification and microservices best practices.

概要

公開者Omar-Obando
リポジトリqwen-orchestrator
スキル名microservices-architecture
スター
53
フォーク
13
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    Omar-ObandoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Microservices Architecture」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/microservices-architecture
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Omar-Obando/qwen-orchestrator.git /tmp/qwen-orchestrator
mkdir -p .claude/skills
cp -r /tmp/qwen-orchestrator/skills/microservices-architecture .claude/skills/microservices-architecture
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMicroservices Architectureを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMicroservices Architectureを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Microservices Architectureは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Microservices Architecture Skill — Backend Developer

Overview

This skill provides comprehensive guidance for designing and implementing microservices architectures. It covers domain-driven design, service boundaries, event-driven communication, CQRS, sagas, service discovery, and distributed systems patterns following CMA certification standards.

When to Use

Use this skill when:

  • Designing microservices architecture
  • Defining service boundaries and domains
  • Implementing domain-driven design patterns
  • Creating event-driven communication systems
  • Implementing CQRS pattern
  • Designing sagas for distributed transactions
  • Setting up service discovery
  • Implementing API gateway patterns
  • Designing distributed caching strategies
  • Implementing circuit breakers
  • Setting up distributed tracing
  • Designing service mesh architectures
  • Implementing event sourcing patterns
  • Creating resilient distributed systems
  • Setting up container orchestration (Kubernetes)
  • Implementing API versioning strategies
  • Designing database per service pattern
  • Implementing sidecar patterns
  • Setting up service mesh (Istio, Linkerd)
  • Designing observability for microservices
  • Implementing distributed logging
  • Setting up distributed tracing (Jaeger, Zipkin)
  • Designing fault tolerance patterns

Do NOT use this skill when:

  • Writing application business logic (use domain-driven skill)
  • Designing database schemas (use database-design skill)
  • Writing API endpoint specifications (use api-design skill)
  • Performing security audits (use security-auditor skill)
  • Writing SQL queries (use sql-best-practices skill)
  • Designing multi-page website layouts (use design-system skill)
  • Analyzing deployment configurations (use deployment skill)
  • Writing documentation (use documentation-best-practices skill)

Microservices Principles

The 12-Factor App

┌─────────────────────────────────────────────────────────────┐
│              The 12-Factor App Principles                   │
├─────────────────────────────────────────────────────────────┤
│  1. Codebase: One codebase tracked in revision control      │
│  2. Dependencies: Explicitly declare and isolate dependencies│
│  3. Config: Store config in the environment                 │
│  4.Backing services: Treat backing services as attached     │
│     resources                                               │
│  5. Build, release, run: Strictly separate build and run    │
│     stages                                                  │
│  6. Processes: Execute the app as one or more stateless     │
│     processes                                               │
│  7. Port binding: Export services via port binding          │
│  8. Concurrency: Scale out via the process model            │
│  9. Disposability: Maximize robustness with fast startup    │
│     and graceful shutdown                                   │
│  10. Dev/prod parity: Keep development, staging, production │
│      as similar as possible                                 │
│  11. Logs: Treat logs as event streams                      │
│  12. Admin processes: Run admin/management tasks as one-off │
│      processes                                              │
└─────────────────────────────────────────────────────────────┘

Service Boundaries

┌─────────────────────────────────────────────────────────────┐
│              Service Boundary Guidelines                    │
├─────────────────────────────────────────────────────────────┤
│  1. Business capability: Service represents a business area │
│  2. Single responsibility: Service has one core function    │
│  3. Autonomous: Service can deploy independently            │
│  4. Isolated data: Service owns its data                    │
│  5. Loose coupling: Minimal dependencies between services   │
│  6. High cohesion: Related functionality together           │
│  7. Team ownership: One team owns one service               │
│  8. Technology agnostic: Service can use different tech     │
└─────────────────────────────────────────────────────────────┘

Domain-Driven Design

Bounded Context

┌─────────────────────────────────────────────────────────────┐
│              Bounded Context Example                        │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────────┐  ┌─────────────────┐  ┌──────────────┐│
│  │  Auth Context   │  │  Order Context  │  │ Inventory    ││
│  │                 │  │                 │  │ Context      ││
│  │ - Users         │  │ - Orders        │  │ - Products   ││
│  │ - Roles         │  │ - Cart          │  │ - Stock      ││
│  │ - Permissions   │  │ - Payment       │  │ - Suppliers  ││
│  └─────────────────┘  └─────────────────┘  └──────────────┘│
│         │                     │                    │        │
│         └─────────────────────┴────────────────────┘        │
│                              │                              │
│                      ┌───────▼───────┐                      │
│                      │  API Gateway  │                      │
│                      └───────────────┘                      │
└─────────────────────────────────────────────────────────────┘

Domain Events

typescript
// Domain Event
interface DomainEvent {
  id: string;
  aggregateId: string;
  timestamp: Date;
  version: number;
}

// OrderPlaced Event
interface OrderPlaced extends DomainEvent {
  type: 'OrderPlaced';
  orderId: string;
  customerId: string;
  items: OrderItem[];
  total: number;
}

// Event Handler
class OrderPlacedHandler {
  async handle(event: OrderPlaced) {
    // Send confirmation email
    await emailService.sendOrderConfirmation(event.customerId, event.orderId);

    // Update inventory
    await inventoryService.reserveStock(event.items);

    // Log for analytics
    await analyticsService.trackOrderPlaced(event);
  }
}

Communication Patterns

Synchronous Communication

┌─────────────────────────────────────────────────────────────┐
│              Synchronous Communication                      │
├─────────────────────────────────────────────────────────────┤
│  Client ──HTTP/REST──> API Gateway ──HTTP/REST──> Service   │
│                                                              │
│  Pros: Simple, easy to understand                           │
│  Cons: Tight coupling, failure propagation                  │
│  Use when: Low latency required, simple workflows           │
└─────────────────────────────────────────────────────────────┘

Asynchronous Communication

┌─────────────────────────────────────────────────────────────┐
│              Asynchronous Communication                     │
├─────────────────────────────────────────────────────────────┤
│  Publisher ──Message Queue──> Subscriber 1                  │
│                             └─> Subscriber 2                │
│                             └─> Subscriber 3                │
│                                                              │
│  Pros: Loose coupling, scalability, resilience              │
│  Cons: Complexity, eventual consistency                     │
│  Use when: Decoupling needed, high volume, complex workflows│
└─────────────────────────────────────────────────────────────┘

CQRS Pattern

┌─────────────────────────────────────────────────────────────┐
│              CQRS Pattern                                   │
├─────────────────────────────────────────────────────────────┤
│  ┌──────────────┐          ┌─────────────────┐              │
│  │   Command    │─────────>│  Write Model    │              │
│  │   Handlers   │          │  (Aggregate)    │              │
│  └──────────────┘          └─────────────────┘              │
│                                     │                        │
│                                     ▼                        │
│                             ┌──────────────┐                │
│                             │  Event Store │                │
│                             └──────────────┘                │
│                                     │                        │
│                                     ▼                        │
│  ┌──────────────┐          ┌─────────────────┐              │
│  │   Query      │─────────>│  Read Model     │              │
│  │   Handlers   │          │  (Projections)  │              │
│  └──────────────┘          └─────────────────┘              │
│                                     │                        │
│                                     ▼                        │
│                             ┌──────────────┐                │
│                             │  Read Store  │                │
│                             │  (Optimized) │                │
│                             └──────────────┘                │
└─────────────────────────────────────────────────────────────┘

Saga Pattern

Saga with Compensation

┌─────────────────────────────────────────────────────────────┐
│              Saga with Compensation                         │
├─────────────────────────────────────────────────────────────┤
│  1. Create Order ──> 2. Reserve Inventory                   │
│     │                      │                                │
│     │                      ▼                                │
│     │              3a. Inventory Reserved                   │
│     │                      │                                │
│     │                      ▼                                │
│     │              4. Process Payment                       │
│     │                      │                                │
│     │                      ▼                                │
│     │              5. Payment Processed                     │
│     │                      │                                │
│     │                      ▼                                │
│     └──────────────> 6. Order Confirmed                     │
│                                                              │
│  On Failure:                                                 │
│  - Cancel Payment (compensation)                            │
│  - Release Inventory (compensation)                         │
│  - Cancel Order (compensation)                              │
└─────────────────────────────────────────────────────────────┘

Circuit Breaker Pattern

typescript
class CircuitBreaker {
  private state: 'closed' | 'open' | 'half-open' = 'closed';
  private failureCount = 0;
  private successCount = 0;

  async execute<T>(fn: () => Promise<T>): Promise<T> {
    if (this.state === 'open') {
      throw new Error('Circuit breaker is open');
    }

    try {
      const result = await fn();
      this.onSuccess();
      return result;
    } catch (error) {
      this.onFailure();
      throw error;
    }
  }

  private onSuccess() {
    this.failureCount = 0;
    this.successCount++;

    if (this.state === 'half-open') {
      this.state = 'closed';
    }
  }

  private onFailure() {
    this.failureCount++;

    if (this.failureCount >= this.threshold) {
      this.state = 'open';
      setTimeout(() => {
        this.state = 'half-open';
      }, this.timeout);
    }
  }
}

Real-World Impact

Before this skill:

  • Monolithic architecture
  • Tight coupling between components
  • Deployment bottlenecks
  • Single point of failure
  • Scaling challenges

After this skill:

  • Well-designed microservices
  • Loose coupling and high cohesion
  • Independent deployments
  • Fault isolation
  • Scalable and resilient systems

Cross-References

  • domain-driven - For domain model design
  • api-design - For microservice API specifications
  • devops-pipeline - For CI/CD of microservices

References

よくある質問

AIスキル「Microservices Architecture」では何ができますか?

Use when designing and implementing microservices architectures, domain-driven design, service boundaries, event-driven communication, and distributed systems patterns. Includes CQRS, sagas, service discovery, and API gateway patterns. Based on Certified Microservices Architect (CMA) certification and microservices best practices.

TypingMindでMicroservices Architectureを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Microservices Architectureはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMicroservices Architectureをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/microservices-architectureを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Microservices Architectureを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Microservices Architectureで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMicroservices Architectureを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Microservices Architecture」は無料ですか?

はい。Omar-ObandoがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇