This is not exactly the same, but to me it sounds like a variation on the theme of the producer / consumer. Place a blocking queue between them. If the consumer cannot keep up, the blocking queue continues to receive messages from the manufacturer and accumulate them until the consumer is ready.
Or maybe you mean this .
source share