Better HN
topnewbestaskshowjobs
Log inSign up

nonamegdsa

8 karma · joined Apr 27, 2016 (10y ago) · 4 submissions

Submissions

comment 10y ago · link · parent

Broken on Chrome on Samsung Galaxy S5.

comment 10y ago · link · parent

I still don't understand what point you are trying to make. Surely you must agree that the number of requests per second your server will depends on what the server is doing? If your operation calls a DB or calculates something and that is heavy, then your db or internal calculation service might run out of resources. I'm not sorry, but your lack of experience with large scale systems is visible.

comment 10y ago · link · parent

If the request is performing heavy calculations you will see fever req/sec obviously.

Say an API call spins up a Linux VM and makes it available some user. Or a bulk upload of data which needs to be indexed. Or whatever.

The idea that a site should be able to handle X requests/sec because the stack can handle X NOOPs per second is odd.

comment 10y ago · link · parent

Is this construct commonly used in swift or is it an edge case? I've seen people referring to it as an edge case, but at the same time this is code which I find my self writing pretty often in other languages, for example when initializing data for unit tests.