Answer the question
In order to leave comments, you need to log in
How can two unrelated Wordpress modules - Laravel communicate inside the Nginx server and make it fast?
There are unrelated php modules located on the same server in different docker containers, they communicate via api. So, if you make a request from php from one module to another using curl, for example, then in fact we get a full-fledged http request, the time for which is 150 ms (where 100 ms are communication costs), which ultimately gives a long time to load the main page.
This is probably the case with public services, which is why pages take a long time to load there, and we cannot afford this, speed is a priority for us.
Is there a ready-made solution or ready-made methods for how such loosely connected modules can communicate with each other? To get it done quickly? Maybe there is a solution based on nginx or inside php?
For example, a server on nginx, dockers are different, one wordpress docker accesses the Laravel rest api module, which is in a neighboring docker container
Answer the question
In order to leave comments, you need to log in
Choose any IPC. I would choose either Unix socket or shared memory or memory mapped files
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question