I am developing openfire plugin and facing some performance issues.
My question is which type of plugin integration is fastest.
- PacketInterceptor
- IQHandler
- Component
- Other?
i am using packet interceptor and thinking about switching to IQHandler and send messages via $iq (not $msg). Is it OK to use $iq for sending messages?
Current performance problem is after some time openfire responds very slowly (after 10-20 seconds), i have pubsub module started.
After some observations i found that server dramatically slows if big messages are transferred ( html templates or big json string )
After investigation i found that html files and other “big” json is not big actually.
Problem is related with browser. Browser limits connections so it slows down on client side.
For testing purposes i used different browsers at same time (chrome, firefox, safari)