Why does the application run when there is no kafka working?

I don’t understand clearly the relationship between the application and kafka.

even if i temporarily set up Kafka and run the application, the application runs without any problems. It was strange that kafka was not running yet, but it worked normally. Of course, problems arise when issuing events. Bootstrap broker localhost:9092 disconnected

i don’t know why this error doesn’t come out right after running the application and comes out when it’s time to issue events.

Hi imnewone,

Could you please share a bit more context? I assume you use the Kafka extension to publish events?

And you would like it to fail when starting up when Kafka is unavailable, instead of when it’s trying to publish to Kafka for the first time?

In my opinion this is not something the extension should do, if you want to you could use the admin client after startup for example to be sure Kafka is available, you could do something like list topics.

@gklijs thank you to quick reply!

you would like it to fail when starting up when Kafka is unavailable, instead of when it’s trying to publish to Kafka for the first time?

=> yes!

i thought it could support from extension.
i’ll have to find out about AdminClient!!

thank you to let me know