Mod_rewrite, RewriteMap, RewriteLock and Streams

I have RewriteMap configured to use an external application to rewrite the incoming URL. It works great. Now I'm worried about threads and performance. Is there a way for an external application to handle multiple requests? Now we use RewriteLock, so that only one thread at a time sends a request to an external application, but this seems like a performance bottleneck.

Any guidance would be greatly appreciated. Thanks

+6
java performance multithreading apache mod-rewrite
source share
1 answer

I found this interesting article with apache developer: http://www.webmasterworld.com/apache/3124928.htm

The bottleneck effect is not afraid of them. If your mapping program is fast, it should be fine. Perhaps you can check if this "bottleneck" effect exists.

Blocking is used to prevent thread requests at the same time using stdin of your prg. It’s hard to change the way you work.

I have never used rewriteMap this way, I prefer to use hash files with it. Is your internal redirection dynamics? If not, you can make a hash file.

0
source share

All Articles