I have two systems, which are communicating with each other.
Ideal state:
- SystemA makes
POSTto SystemB - SystemB is processing
createaction - SystemB needs update data in SystemA thus it makes
PUTto SystemA - SystemA updates relevant data
- SystemB finishes
createaction - SystemA receives
200response
But the problem is, that SystemA is waiting for end of POST action and is not answering to PUT from SystemB. Result is that SystemA is TimedOut and then PUT is processed correctly.
What could be the best and elegant solution? Should I move the POST action to the background job? Should I create new Thread for it?
edit: PUT is made via ActiveResorce and changes attribute of object in SystemA