chilcano commented on issue #9928:
URL: https://github.com/apache/apisix/issues/9928#issuecomment-1660741344
Thanks @qwzhou89
I've found a way to share info from a 1st plugin to 2nd plugin. I enabled
`nginx.http.custom_lua_shared_dict` in the apisix configuration
(`config.yaml`). I used this config:
```yaml
apisix:
...
nginx_config:
http:
custom_lua_shared_dict:
my_shared_dict: 10m # Specify the size in MB of the shared memory
zone (change as needed)
deployment:
...
plugins:
...
```
The example here [Chaining API requests with API Gateway
Demo](https://github.com/Boburmirzo/apisix-plugin-pipeline-request-demo) works
only if the 1st call is a GET with not query-string and the 2nd call manipulate
the response. What if the 1st call is POST and a json request is sent?
That is why I'm trying to implement in 2 plugins but in the same route.
However, now I'm stuck and I can not be able to execute the `api1_plugin`
firstly and `api2_plugin` later. I've followed the recommendations [Plugins
execution
order](https://docs.api7.ai/apisix/key-concepts/plugins#plugins-execution-order),
changed the priority, the phase and always the plugin that implements
`function _M.access(conf, ctx)` is executed.
Am I missing something?
How I can execute sequentially different plugins configured in the same
route?
Any recommendation here is appreciated.
Regards.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]