HTTP requests from Node server vs Angular appIs an entity body allowed for an HTTP DELETE request?HTTP GET with request bodyHow is an HTTP POST request made in node.js?HTTP Request Redirection in angular and node/expressAngular app $http request to node app on localhostSend response from server side axios request to React/Redux appAxios request from express app missing argumentsCross-Origin HTTP Request originating from server-side NodeJS/Axios/JSDOMRequesting data from a React AppHow to pass data from Node Server to Angular Service?

Cheap antenna for new HF HAM

How should I avoid someone patenting technology in my paper/poster?

US entry with tourist visa but past alcohol arrest

Automate tasks with Lambdas in java

pandas aggregate with dynamic column names

Exchange bounces mail because of one non existent recipient

How does one calculate the distribution of the Matt Colville way of rolling stats?

Can planetary bodies have a second axis of rotation?

Could someone please show me the steps of this sum?

Why are some of the Stunts in The Expanse RPG labelled 'Core'?

What did the controller say during my approach to land (audio clip)?

I feel like most of my characters are the same, what can I do?

Debussy as term for bathroom?

Is there any reason nowadays to use a neon indicator lamp instead of an LED?

Temporarily moving a SQL Server 2016 database to SQL Server 2017 and then moving back. Is it possible?

What can a pilot do if an air traffic controller is incapacitated?

Are actors contractually obligated to certain things like going nude/ Sensual Scenes/ Gory Scenes?

Can a Druid/Warlock multiclass use Voice of the Chain Master to speak through their familiar while in Wild Shape?

Do the villains know Batman has no superpowers?

The 100 soldier problem

Can someone explain to me the parameters of a lognormal distribution?

How to fix folder structure in Windows 7 and 10

Resolving moral conflict

Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?



HTTP requests from Node server vs Angular app


Is an entity body allowed for an HTTP DELETE request?HTTP GET with request bodyHow is an HTTP POST request made in node.js?HTTP Request Redirection in angular and node/expressAngular app $http request to node app on localhostSend response from server side axios request to React/Redux appAxios request from express app missing argumentsCross-Origin HTTP Request originating from server-side NodeJS/Axios/JSDOMRequesting data from a React AppHow to pass data from Node Server to Angular Service?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















we are a team of junior developers developing a new web application with Angular 7 using EAN (Angular Node Express) stack.



We have to hit around 20-25 REST endpoints to get data, perform some manipulations and display the data on the UI page.



How do we make those HTTP calls? Will it be more convenient to make HTTP calls from the Node/Express server (using axios), get the data, manipulate it and send it over to the Angular app. The Angular app will just have one endpoint call to make (to the Node/Express server) to all the data.



Or



Can I just make those 20-25 requests from Angular app and not involve Node/Express in the first place?



What makes more sense as I will be making 20-25 requests anyhow? Which approach would be faster?










share|improve this question
































    0















    we are a team of junior developers developing a new web application with Angular 7 using EAN (Angular Node Express) stack.



    We have to hit around 20-25 REST endpoints to get data, perform some manipulations and display the data on the UI page.



    How do we make those HTTP calls? Will it be more convenient to make HTTP calls from the Node/Express server (using axios), get the data, manipulate it and send it over to the Angular app. The Angular app will just have one endpoint call to make (to the Node/Express server) to all the data.



    Or



    Can I just make those 20-25 requests from Angular app and not involve Node/Express in the first place?



    What makes more sense as I will be making 20-25 requests anyhow? Which approach would be faster?










    share|improve this question




























      0












      0








      0








      we are a team of junior developers developing a new web application with Angular 7 using EAN (Angular Node Express) stack.



      We have to hit around 20-25 REST endpoints to get data, perform some manipulations and display the data on the UI page.



      How do we make those HTTP calls? Will it be more convenient to make HTTP calls from the Node/Express server (using axios), get the data, manipulate it and send it over to the Angular app. The Angular app will just have one endpoint call to make (to the Node/Express server) to all the data.



      Or



      Can I just make those 20-25 requests from Angular app and not involve Node/Express in the first place?



      What makes more sense as I will be making 20-25 requests anyhow? Which approach would be faster?










      share|improve this question
















      we are a team of junior developers developing a new web application with Angular 7 using EAN (Angular Node Express) stack.



      We have to hit around 20-25 REST endpoints to get data, perform some manipulations and display the data on the UI page.



      How do we make those HTTP calls? Will it be more convenient to make HTTP calls from the Node/Express server (using axios), get the data, manipulate it and send it over to the Angular app. The Angular app will just have one endpoint call to make (to the Node/Express server) to all the data.



      Or



      Can I just make those 20-25 requests from Angular app and not involve Node/Express in the first place?



      What makes more sense as I will be making 20-25 requests anyhow? Which approach would be faster?







      node.js angular rest axios mean-stack






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 21:50









      Marlorn

      3312 silver badges14 bronze badges




      3312 silver badges14 bronze badges










      asked Mar 28 at 14:51









      Pritam BohraPritam Bohra

      8531 gold badge11 silver badges35 bronze badges




      8531 gold badge11 silver badges35 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          Both solutions have pro and cons.
          Personally, I would focus on my Angular components which are supposed to be agnostic of everything's around them.
          Imagine you have 3 components which all need to perform HTTP calls to feed their datas.
          In this configuration, I would recommend to let all each component perform their own calls. This way, they'll stay independants from each other.



          On the other hand, if a component needs to perfom multiples calls, maybe it could be interesting to merge them into one request and let your API do the job.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55400581%2fhttp-requests-from-node-server-vs-angular-app%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0
















            Both solutions have pro and cons.
            Personally, I would focus on my Angular components which are supposed to be agnostic of everything's around them.
            Imagine you have 3 components which all need to perform HTTP calls to feed their datas.
            In this configuration, I would recommend to let all each component perform their own calls. This way, they'll stay independants from each other.



            On the other hand, if a component needs to perfom multiples calls, maybe it could be interesting to merge them into one request and let your API do the job.






            share|improve this answer





























              0
















              Both solutions have pro and cons.
              Personally, I would focus on my Angular components which are supposed to be agnostic of everything's around them.
              Imagine you have 3 components which all need to perform HTTP calls to feed their datas.
              In this configuration, I would recommend to let all each component perform their own calls. This way, they'll stay independants from each other.



              On the other hand, if a component needs to perfom multiples calls, maybe it could be interesting to merge them into one request and let your API do the job.






              share|improve this answer



























                0














                0










                0









                Both solutions have pro and cons.
                Personally, I would focus on my Angular components which are supposed to be agnostic of everything's around them.
                Imagine you have 3 components which all need to perform HTTP calls to feed their datas.
                In this configuration, I would recommend to let all each component perform their own calls. This way, they'll stay independants from each other.



                On the other hand, if a component needs to perfom multiples calls, maybe it could be interesting to merge them into one request and let your API do the job.






                share|improve this answer













                Both solutions have pro and cons.
                Personally, I would focus on my Angular components which are supposed to be agnostic of everything's around them.
                Imagine you have 3 components which all need to perform HTTP calls to feed their datas.
                In this configuration, I would recommend to let all each component perform their own calls. This way, they'll stay independants from each other.



                On the other hand, if a component needs to perfom multiples calls, maybe it could be interesting to merge them into one request and let your API do the job.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 15:09









                Hadrien DelphinHadrien Delphin

                3083 silver badges13 bronze badges




                3083 silver badges13 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55400581%2fhttp-requests-from-node-server-vs-angular-app%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript