Friday, April 23, 2021

Use Multicast to keep the request body

 In the Redhat Fuse, when we route to the target system( like API, Database) the body will be overwrite with the response for  target system. In case we want access the data from the request, we should use  Multicast.



With the route above, The request will duplicate  to 2 route ( _route2 and _route3 ) and merge  the response of those route to  it body ( it 's array of  responses ). So, because the _route2 just  echo the message then we can access the  origin request.
And we can access the merge  of those response like access the array
 



No comments:

Post a Comment

Install and use xorg-server on macOS via Homebrew

  The instructions to install and use xorg-server on macOS via Homebrew: Install Homebrew (if you haven't already): /bin/bash -c ...