Role of kafka consumer, seperate service or Django component?

Viewed 4180

I'm designing a web log analytic.

And I found an architect with Django(Back-end & front-end)+ kafka + spark.

I also found some same system from this link:http://thevivekpandey.github.io/posts/2017-09-19-high-velocity-data-ingestion.html with below architect

enter image description here

But I confuse about the role of kafka-consumer. It will is a service, independent to Django, right?

So If I want to plot real-time data to front-end chart, how to I attached to Django.

It will too ridiculous if I place both kafka-consumer & 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.

Please help me to understand the role of kafka consumer, where it should belong? and how to connect to my front-end.

Thanks & best Regards,

Jame

1 Answers
Related