#Kafka

13 messages · Page 1 of 1 (latest)

fiery nacelle
#

guys whot does kafka do ? i have read that its used for messages between microservices , but what does messages mean ? why do we need kafka ?

unique solarBOT
#

This post has been reserved for your question.

Hey @fiery nacelle! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

ivory sand
#

A message is anything an app needs to tell another app.
Normally the question would be more:
why don't they call an internal API if these two apps need to communicate?

#

But there are various problems in the real world of passing messages around between apps with internal API calls.
What if you don't need the answer, are you going to code yourself the asynchronous aspects?
What if the app to pass a message to is down, are you going to try again a few times, or maintain a database of messages that still need to be passed?

#

The point of a messaging service, like kafka and others, is that apps send their messages and what apps to deliver them to, and the messenger service handles difficulties from here

#

Of course the messenger service could end up being down too, but the messenger service does nothing but messaging. It couldn't have been made unstable by its other activities.

fiery nacelle
#

thank you kyo again ur responses are very helpful

unique solarBOT
fiery nacelle
#

u know lot about microservicse can u please explain something more

#

for example

#

i am building microservices i have api gateway eurika server and movie-microservice in movie microservice i have movie id, title , genre (One To Many (one movie many genres)) so in controller layerr i have findallmovies, findmoviewithtitle, deletemovie,createmovie,updatemovie. this is my one microservice now i want to create another microservice in my example what would second microservice be ? any suggestion?

#

i just cant think what to add as a second microservice