perplexity-reliability-patterns
Perplexityの信頼性パターン(サーキットブレーカー、べき等性、グレースフルデグラデーション)を実装できます。 Perplexity統合のフォールトトレランス構築、リトライ戦略の実装、本番環境のPerplexityサービスへの耐障害性追加の際に活用できます。 「perplexity reliability」「perplexity circuit breaker」「perplexity idempotent」「perplexity resilience」「perplexity fallback」「perplexity bulkhead」といったフレーズでトリガーされます。
description の原文を見る
Implement Perplexity reliability patterns including circuit breakers, idempotency, and graceful degradation. Use when building fault-tolerant Perplexity integrations, implementing retry strategies, or adding resilience to production Perplexity services. Trigger with phrases like "perplexity reliability", "perplexity circuit breaker", "perplexity idempotent", "perplexity resilience", "perplexity fallback", "perplexity bulkhead".
SKILL.md 本文
Perplexity信頼性パターン
概要
Perplexity統合向けのプロダクショングレードの信頼性パターンです。
前提条件
- サーキットブレーカーパターンの理解
- opossumまたは同様のライブラリのインストール
- DLQ用のキュー基盤
- フォールバック用のキャッシング層
サーキットブレーカー
import CircuitBreaker from 'opossum';
const perplexityBreaker = new CircuitBreaker(
async (operation: () => Promise<any>) => operation(),
{
timeout: 30000,
errorThresholdPercentage: 50,
resetTimeout: 30000,
volumeThreshold: 10,
}
);
// イベント
perplexityBreaker.on('open', () => {
console.warn('Perplexity circuit OPEN - requests failing fast');
alertOps('Perplexity circuit breaker opened')
...
詳細情報
- 作者
- Brmbobo
- リポジトリ
- Brmbobo/Web2podcast
- ライセンス
- 不明
- 最終更新
- 2026/1/26
Source: https://github.com/Brmbobo/Web2podcast / ライセンス: 未指定