Hi Ralph,

If you are looking to create a REST service for receiving and processing
messages in NiFi, take a look at the ListenHTTP processor, as well as the
HandleHttpRequest and HandleHttpResponse processors.  The ListenHTTP
processor supports receiving HTTP requests and sending the contents to
other processors.  The ListenHTTP processor provides the easiest approach
for getting started.  If you need to perform validation or additional
processing before sending back a response to REST clients, then using
HandleHttpRequest and HandleHttpResponse with other processors in between
can support that approach.  When using HandleHttpRequest and
HandleHttpResponse, it is important to optimize intermediate as much as
possible to avoid HTTP clients timing out while waiting for a response.
Both processors support a number of configuration properties, so be sure to
read through the documentation for each one in order to determine the
optimal settings for your configuration.

Regards,
David Handermann

On Thu, Feb 4, 2021 at 3:32 AM Ralph Vercauteren <[email protected]> wrote:

> Hi all,
>
> Not sure if I need to ask this in this mailing list or the list of the
> developers.
>
> I want to create a REST server with NIFI.
>
> I have a Kafka queue storing messages. When something is connected to the
> REST server, the Kafka queue has to be read and all waiting messages should
> be collected and send back as a response to the REST client,
>
> I tried to google for a hint or solution, but I couldn't find it.
>
> With regards,
> Mit freundlichem Gruß,
> Met vriendelijke groet,
>
> *Ralph Vercauteren*
> Technical Architect QAD Automation Solutions
> Mobile NL: +31 6 5397 7230
> [email protected]
>
> This e-mail may contain QAD proprietary information and should be treated
> as confidential.
>

Reply via email to