Jump to content

Pros and Cons of batch request with angularjs


Girish Dubey

Recommended Posts

I am going to develop optimize web site. The problem with 200-250 AJAX calls for different values on loading. that's why i have selected angularjs-http-batch request to get values.

 

So, Can you suggest me pros and cons of batch request?

Edited by Girish Dubey
Link to comment
Share on other sites

I would look into why that many AJAX calls are needed at all. That seems excessive even for a site that deals in big data, as their challenge would be in keeping the response quick and small. Others will look into technologies like Falcor or GraphQL, but still, that's a lot of requests. I would start with reviewing the architecture that requires that many calls in the first place.

Link to comment
Share on other sites

That's way too many requests, you need to rethink your requirements. What's causing so many different requests?

 

AngularJS is intended for browser applications, if what you're making is website then I would advise against using AngularJS.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...