Server
Në shqip: Server
ShpjegimiSQ
Serveri është një kompjuter (ose program) që pret kërkesa dhe u kthen përgjigje kompjuterëve të tjerë. Kur hap një faqe interneti, shfletuesi yt ia kërkon faqen serverit dhe serveri ta dërgon.
EnglishEN
A server is a computer (or program) that waits for requests and sends responses back to other computers. When you open a website, your browser asks a server for the page and the server sends it over.
Si ta mendosh
Si shitësi në furrën e bukës: qëndron aty gjithë ditën duke pritur klientë. Ti kërkon një bukë, ai ta jep — dhe kështu me radhë, një klient pas tjetrit.
Lexoje në anglisht
Like the person behind the counter at a bakery: they stand there all day waiting for customers. You ask for bread, they hand it over — and so on, one customer after another.
Shembull kodijavascript
// Një server i thjeshtë me Node.js
const http = require("http");
http.createServer((kerkesa, pergjigja) => {
pergjigja.end("Përshëndetje nga serveri!");
}).listen(3000);