ホットスポットに関する質問 あなたは、世界中の地震データへのアクセスを提供する企業のWebアプリケーションに、新しい機能を開発します。地震データは、Azure Cache for Redisインスタンス内のRedis Streamsに保存されます。 新機能には、地震発生時のリアルタイム表示機能が含まれています。 地震データを受信するには、Azure Cache for Redis コマンドを実装する必要があります。 このコマンドをどのように完了すればよいですか?回答するには、回答欄で適切なオプションを選択してください。 注:正解ごとに1ポイントが加算されます。
正解:
Explanation: BLOCK 0 means that we will wait infinitely (timeout 0 means it will never expire) for new items in a stream. $ ID means that we will receive only new messages, starting from the time we started listening. https://redis.io/docs/data-types/streams-tutorial/#listening-for-new-items-with-xread