1. Author

    Good question! Yes, if you would implement a way to send a signal to the slow consumer, it could react to that and try to fix the situation, e.g. by incrementing the amount of worker threads. But it depends on the case because, if the issue is in the network, scaling up wouldn’t solve it.

  2. In Computer Science, we can implement Pipes and Filters. It is Producer-Consumer. Filter1 is called a Producer and Filter2 is called a Consumer. Both filters are connected by a pipe called a Queue. Can we auto scale up a slow consumer into more threads based on its queue getting quite full, and then auto scale down when the queue does not have enough data to employ multiple threads anymore?


This site uses Akismet to reduce spam. Learn how your comment data is processed.