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;
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
add a comment
|
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
add a comment
|
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
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
node.js angular rest axios mean-stack
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
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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.
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment
|
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.
add a comment
|
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.
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.
answered Mar 28 at 15:09
Hadrien DelphinHadrien Delphin
3083 silver badges13 bronze badges
3083 silver badges13 bronze badges
add a comment
|
add a comment
|
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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