-
I am integrating roadrunner into my golang application to develop the application. Now I have a scenario: there is an http interface with a very large amount of concurrent traffic, and I want to take this part of traffic in golang, and then forward it to php for processing after some processing. Since the traffic is very large and there is no need to return a response, only the data needs to be processed, in order not to use the http worker, I want to directly send the message to the php queue worker for execution. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey @shellphy 👋 |
Beta Was this translation helpful? Give feedback.
-
I already know how to use it, okay |
Beta Was this translation helpful? Give feedback.
Hey @shellphy 👋
You may create a middleware, intercept a request, process, and return an empty response or do that in a separate goroutine. Here is a tutorial on how to write a middleware: https://docs.roadrunner.dev/docs/customization/middleware