Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クライアントからメッセージを受け取ったら、すぐに返信するのではなく、数秒 (ランダムな秒数) 待ちたいと思います。どうすればいいですか?(私はチャネル API を使用しているため、このような遅延はクライアントにとっては問題ないはずです)
スレッドをしばらくスリープさせることができます:
import thread ... thread.sleep(some_number_of_milliseconds)
延期された組み込みライブラリは、App Engine のスリープよりも優れたパフォーマンスを発揮し、タスク キューよりもセットアップが簡単です。
[https://cloud.google.com/appengine/articles/deferred][1]