Skip to main content
September 22, 2021
Question

Process model - Web Api

  • September 22, 2021
  • 4 replies
  • 0 views
Good morning,

We have the need to set up an integration to call us and return a response from a file.

We are creating a WebApi that receives an XML and raises a processModel, does the validations and returns the response.

The problem is when we have to make that it does not exceed 20 seconds. We are putting a control timer, but this timer makes that when calling the WebApi it finishes without waiting the 20 seconds.
Thank you
Alex

4 replies

stefanhelzle0001
Brainy
September 22, 2021

Can you share the model?

I assume you have some chaining. A timer will always break the chain.

Why do you need to restrict the time to 20 seconds? What happens when it takes longer?

September 22, 2021

Can you share the model?

Why do you need to restrict the time to 20 seconds, what happens when it takes longer?
The response time ends, if you don't get it in 20 seconds it is no longer optimal.

stefanhelzle0001
Brainy
September 22, 2021

OK. A time breaks the chain. If the API shall return a value that is created after the timer, this will not work.

I still do not understand what this 20 seconds restriction is about.