Is there a way to create kafka consumers in a clojurescript app that I am trying to create. My kafka cluster is at AWS MSK which is configured to use SASL_SSL/IAM auths. And my client-side application is build on clojurescript. I tried to search for working third-party Libraries but couldn't find anything for clojurescript. Does anyone know any other way to create consumers in cljs.
I tried few clojure libraries like clj-kafka, kafkaesque, devoplt/kafka, etc but nothing works.
You cannot use Clojure clients since they'll likely either be using a Java Client implementation or interface directly via Java IO systems. These do not exist in Clojurescript and are therefore incomptaible.
You want to be looking for JS Clients instead and use those. I have my doubts that it is a good idea to talk directly to Kafka from a client side, but I have never used it so I don't know if thats even an option.
The most common setup likely is for people to talk to Kafka from their servers and then provide their own API for the frontend. I'm sure you can write such a server in ClojureScript using a JS API client, but I cannot point you to anything specific.