Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You've already entered hell with the first sentence of this rant. It's just that you may not have noticed yet.
-
"i made one table store json strings and used it for every type of data"
...
...
...
sooo when someone asks you "how evil are you" - you just say "yes"? -
Don't tell me it's also single threaded.
Setting up an SQL database just to store unstructured JSON and access it from a single thread is the finest example of wasted effort I can imagine. -
sleek34482y@lbfalvy 😶...
well php is single threaded but i guess nginx would spin up a php process for each request 🤷🏻♂️ -
@sleek No it doesn't, at least not if you set it up properly, but it is a bit concurrent. PHP can be ran as a plain CGI script which spawns a new OS thread, or with FPM which manages a process pool. The idea is that if you already have as many processes as CPU threads and they're not all waiting on network responses from a different machine, spawning a new process will just increase lock contests and slow everything down so it's better to wait for one of them to finish.
-
@sleek Anyway, then at least you benefit from the concurrency of an SQL server.so it's not completely pointless.
-
Assuming of course that the website receives enough traffic for two requests to ever coincide.
Related Rants
-
ahmedam23What only relying on JavaScript for HTML form input validation looks like
-
isaacWeisberg21Me and my wife are software engineers Started dating while doing a project together I guess you could say that...
-
JMoodyFWD48My "Coding Standards" for my dev team 1.) Every developer thinks or have thought their shit don't stink. If y...
was developing a custom website for a friend, coz i primised him id do so.
but when i actually developed it i felt lazy midway so i made one table store json strings and used it for every type of data he has on his website.
everything works fine and fast, its nothing he would notice but...
am I going to hell?
rant
best practices
web development