Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have an application developed in PHP + MYSQL using CodeIgniter. Currently we have about 3000 active users using the application daily, we have around 130,000 pageviews per day. The system does not use many resources, which is most commonly used is HTTP and reading / writing in MYSQL. My question is: What is the best instance to be hired at Amazon? What setting do you suggest me? An important we are to the brand alcaƧar 50,000 users in the next six months.
The best instance is the one you can afford that isn't overloaded when busy. You should be monitoring CPU load and memory usage using a tool like Munin to be sure you're not running out of headroom.
If you're using Amazon RDS to handle your database, you can add multiple front-end web servers to handle the load.
There's no magical size that works "best", but the c1.medium is pretty good value.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I have a website (Laravel + Mysql on top of 'dedicated server') where I save all the pages that every user sees for reporting.
My site is visited 10,000 times a day and this statistic makes the database size bigger after a few months. now 'visits' table occupied 85% of whole database!
Is there a way to do this that is the best way possible?
I have not encountered this problem before, but I think its better to take the logging with this much of heavy load out of primary database, you can move it to a file system or logging services (read this).
Or you can have job (background process) to remove the logs that you don't need Like logs from a month ago, this will help db a little bit.
Read some best practices
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm currently optimizing an application's login process' caching and I'm thinking of using a File based approach, but I'm not so sure if it's the best when it comes to speeding things up. So among the following approach, which would greatly improve my application?
PHP_SESSION
Filebased(physical file)
PDO_Database
FTP
Anything that touches files is less optimal for caching than when staying in memory. Respectively anything that goes via a network is generally even slower. So when it comes to speed you're probably best off using the PHP_SESSION.
Do note however that because it is memory based you also lose the cache when the application or the server is restarted. If this is undesired you should probably go for a file based solution.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I had searched by google and this forum-search and I didnt get any about this so I propose a new topic: WordPress with the ability to fight with Ad-Blocker.
I am not an IT guy (subsea engineer) but I am having website with about 100 - 200 unique visitor/day now (according to adsense) as hobby (1%-4% using ad-blocker - I am lucky to have these ~97% my visitors).
I just learn that ad-block users are about 300 mil and it is a huge problem to big publisher (they earn money from ads). Ad-blocker using bandwith, upload data to their server and some (one of them - I expect more of them) sell the data as anons.
In accordance to the above idea,
I have a question as a-non IT guys, is there a way to make WordPress to tackle ad-blocker (auto)?
It may be a way to disarm ad-blocker. My website is like my home/house. You/Visitors can visit but please consider the owner.
No from what I can tell, it keeps a list of servers which are used to serve advertisements. Whenever you visit any website, the web browser has to fetch the components from the various servers. Adblock simply blocks the connections to any item on its list of ad servers, thus blocking all or most ads. The list of servers has to be updated ever so often which it does in the backend.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a website run by php. I have about 80 users that will be signing up within a hour period.
my question is are there any problems that could occur when having lots of people accessing my database all at once?
I mean 80 users is a lot for me, and if some of you people that have way more than that are laughing at me, how many people would it take to mess up a database?
Thanks in advance!
You could use a tool like apachebench to check. Then you could use tools like memcached (or memcachedb if you needed persistence) to dial down the mysql queries. I would also set up mysql slow query logging.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm supposed to write a PHP backend that handles a multiplayer game for Android and iOS where users from both platforms to be able to play together.
I'm new to sockets in PHP, and couldn't find any case where a PHP backend was used to handle this type of services, the question is, if it's not PHP that we need then what? what server handle these types of games?
This type of use case falls right into the sweet spot for node js because of its impressive abilities to handle sockets and concurrency. If it is possible to switch over to node I strongly recommend it. If you're stuck with php your options are pretty limitted. Two of them are Ratchet and PHPdaemon