Integration / Apache NiFi Interview Questions
What is the InvokeHTTP processor and what are key configuration considerations?
InvokeHTTP is NiFi's most flexible HTTP client processor. It sends HTTP requests to configurable URLs using any HTTP method (GET, POST, PUT, PATCH, DELETE) and routes the response to different relationships based on the HTTP response code. It is the Swiss-army knife for REST API integration in NiFi flows.
Key configuration properties:
HTTP Method: The method to use — can be static or an EL expression like ${http.method} to pick dynamically from an attribute.
Remote URL: The target endpoint URL, EL-supported: https://api.example.com/users/${user.id}.
SSL Context Service: A StandardSSLContextService reference for HTTPS endpoints requiring client certificates or custom CA trust.
Send Message Body: Whether to include the FlowFile content as the HTTP request body. Set to false for GET/DELETE requests.
Request Content-Type: Typically application/json or dynamically from ${mime.type}.
Relationships: Response (2xx responses — the response body becomes a new FlowFile), Original (the original request FlowFile), Retry (5xx responses), No Retry (4xx client errors), Failure (network failures, connection timeouts).
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
