Reputation: 1867
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?
Upvotes: 2
Views: 864
Reputation: 2651
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.
Upvotes: 1
Reputation: 1257
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.
Upvotes: 0