Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Async] [Kafka endpoint] Publish to a topic #8247

Closed
2 tasks done
mouligno opened this issue Jul 29, 2022 · 2 comments
Closed
2 tasks done

[Async] [Kafka endpoint] Publish to a topic #8247

mouligno opened this issue Jul 29, 2022 · 2 comments

Comments

@mouligno
Copy link
Contributor

mouligno commented Jul 29, 2022

🌈 Feature

As an Async API Publisher, I want to publish to a specific topic using the Kafka connector.

🌄 Additional information

  • Create a producer
  • push message to specific topic
  • Authentification is out of scope
  • New endpoint plugin

Example of initialization -
https://github.com/gravitee-io/gravitee-poc-sme/blob/master/src/main/java/io/gravitee/poc/sme/gateway/connector/endpoint/async/impl/KafkaEndpointAsyncConnector.java

🦸 Acceptance criteria

  • Given an async API with a kafka topic as endpoint
  • Then I can publish a new record to my topic through my API
@guillaumelamirand
Copy link

guillaumelamirand commented Aug 30, 2022

Two PR are opened :

  1. feat(kafka): add kafka endpoint gravitee-api-management#2379
  2. feat(kafka): add kafka endpoint gravitee-gateway-api#137

In order to test you will need to use http post entrypoint which is under development

@LiliaEn
Copy link
Contributor

LiliaEn commented Sep 2, 2022

Tested locally using 3.19.0 version.
The following scenarios were covered:

  • Create an API with http-post entrypoint and kafka endpoint and a topic
  • Create a plan+ publish and start the API
  • Send a post request with a message and check on the Kafka Client UI that the message is displayed on the appropriate topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants