Hello!
I'm exploring the FX rates service in the sandbox env. And concerned a bit about the performance of the service.
Usually it takes around half a second to provide the response. Does the prod service provide the similar response time?
We have to process many thousands of presentments at one batch, so just also wondering if there's the ability with Visa API to get rates at smaller latency?
Thanks in advance!
Alexander
Hi Alexander,
Thanks for your inquiry. I just tried and got the response in a few milliseconds. Can you please provide the following inputs so we can check where the latency is ? Kindly check on your network latency as well.
1. Endpoint
2. Request Body
3. Response Header (include x-correlation-id)
4. Response Body
5. A breif description of your use case / application architecture on how it is being implemented. If you feel , you cannot share it on forum, kindly drop us a note at developer@visa.com
Thank you !
Jai
Hi Jai,
Thanks for quick response!
Few milliseconds sounds good, need to spot if it's related to slow internet connection to endpoint from my machine.
The inputs are following:
1. https://sandbox.api.visa.com/forexrates/v1/foreignexchangerates
2. {"destinationCurrencyCode": "EUR","sourceAmount": "100","sourceCurrencyCode": "USD"}
3. Response headers:
X-CORRELATION-ID | 1553015292_426_84_l73c036_VDP_ARM |
X-Backside-Transport | OK OK,OK OK |
Connection | keep-alive |
X-SERVED-BY | l73c036 |
X-Global-Transaction-ID | 689275873 |
Pragma | no-cache |
Date | Tue, 19 Mar 2019 17:08:12 GMT |
X-Frame-Options | SAMEORIGIN |
Strict-Transport-Security | max-age=2592000;includeSubdomains |
Cache-Control | no-cache, no-store, must-revalidate |
Expires | -1 |
#status# | HTTP/1.1 200 OK |
X-XSS-Protection | 1; mode=block |
X-Content-Type-Options | nosniff |
4. {"conversionRate": "0.8736000", "destinationAmount": "87.36"}
5. This request is made by SOAP UI (since it has convenient way to copy headers), but get same result with the Java app.
It's implemented the same way I found in the sample app "forex_exchange_rates_api" (using jks keystore and truststore).
The prod code is supposed to work in Google Cloud.
Thanks, Alexander
And the following headers are from the Java app client:
[Server: Apache, X-SERVED-BY: l73c004, X-CORRELATION-ID: 1553017945_792_94_l73c004_VDP_ARM, X-Backside-Transport: OK OK,OK OK, X-APP-STATUS: 200, X-Global-Transaction-ID: 553006847, X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, X-Content-Type-Options: nosniff, Strict-Transport-Security: max-age=2592000;includeSubdomains, Cache-Control: no-cache, no-store, must-revalidate, Pragma: no-cache, Expires: -1, Content-Type: application/json, Content-Length: 58, Date: Tue, 19 Mar 2019 17:52:25 GMT, Connection: keep-alive, Set-Cookie: ak_bmsc=F76985208A45D9EE74FFB879AE2FB953D9D4E0B6E30F0000592C915C35006F41~plnZrU4pccvAKeJIt3vzLPm8KkKwTyv+CpQ+dnLlTZoULCn3eWilugOM/XuJdRfF0Jm0jxPHUmu0QrDSFZFWe5UlYDXiezX7T7RusaeQWV8Pf6dmrdXXAHrl53gQNmb2/W4w/i7L8/45XxRPqxT3h9fmpVtJoGHCQ7e2ONkIQJpe9h0pdbFdjh4KZrjCZqrkSO5QvA4r2aCYWQPruajS2Q8c4qCeDcDztz7oaNQKgYORg=; expires=Tue, 19 Mar 2019 19:52:25 GMT; max-age=7200; path=/; domain=.api.visa.com; HttpOnly]
The Java client is backed with Apache HttpClient .
i think above given replies are quite satisfactory.Try them I feel this forum is extremelly intelligent and you can rely on this. i believe this forum won't disappoint you. thank you
Hi Alex,
For the above calls the max time it took from Visa's end is 355 milli second even though most calls are answered much faster than that. Kindly check the latency from your end as well.
Thank you !
Jai