dimanche 27 août 2017

Best technology for light weight web support for many wifi clients?

My application: Use (battery/solor powered) RasPi or similar hardware to provide lightweight web pages to many clients (phones or tablets). The concept is to allow users to leave or search for text messages (not actual SMS service, just short strings entered via a web form). However I'd like to support as many simultaneous clients as possible, up to 100 or 200 if possible.

I am wondering what sort of language/framework/database would support this model well. For example, one or two dynamic web pages provided by a single host application.

The web programming model I am most familiar with is a general purpose web server like Apache, running PHP connected to a relational database like MySQL; this does not seem like a good approach for this purpose - a hundred connections which happen to load the same script into 100 parallel tasks, an interpreted language, and a general purpose web server and database seem like too much overhead for limited RAM and CPU.

By contrast, I could imagine a single program handling 100 http connections using threads being much more resource efficient. A single copy of the code would be in RAM (and cache) all the time. A compiled language like C/C++ might be useful, but an efficient interpreted language which would let one code file service 100 connections would probably be OK. This would require a fast/lightweight web server or framework, and a small/efficient database (perhaps a key value store?).

Or perhaps the "program logic" could be in browser-resident javascript, accessing web services on a server, meeting the above criteria.

I don't even know what keywords to search for, for this style of web programming. I'm looking for suggestions and leads to follow up.




Aucun commentaire:

Enregistrer un commentaire