cbornet opened a new pull request, #17581: URL: https://github.com/apache/pulsar/pull/17581
### Motivation The HTTP Sink pushes records to any HTTP server with the record value in the body of POST method. It means you can have event push notification to a simple webhook. This enables the number of applications and platforms to integrate with Pulsar in an existing architecture without Pulsar’s library dependencies and constraints of OS and language that current Pulsar clients can only support. The Sink takes inspiration from [Pulsar Beam](https://github.com/kafkaesque-io/pulsar-beam) and the [Confluent HTTP Sink connector](https://docs.confluent.io/kafka-connectors/http/current/overview.html). The body of the HTTP request is the JSON representation of the record value. Some headers are added to the HTTP request: * `PulsarTopic`: the topic of the record * `PulsarKey`: the key of the record * `PulsarEventTime`: the event time of the record * `PulsarPublishTime`: the publish time of the record * `PulsarMessageId`: the ID of the message contained in the record * `PulsarProperties-*`: each record property is passed with the property name prefixed by `PulsarProperties-` ### Modifications trivial ### Verifying this change - [ ] Make sure that the change passes the CI checks. This change added tests and can be verified as follows: * Run `HttpSinkTest ` tests ### Does this pull request potentially affect one of the following parts: no *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] Anything that affects deployment ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [x] `doc-required` (Your PR needs to update docs and you will update later) - [ ] `doc-not-needed` (Please explain why) - [ ] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
