# Event Driven framework with synchrnous call using confluent kafka

**URL:** <https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292>\
**Category:** Kafka Connect\
**Created:** [1 March 2024 07:48 UTC](https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292 "2024-03-01T07:48:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![surbhi](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@surbhi](https://forum.confluent.io/u/surbhi)\
**Post date:** [1 March 2024 07:49 UTC](https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292/1 "2024-03-01T07:49:00Z")

</div>

I am trying to build a event driven framework using kafka . I have 2 microservice and I am using kafka to send messages to them . my microservices will be long running processes basically consumers . My requirement is that my client should wait until i get the final response back from the microservice . how can i achieve that .

---

<div class="post-metadata">

**Author:** ![xorlop](https://avatars.discourse-cdn.com/v4/letter/x/ea5d25/32.png) [@xorlop](https://forum.confluent.io/u/xorlop)\
**Post date:** [1 March 2024 17:49 UTC](https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292/2 "2024-03-01T17:49:35Z")

</div>

What is the archictecture of your service? Is it Java, Python, Go, Node…?

Have you heard of `librdkafka`? It allows you to create consumers and producers in nearly any language. For languages not “officially” supported, there are many ports, such as `node-rdkafka`.

I think that you should consider some of the tutorials on Confluent: [Learn Kafka - Apache Kafka Tutorials and Resources | Confluent Developer](https://developer.confluent.io/quickstart/kafka-on-confluent-cloud/)

It is also important to consider _if_ you should be using a stream processing solution at all and look into a simpler solution if possible first.

---

<div class="post-metadata">

**Author:** ![surbhi](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@surbhi](https://forum.confluent.io/u/surbhi)\
**Post date:** [5 March 2024 07:46 UTC](https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292/3 "2024-03-05T07:46:19Z")

</div>

I am using confluent kafka in python . My use case is to implement request-reply (rest ap )messaging system . which means i need synchronous implementation using kafka . once consumer’s job is done , my client needs response back . how can i achieve something like this

---

<div class="post-metadata">

**Author:** ![xorlop](https://avatars.discourse-cdn.com/v4/letter/x/ea5d25/32.png) [@xorlop](https://forum.confluent.io/u/xorlop)\
**Post date:** [5 March 2024 23:48 UTC](https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292/4 "2024-03-05T23:48:11Z")

</div>

Check the link I provided. It provides a quick start in python.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [4 April 2024 23:48 UTC](https://forum.confluent.io/t/event-driven-framework-with-synchrnous-call-using-confluent-kafka/10292/5 "2024-04-04T23:48:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
