Sebastian Berglönn
Sebastian Berglönn

Reputation: 4278

HTTP request from server or client - Best performance?

I was thinking about what would be the best performance, or if it is any difference at all. As an example; If you use a MEAN-stack, would it be better to use the HTTP request that Angular has, or is it better to request from server with Request.js or any similar?

Upvotes: 0

Views: 164

Answers (2)

haotang
haotang

Reputation: 5698

client-server requests will be simplier & faster than client-webServer-apiServer requests definitely.

  • If your application is complex and need to separate the web layer and API layer, then client-webServer-apiServer should be your choice.
  • Otherwise, client-server architecture is just enough.

Upvotes: 3

P.S.
P.S.

Reputation: 16384

If default things to make http request are meet your requirements, I don't see the reason to use any other libraries. But it doesn't matter really, you can use any way you really like.

Upvotes: 1

Related Questions