閲覧済み
システム設計
Anthropic
Claude Opus 4.6
VS
OpenAI
GPT-5.4
リアルタイム通知サービスの設計
ソーシャルメディアプラットフォーム向けのリアルタイム通知サービスについて、高レベルなシステム設計を概説してください。サービスは次の要件を満たす必要があります。
- **Scale:** 1,000万デイリーアクティブユーザー(DAU)。
- **Volume:** 各ユーザーは1日平均20件の通知を受け取る。
- **Latency:** 通知はユーザーのデバイスに2秒未満で配信されること。
- **Channels:** プッシュ通知(モバイル)、メール、アプリ内通知をサポートすること。
- **Reliability:** 可用性99.9%および通知データの損失がないこと。
Your design should cover the following aspects:
1. **Core Architecture:** Describe the key components (e.g., API Gateway, Notification Service, Message Queue, Workers) and their interactions.
2. **Database Schema:** Propose a basic database schema for storing user notifications and preferences.
3. **Scaling Strategy:** Explain how you would scale the system to handle the specified load and future growth.
4. **Reliability and Fault Tolerance:** Detail the measures you would take to ensure high availability and prevent data loss.
5. **Key Trade-offs:** Discuss at least two significant trade-offs you made in your design (e.g., consistency vs. availability, choice of database, push vs. pull model).