am working on a E-commerce project which has internally four projects(parts).
1.) core -has users info
2.) cms-contents info
3.) oms-orders info
4.) wallet-payment info
Used:-
UI-AngularJs
Backend-java
we have multiple REST API calls one after other to same domain(with different path and query parameters).
What are the ways that I can optimize api response time.
Suggestions for java and AngularJs is welcome,rather than caching give me more suggestions that i can use to optimize response time of api's.
Appreciated!!!
I have found same question on stackoverflow How to Optimize REST API calls ,answer is helpul but found no best solution for me.
Try using the below configurations for Java-spring projects :
# Enable response compression
server.compression.enabled=true
# The comma-separated list of mime types that should be compressed
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
# Compress the response only if the response size is at least 1KB
server.compression.min-response-size=1024
# Enable HTTP/2 support, if the current environment supports it
server.http2.enabled=true