Keep app responsive during long task

后端 未结 10 2176
逝去的感伤
逝去的感伤 2020-12-09 13:57

A certain form in our application displays a graphical view of a model. The user can, amongst loads of other stuff, initiate a transformation of the model that can take quit

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 14:31

    Process asynchronously by sending a message to a queue and have the listener do the processing. The controller sends an ACK message to the user that says "We've received your request for processing. Please check back later for results." Give the user a mailbox or link to check back and see how things are progressing.

提交回复
热议问题