Replies: 1 comment
-
Hey @jandunk 👋 Please find some answers inline:
I'm not sure I follow. Is this a 3rd Benthos instance? The one you listed above as "inner config" uses
I don't think there's a way right now to a) send a message to an The best thing to do is to develop a custom processor plugin based on the existing LE: Moving this to a discussion as per #2026. |
Beta Was this translation helpful? Give feedback.
-
I've been playing around with Benthos a couple of days now and I must say that I love the product. I'm now trying to create a configuration which I can use to sort of proxy HTTP over amqp_0_9. But this seems a bit too challenging given the lack of expierence I have with the product.
Topology:
Client-> Benthos -> RabbitMQ -> Benthos -> Webserver
The idea is that the client is performing a reguest at an http input. That http_input should store the request in an amqp_0_9 with an unique id attached to it. That is then picked up by another Benthos config which will send the request with an http_client output to the webserver. This config is storing the response in another amqp_0_9 queue along with the id. This should then somehow be picked up by the Benthos config which is listening as a webserver and should sync_response the webserver's response from the amqp_0_9 queue which contains the response matching the id added at the input. The config should obviously wait for the response to arrive for some time.
These are my simplified configs, Please ignore the OPTIONS verb, I sort of use that in some decision making.
The current config is adding the request to the test queue and will add the response to the test_response queue. It does not check if the response matches the request. This means that requests and responses could get messed up if multiple requests are made to the inner input. Also there is no sync response with the response from the webserver.
Could someone help me to implement the logic for injecting and matching the id and syncing the response from the test_response queue in the inner config? I would already be happy with some pointers in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions