title: Does Kafka replaces the Load Balancers completely?
body: <p>I was asked a question to achieve scaling a system. The system itself processes customer data and creates filtering on that data and produces some analytical information.</p>
  
  <p>1) The First iteration:</p>
  
  <p>My initial answer was to provide a Kafka cluster solution. </p>
  
  <p>Kafka itself has streaming , load balancing, and fault tolerance capacity. So it provides me to create processing the producing data in many brokers effectively and consume this data in any consumer as I want.</p>
  
  <p>I can also add streaming functionality to filtering data as much as I want.</p>
  
  <p>In this scenario, there is no need to think about the load balancers, because the Kafka handles the load balancing itself.</p>
  
  <p>2) The second iteration: It has been asked to me how do I scale the system if there is huge demand increase. What would be the approach to scale the system?</p>
  
  <p>In this case, when considering the Kafka cluster; broker counts and partitions should be described in the beginning. It is not something expanding itself. So even though Kafka provides lots of flexibility when considering multiple locations and fastly increasing requests my second opinion is using Elastic Load Balancers &amp; automatic binding for data centers.</p>
  
  <p>When the request counts double in the next day. Load balancers route the load other load balancers/ other data centers so in case of necessity the new Kafka clusters automatically connect to the total system.</p>
  
  <p>The main load routing could be done geographically.</p>
  
  <p>The point of this issue load balancers is still looks needed although Kafka is so strong candidate.</p>
  
  <p>My second approach similar to the following schema.</p>
  
  <p><a href="https://i.stack.imgur.com/kEx1C.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/kEx1C.jpg</a></p>
  
  <p>(In the meantime, I came across some interviewers before than this interview and they exactly named load balancer as an "out of date technology" and I have been judged very cruel because I suggested load balancers. )</p>
  
  <p>If you are a Kafka expert &amp; and dealing with scaling of increasing requests in multi-location, I would be glad if you put your comments.</p>
  
  <p>Thanks.</p>