there are two microservices, one in two cities. A service has an api interface open to provide data, and service B calls this interface with HttpClient from time to time to retrieve data. Tens or even hundreds of megabytes of data need to be transmitted at a time. My question is:
1 it is impossible for the body of a Http response to be tens or even hundreds of megabytes, so you need to divide the data into many segment, and send only one segment, at a time. How good is each segment?
2 how to ensure the reliability of transmission and how to set the mechanism of HttpClient retransmission?