Question

Hey guys. I need to write xmpp bot which will be receiving and sending about 2000 messages per hour (24/7 work time) and working with MongoDB (select, update queries). Is it bad idea to write it on php? What about performance if i'll use php 5.3?

Was it helpful?

Solution

I don't think 2000 messages per hour will be a problem at all even if your xmpp bot runs 24x7. I have experience with xmpp bots running for weeks without any memory leaks and millions of db writes during it's run time. Ofcourse your db write strategy (on the fly or aggregated write) will make an impact over amount of memory used by your php based xmpp bot.

OTHER TIPS

In almost every situation where a DB is involved, DB overhead is going to dominate script execution time. With 1 request every 1.8 seconds, using PHP will be just fine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top