Skip to content

multi-server support #86

Answered by amnuts
p5ych0 asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting question @p5ych0 and not one I've thought of before now. Off the top of my head, you could use the Amnuts\Opcache\Service class with an endpoint over the top of it which has an endpoint that returns the contents of the compileState method call. You'd then have to change the main GUI script so that instead of using $opcache = (new Service($options))->handle();` you'd go to each of your services, get the results and amalgamate them for output.

Of course, that has a bunch of issue to resolve such as what if there are different directives? How would you know what server the results came from? How would you invalidate anything in the cache (because you'd need to know which server)?…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by amnuts
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #70 on July 13, 2022 21:36.