cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Usage of Kafka in CAP

alugunov
Explorer
1,544

Hello experts,

Is there some examples of guide how to connect to Kafka from CAP Project (node.js) ? We want to connect to Kafka as consumer and looking for examples how to do it in CAP.

thanks and best regards,

Andrey

Accepted Solutions (0)

Answers (2)

Answers (2)

mike_zaschka
Active Participant
0 Kudos

Hi,

a little late to the game, but I created a CAP plugin cds-kafka that enables using Apache Kafka as a messaging service within CAP.
I also blogged about this in the SAP Community:

Kind regards,
Mike

david_kunz2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Andrej,

At this time, we don't support Kafka in CAP out of the box. So you'll need to write an own client for that.

Maybe this can help you: https://www.confluent.io/blog/getting-started-with-kafkajs/

Best regards,

David

alugunov
Explorer
0 Kudos

Hi David,

thank you for quick answer. Yes, I understood that it is not supported out of box, but are there some evident restrictions from CAP to implement own client?

I was wondering whether somebody from community has implemented it and has some example.

best regards,

Andrey

david_kunz2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Andrej,

No, there are no restrictions from CAP side, it's an open programming model where you can use any additional library you want (at your own risk, of course).
Best regards,
David