http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Single-stream-two-sinks-tp33223p33348.html
If I understand correctly he wants the HTTP result in the DB. So I do not think side output works here. The DB would have to be the sink. Also sinks in Flink are the final destination.
So it would have to be RabbitMQ -----> Some Cool Business Logic Operators Here ----> Async I/O HTTP Operator -----> JDBC Sink.
Take look here also:
https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/operators/asyncio.html <-- The Example shows database client, but you can easily replace that with HTTP client.
But basically...
1- Get input from RabbitMQ Source.
2- Do what ever type of stream computations/business logic you need.
3- Use the Async I/O operator to send HTTP
- If HTTP 200 OK create Flink record tagged as SUCESS and what ever other info you want. Maybe response body.
- If NOT HTTO 200 OK create Flink record tagged as FAILED plus other info.
4- Sink the output record from #3 to JDBC.