Context-Aware Routing
Context-Aware Routing
Section titled “Context-Aware Routing”Context-Aware Routing は、対象 URL に対して 最適な IP タイプ(residential、datacenter、dedicated)を、手動設定なしで自動選択します。
IP タイプ
Section titled “IP タイプ”| タイプ | 適した用途 | 速度 | コスト |
|---|---|---|---|
| Residential | EC、ソーシャルメディア、ボット対策サイト | 中 | $$$ |
| Datacenter | API、保護のないサイト、大量リクエスト | 速い | $ |
| Dedicated | アカウント管理、長時間セッション | 中 | $$ |
ルーティングの仕組み
Section titled “ルーティングの仕組み”プロキシをリクエストすると、HydraSkill が対象を分析します:
# HydraSkill は Amazon に対して自動的に residential を選択proxy = client.get_proxy(target="amazon.com")print(proxy.type) # "residential"
# 公開 API には datacenter を選択proxy = client.get_proxy(target="api.github.com")print(proxy.type) # "datacenter"ルーティングエンジンは次の点を考慮します:
- 対象ドメインのレピュテーション — 既知のボット対策システムには residential IP を割り当て
- 過去のブロック率 — 頻繁にブロックするドメインにはプレミアム IP を割り当て
- リクエストパターン — 高頻度リクエストには datacenter、セッションベースには residential
- 地理的要件 — 一部の地域は residential のカバレッジが優れている
ルーティングのオーバーライド
Section titled “ルーティングのオーバーライド”IP タイプはいつでも手動で指定できます:
# API でも residential を強制proxy = client.get_proxy( target="api.example.com", ip_type="residential")
# 速度のため datacenter を強制proxy = client.get_proxy( target="amazon.com", ip_type="datacenter" # 安価だがブロックリスクは高い)ルーティングルール(Enterprise)
Section titled “ルーティングルール(Enterprise)”Enterprise プランでは、カスタムのルーティングルールを定義できます:
routing_rules: - match: "*.amazon.*" ip_type: residential country: auto # 対象のロケールに合わせる - match: "api.*" ip_type: datacenter - match: "*.google.com" ip_type: residential rotate_every: 10 # 10 リクエストごとに新しい IPコスト最適化
Section titled “コスト最適化”Context-Aware Routing は既定でコストを節約します。高価な residential IP は必要なときだけ使用します。ボット対策のない対象に対しては、より安価な datacenter IP を自動的に経由します。
一般的な節約効果:常に residential を使う場合と比べて 30〜50%。