A
A
abalyasnikov2013-12-03 12:48:08
PHP
abalyasnikov, 2013-12-03 12:48:08

What are the arguments against the back-end for a mobile application in php?

We plan to write a backend for the system, which consists of three parts:
1) Mobile application
Calculation for 500k active users. Each of them makes 10-15 hits to the server per day. A persistent connection between the application and the server does not hold.
2) Interface for tracking statistics
There are fewer hits (1000 per day in total), the emphasis is on unloading from the database and processing a large amount of data.
3) Access to the VK server (API): approximately 20k hits per day.
The database is estimated in millions of rows, while it is difficult to calculate the exact number.
QUESTION:
Interested in programming language recommendations in the context of workload and potential scalability?
In general, any recommendations (what to look for) are welcome. If the description is not detailed enough, write - we will add it.

Answer the question

In order to leave comments, you need to log in

12 answer(s)
E
Eugene Mosyukov, 2013-12-03
@GeneMoss

If this is a commercial development, then use the PL that you know better.

D
Denis Ineshin, 2013-12-03
@IonDen

None :)

S
Sergey, 2013-12-03
Protko @Fesor

I use php to implement restfull api for mobile applications. The flight is normal. In terms of loads, there is not much difference, I'm afraid your main problem will be database optimization and caching.

A
Alexey Sundukov, 2013-12-03
@alekciy

Considering the PHP tag, I will assume that this language is the most famous. Write on it. 500kyu * 10-15 ~ 10M / day load is quite lifting for PHP even from one server.
I highly recommend that you immediately work out the API with mobile users and think over the architecture (at least at the level of the URL structure). Otherwise, you can run into a rake with updating the client and API versions.

C
Crash, 2013-12-03
@Bandicoot

Maybe NodeJS will work?

V
Vit, 2013-12-03
@fornit1917

The only argument against PHP in your situation may be that you know it worse than another language. But if you know PHP best, do it in PHP.
It's easy to scale - a balancer on nginx or HAProxy, behind which the required number of servers with PHP. In the case of scaling to several servers, you just need to keep in mind that if you use sessions, then you need to store them not locally in files.
The execution speed of PHP scripts can be increased by an accelerator (for example, APC).
As for the execution of long tasks in the background - you can run scripts by cron, you can use the queue manager (RabbitMQ, Gearman, ...).

A
Artur Smirnov, 2013-12-03
@artursmirnov

PHP is not a good fit for you if you plan to do SOA or worker queues. In PHP, it is difficult to implement services (in the sense, unterminated processes), and they turn out to be quite resource-intensive. Also, PHP is not very suitable if you plan to actively interact with the external environment - exec () decently loads the processor.

W
webbus, 2013-12-03
@webus

I would take Python + Flask + MongoDb

S
Sergeyj, 2014-12-22
@sayber

It is impossible, because there is a search. The same should be the head.
If not, what do you want? Ready options? Why the hell are you on the web then?
Do you want to write yourself? What is the problem then?
5 seconds to google search codepen.io/tmrDevelops/pen/myVwKE Do some digging
and get codepen.io/search?q=css+menu&limit=all&depth=every...

D
Denis Smirnov, 2014-12-22
@Groov3

Yes, of course you can.
Hold on: nettuts.s3.amazonaws.com/819_megamenu/demo/index.html

A
Azim Kurt, 2014-12-22
@Symphony

CTRL+U or F12
You can get by with one css and html.
Here is the link www.feko.com.ua/templates/feko/shop/default/css/st...

D
Dark19, 2014-12-22
@Dark19

Can you also tell me what you can think of when the menu is large (12 items, some with 2, 3 words) and even fits into 2 rows of 1200 pixels?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question