Answer the question
In order to leave comments, you need to log in
What is the best way to write a shop?
Who has experience in writing? Tell me, please ...
I read that the fastest (productive) language is:
1. c++
2. js
3. php
(of course, there were others, but they are not interested) I
want to write in c++ .. .but honestly, I don't know how well it fits these purposes.
js, of course, is better suited, but it can be turned off. and that's all... perhaps php is slow, but it's hard to stop it)
The question is, does c++ not have the same problem as js?
And should I write on it... or leave the old store in php with sajax?
He seems to be normal and doesn't eat much, and he's fast... but maybe it's because of the powerful server... and when the load is 5000 requests per second, he will fall ..
Server:
Processor: Intel Core i7-4770K x2 RAM
: 8gb(ddr3) x4
hard drives: sas(15000rbm) 320gb + sata3(7200rbm) 500gb x2
connection speed 100mb/s x2
can, because of it everything is fast...
Answer the question
In order to leave comments, you need to log in
c++ will increase performance (although not a fact, if they write crookedly, it will be even worse), but you don’t need it now, you’ll only lose time and money for revision.
When your online store has 5000 requests per second (and this is about 0.5-1 million users per hour, this is the load of the Ozone level), then, firstly, it will be pleasant, and secondly, you will already have the resources to hire professionals and scale properly.
Usually the bottleneck is access to the database. Use proper caching and database query optimization.
If you now have a store in php, and cope, then do not rewrite anything, it is better to invest your time and effort in promoting and debugging business processes.
with c++ you will go broke on project support. If you really want the speed of a compiled language with static typing - golang. It's just web oriented.
you have a mess in your head. we are now discussing server js or what? because there are no alternatives for the client. And on the server, the user cannot disable anything ...
My advice to you is to hire a freelancer, and let him decide what to start with.
it uses apache 2.4.7 + ngenix1.5.7 (for statics)
php 5.6
mysql 5.5
and a question about caching ... how best to implement it?
for frequently requested files...
using Sphinx+php+mysqli to search with output... then the speed is high, even very...
Yes, you are right, there is porridge in my head... it hurts in the morning, but we are not talking about it)
as I understand it, you offer php replace golang...? thanks for telling me about golang, I’ll read it a bit later..
No, it’s purely php on the server ... you misunderstood ... js on the client to minimize the load on the server, and traffic .. the server side will be completely rewritten, so such a question arose ..
About the fact that js is client-side, I know .. but whether it has alternatives or not, I don’t know.
The question is initially different... will c++ improve performance or not?
Thank you for your answers =)
Maybe in truth I created this question in vain.
You can create a check for js support and redirect the user based on this.
1. If off or not supported, then let the server do everything for it.
2. A good user ... Well, everything is clear here .. Use the server at a minimum.
Who uses local storage?
Should I choose it or a regular cache?
If you have any questions, write, I will be happy to help =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question