Web Connection
REST's response times question
Gravatar is a globally recognized avatar based on your email address. REST's response times question
  Michele
  All
  May 17, 2019 @ 10:38am

I have a page (based on JAVA) that makes a serie of REST's calls. The REST server is written using WC. These calls ask to the REST to return a series of records taken from a PostgreSQL database. Every REST call makes a query (sometime obtains a single record and in other cases a series of records, but never more than ten each request). These calls are made subsequentially one after the other. I noted that the first two responses i receive are all under the second (0.02 or less). From the third times increase and reach one second for response.... If i change the order of execution of these calls the situation doesn't change.... the first two very fast and the slower... Is it normal ? Is there something i can change to make this situation faster on the REST side ? If the same function responds differently if called before i think that times don't depends on problems in the single function...

Suggests.... Thanks

Gravatar is a globally recognized avatar based on your email address. re: REST's response times question
  Rick Strahl
  Michele
  May 17, 2019 @ 12:57pm

There shouldn't be any difference except that if you're calling things very quickly you might be blocking the server and queuing? Do you have multiple instances running?

Best thing to do is test. Use a testing tool like WebSurge or even just a rest client like PostMan to send multiple requests quickly against your dev setup and see what happens and where the slow down is.

I don't see a reason that hte actual requests should perform differently, so it's likely in the way the servers are getting loaded up with requests.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: REST's response times question
  Michele
  Rick Strahl
  May 17, 2019 @ 03:17pm

I'm still working only with rest serxie running in file mode. I didn't run it as COM mode... Where can I find info about numbers of COM session I can execute on the same machine?

© 1996-2019