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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현