title: Role of kafka consumer, seperate service or Django component?
body: <p>I'm designing a web log analytic.</p>
  
  <p>And I found an architect with Django(Back-end &amp; front-end)+ kafka + spark.</p>
  
  <p>I also found some same system from this link:<a href="http://thevivekpandey.github.io/posts/2017-09-19-high-velocity-data-ingestion.html" rel="nofollow noreferrer">http://thevivekpandey.github.io/posts/2017-09-19-high-velocity-data-ingestion.html</a> with below architect</p>
  
  <p><a href="https://i.stack.imgur.com/zjnKY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zjnKY.png" alt="enter image description here"></a></p>
  
  <p>But I confuse about the role of kafka-consumer. It will is a service, independent to Django, right?</p>
  
  <p>So If I want to plot real-time data to front-end chart, how to I attached to Django.</p>
  
  <p>It will too ridiculous if I place both kafka-consumer &amp; producer in Django. Request from sdk come to Django by pass to kafa topic (producer) and return Django (consumer) for process. Why we don't go directly. It looks simple and better.</p>
  
  <p>Please help me to understand the role of kafka consumer, where it should belong? and how to connect to my front-end.</p>
  
  <p>Thanks &amp; best Regards,</p>
  
  <p>Jame</p>