title: Dynamic Delay Between Messages in Chatbot
body: <p>In the chatbot I’m developing I want the messages to be sent with a dynamic delay between messages. For instance the two messages “Hello” and “How are you?” should have a delay of 0.2 seconds between them. 
  The delay is a function of how long the previous message was, so for instance: 
  Number of Characters * 0.02 = Delay in Seconds</p>
  
  <p>I’m struggling to come up with the tools and logic for how to build this without just putting threads on wait. This should scale even when the delay is several seconds and manage thousands of concurrent messages.</p>
  
  <p>I’m sure this problem has been solved by many before me, but how? And what are the current best practices?</p>