As part of a web-service say A, I need to call another web-service say B.
The response given to the caller of A shouldn't be dependent upon B i.e it should be returning the response back to the caller irrespective of the outcome of B, considering that B might take some time.
The systems calling A and B are both different. How do I achieve this?
Note: Using RESTful web-services/Java