Since javascript is single threaded and since I only know js , do I really need to know these things? Yes if I want to learn other non single threaded languages or am I really missing something in javascript?
edit : by the way I thought that concurrency is the same as parallelism , but after I saw your comment I am beginning to doubt that I know the strict definition of them .
It's one of those things you won't know you need it until you do. Eventually you're going to wander away from the shallow end of javascript. Without a good mental model of what's going on it's very easy to introduce subtle bugs, you'll get frustrated because this dumb code isn't doing what you expected it to do.
To me concurrency is the ability to complete any given tasks and perhaps switch between them. Parallelism is the ability to do all the tasks at the same time.
For front end work you don't have any choice. For servers we have a number of services in different languages. The node farm is able to hold its own. But most of the heavier stuff is handled by java & php.
I have no clue with backend. Are you saying that java and php are used together?
I think in front end with MVC if you are careful how you do it then js can scale in front end although I think I need more experience to validate this statement .
We have different backend servers. Most were originally written in php. Newer services are written in Java and node. I am not sure what you mean by scaling the front end with MVC. I can’t tell if you mean the classic scaling definition of being able to handle very large traffic or being able to build complex web application. The answer to both is yes. The former is a hardware solution, throw or spin up more server as you need them behind load balancers. The latter you use good libraries or framework.
6
u/croc_socks May 01 '20
Somewhere in this diagram I am hearing whispers of, "Concurrency is not parallelism, but it enables parallelism". It's a subtlety that's being missed. https://medium.com/@k.wahome/concurrency-is-not-parallelism-a5451d1cde8d https://www.youtube.com/watch?v=cN_DpYBzKso