NODE .JS මචන් node js වගේ එකක් ඉගනගන්න මොකක්ද

Mr.Thor

Well-known member
  • Sep 26, 2011
    5,402
    3,777
    113
    Colombo
    ehema ekak na.. thamunta / team ekata confident tools / languages thama use karanna one.. JS tikak lesi and language eka flexible nisa ekata hoda ecosystem ekak build up wela thiyenne.. ML walata python wage.. hama ekema pros and cons thiyenawa



    express thama godak ma use wenne..



    podi podi individual project waladi nam awlak na.. habai loku team ekak ekka karana project wala thama types wala watinakama therenne.. es6 with node 14 wath liwwe naththam pissu hadenawa navigate kara kara code hoyaddi.. :oo:



    prettier / eslint
    mama mehe team 4 k lead and delivery balnwa, node team eke issues awama balanna wenwa. samahara callback tynawa, patta callback hell 🤦

    relative springboot team manage krna lesi, issues adui, awath resolve krna lesi. node js krna team ekata wada. anith eka nodejs digatama krpu ekekta threading kiyala denna gihin mata epa una 😁

    so nodejs is not a good language to start
     

    NEMISIS

    Well-known member
  • Nov 13, 2013
    11,403
    19,560
    113
    Colombo
    mama mehe team 4 k lead and delivery balnwa, node team eke issues awama balanna wenwa. samahara callback tynawa, patta callback hell 🤦

    relative springboot team manage krna lesi, issues adui, awath resolve krna lesi. node js krna team ekata wada. anith eka nodejs digatama krpu ekekta threading kiyala denna gihin mata epa una 😁

    so nodejs is not a good language to start
    දැං හැම ලැන්ග්වේජ් එකකම වගේ async wait එහෙම තියනවානේ, ඕවයින්ම පටන් ගනිපු එවුන්ට threading කියලා දෙනවට වඩා හොඳයි කට කපාගන්න එක.
    වෙලාවට මං C++/Objective C වලින් පටං ගත්තෙ, ඒවයෙ කරපුවා දැං එවුන්ට explain කරත් තේරුම් ගන්න බෑ.
     

    usa_nihaal

    Well-known member
  • Aug 24, 2021
    4,718
    9,001
    113
    උස්සන්ගොඩ
    mama mehe team 4 k lead and delivery balnwa, node team eke issues awama balanna wenwa. samahara callback tynawa, patta callback hell 🤦

    relative springboot team manage krna lesi, issues adui, awath resolve krna lesi. node js krna team ekata wada. anith eka nodejs digatama krpu ekekta threading kiyala denna gihin mata epa una 😁

    so nodejs is not a good language to start
    ehenam hoda language mokakda start krana kenekta...
     
    • Like
    Reactions: Dr Sue

    හෙළයෙක්

    Well-known member
  • Apr 26, 2014
    49,332
    100,184
    113
    ehenam hoda language mokakda start krana kenekta...
    ලැන්වේජ් එක නෙවෙයි කන්සෙප්ට් ටික ෆෝකස් කරල ඉගෙන ගන්න. එතකොට ලැන්වේජ් ඕනි වෙලාවක ඉගෙන ගන්න පුලුවන්. මුලින්ම පටන් ගන්න කෙනෙක් නන් මගෙ රෙකමන්ඩේශන් එක Java/C++ වගේ OOP ලැන්වේජ් එකකින් පටන් ගන්න කියන එක තමා. ඊට පස්සෙ වැඩේ ෆිට් උනාම ASAP Python/JS වගේ ලැන්වේජ් එකක් ඉගෙන ගන්න. ඊට පස්සෙ ඉතින් Go/Rust/C වගේ ලැන්වේජ් බලල තියාගන්න විශේෂ අවශ්‍යතාවක් නැත්තන් ඒක ඉගෙන ගන්න.
     

    Nanosudha

    Well-known member
  • Dec 28, 2012
    5,150
    4,909
    113
    මචන් node js වගේ එකක් ඉගනගන්න මොකක්ද යන්න ඕන PATH එක . මොනවද COVER වෙන්න ඕන .SPRING BOOT දැනට කර කර ඉන්නේ ඒ පැත්තට මාරු වෙන්න බැලුවේ
    ZTM la ge course eka karanna
     

    mahadana_muththa

    Well-known member
  • Jan 5, 2020
    2,090
    2,594
    113
    Man dan sse inne. Architect yanna plan eka. Kohomada wade karanne? mobile danata karanne. Android ios and hybrid. but php, laravel, codeIgniter, YII, spiring, hibernate angular nodejs python arawa mewa okkama wage karala tyenawa.
     

    HAneo

    Well-known member
  • Jan 30, 2007
    12,970
    29,168
    113
    Homagama
    මචන් node js වගේ එකක් ඉගනගන්න මොකක්ද යන්න ඕන PATH එක . මොනවද COVER වෙන්න ඕන .SPRING BOOT දැනට කර කර ඉන්නේ ඒ පැත්තට මාරු වෙන්න බැලුවේ
    Node Js itself not a Language. it's a technology.
    You all know JavaScript and it's a sort of client language. what they do it they got the jS (V8 Engine) native engine and create it they way it can access OS resources. (JS cannot access OS features from the Browser) and act like a Server

    It is being used on major flat forms like UBER , Netflix , Slack so actually it's a high end Endpoint server. basically you have to know
    And most of the Online Gaming platforms Heavily depends on Node

    1. java Script
    2. Rest API technology
    3. Basic HTTP Communication
     

    Draco Malfoy

    Well-known member
  • Feb 9, 2019
    8,433
    16,638
    113
    Malfoy Manor, Wiltshire, England.
    Node Js itself not a Language. it's a technology.
    You all know JavaScript and it's a sort of client language. what they do it they got the jS (V8 Engine) native engine and create it they way it can access OS resources. (JS cannot access OS features from the Browser) and act like a Server

    It is being used on major flat forms like UBER , Netflix , Slack so actually it's a high end Endpoint server. basically you have to know
    And most of the Online Gaming platforms Heavily depends on Node

    1. java Script
    2. Rest API technology
    3. Basic HTTP Communication
    ai machan just java, python, .net, dart wage thiyeddi javascript use karala hena watayak gahala system resource access hadagena oka karanna tharam hethuwa industry eke? javascript ma use karanna uwamanawatada?
     

    HAneo

    Well-known member
  • Jan 30, 2007
    12,970
    29,168
    113
    Homagama
    ai machan just java, python, .net, dart wage thiyeddi javascript use karala hena watayak gahala system resource access hadagena oka karanna tharam hethuwa industry eke? javascript ma use karanna uwamanawatada?
    To answer this question I have to write an Article :lol:

    But simply if you have ever worked on an environment like there are 100K or more Concurrent requests (For EX: let's imagine uber has 10k drivers. each driver update there GPS coordinates evert 1 second so customer can view where there Driver is. in this can a end point will hit basically 100K requests at same time. ) then Node JS eco system will handle Concurrency better than any other System. that is why larger systems used node for this purpose . same applied to online gaming platforms

    And it is support deployment on Linux better than other technologies. so it's a plus mark.

    Talking about Concurrency most people mix this with parallelism- parallelism kiyanne ube wade thread godakata kadala dena ekata. Concurrency kiyanne ekama thread eke task kipayak run karana eka. eka welawakadi eka task ekaka tikak karanawa. thawa welawakadi anik task ekaka tikak karanawa. so when you talk Concurrency Node JS will win for sure. parallelism kiyanne more than one thread so will need some high system resources to handle this
     

    Draco Malfoy

    Well-known member
  • Feb 9, 2019
    8,433
    16,638
    113
    Malfoy Manor, Wiltshire, England.
    To answer this question I have to write an Article :lol:

    But simply if you have ever worked on an environment like there are 100K or more Concurrent requests (For EX: let's imagine uber has 10k drivers. each driver update there GPS coordinates evert 1 second so customer can view where there Driver is. in this can a end point will hit basically 100K requests at same time. ) then Node JS eco system will handle Concurrency better than any other System. that is why larger systems used node for this purpose . same applied to online gaming platforms

    And it is support deployment on Linux better than other technologies. so it's a plus mark.

    Talking about Concurrency most people mix this with parallelism- parallelism kiyanne ube wade thread godakata kadala dena ekata. Concurrency kiyanne ekama thread eke task kipayak run karana eka. eka welawakadi eka task ekaka tikak karanawa. thawa welawakadi anik task ekaka tikak karanawa. so when you talk Concurrency Node JS will win for sure. parallelism kiyanne more than one thread so will need some high system resources to handle this
    damn, even that's complex to my stupid brain. o_O
    But now I really like to know more about the differences, Until now when people say about using node js for micro-services, in my mind I was like "why bother" but with your answer it changed to "that's interesting".
    I'll definitely read more about this now, if you have any good resources explaining the basics like "why node.js? over java, .net" please share. 😊
     
    • Like
    Reactions: HAneo

    HAneo

    Well-known member
  • Jan 30, 2007
    12,970
    29,168
    113
    Homagama
    damn, even that's complex to my stupid brain. o_O
    But now I really like to know more about the differences, Until now when people say about using node js for micro-services, in my mind I was like "why bother" but with your answer it changed to "that's interesting".
    I'll definitely read more about this now, if you have any good resources explaining the basics like "why node.js? over java, .net" please share. 😊
    Well Micro-Services ------ most of the time you think Micro-Services is a collection of interconnected Services that serves a System. so then an INDIVIDUAL Service is independent right (Every Service has it's own DB , In-Memory cache and other techs) . so then you can develop each service using different technologies. that is a core concept of Micro Services. let me give you and example.

    Let's say your system serves CRUD or reports. so there is no need of any fancy techs. just use Java or .NET end-point techs and implement that service.
    let's say you have a part of that system need to serve Static data. so use IN Memory Store or redis for that service
    Let's say you will need big concurrency like my previous example then use Node js for that service. So these services will exchange data via end points only and each service can be developed by people those are experts in their area.

    In order to feel the deference of .NET ,Node , Java Rest performance you have to do it practically. other wise you will only know it but never feel it. all i am saying is these technologies serves and used for different proposes
     

    Draco Malfoy

    Well-known member
  • Feb 9, 2019
    8,433
    16,638
    113
    Malfoy Manor, Wiltshire, England.
    Well Micro-Services ------ most of the time you think Micro-Services is a collection of interconnected Services that serves a System. so then an INDIVIDUAL Service is independent right (Every Service has it's own DB , In-Memory cache and other techs) . so then you can develop each service using different technologies. that is a core concept of Micro Services. let me give you and example.

    Let's say your system serves CRUD or reports. so there is no need of any fancy techs. just use Java or .NET end-point techs and implement that service.
    let's say you have a part of that system need to serve Static data. so use IN Memory Store or redis for that service
    Let's say you will need big concurrency like my previous example then use Node js for that service. So these services will exchange data via end points only and each service can be developed by people those are experts in their area.

    In order to feel the deference of .NET ,Node , Java Rest performance you have to do it practically. other wise you will only know it but never feel it. all i am saying is these technologies serves and used for different proposes
    thanks machan. that's valuable insight.

    I think I have to know more about the core reasons for the creation of node.js & why that's better for certain applications better than traditional backend languages.
     
    • Like
    Reactions: HAneo

    HAneo

    Well-known member
  • Jan 30, 2007
    12,970
    29,168
    113
    Homagama
    thanks machan. that's valuable insight.

    I think I have to know more about the core reasons for the creation of node.js & why that's better for certain applications better than traditional backend languages.
    First study streamlabs OBS desktop. it's a Live streaming platform uses over 40 Mil users as of today and uses Node Js
    Then look at the Firebase Functions. Most of the Firebase platform developed using Node Js Extended version.

    If you find more about those then you will get to know more about it
     
    • Love
    Reactions: Draco Malfoy