smiziara opened a new issue #4404:
URL: https://github.com/apache/apisix/issues/4404


   ### Issue description
   
   I want to develop a plugin for Apisix, so i can forward http requests to 
Nats, wait for the response and then write the body and headers to the http 
response. 
   
   The approach would be as following:
   1) Apisix receives the http request, perform the authentication and 
validation (other plug-ins can be used) 
   2) Then a payload representing this request is sent to Nats messaging, and 
await for the response. 
   3) When the response is received, the payload will contains new headers and 
body, that will be used as the response for the client. 
   
   My question is, whats the best approach to implement this? 
   As a lua plugin? Or the Java plugin runner? 
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):  latest
   * OS (cmd: `uname -a`): centos 7
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): latest
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to