How to handle long running web service operations?

前端 未结 2 1624
别那么骄傲
别那么骄傲 2021-01-02 02:35

I have to create a Java EE application which converts large documents into different formats. Each conversion takes between 10 seconds and 2 minutes. The SOAP requests will

相关标签:
2条回答
  • 2021-01-02 03:27

    Since this almost all done server-side, there isn't much a client can do besides poll the server somehow for updates on the status.

    #1 is OK, but users get impatient really fast. "A few minutes" is a bit too long for most people. You'd need HTTP Streaming to implement #3, but I think that's overkill.

    I would just go with #2.

    0 讨论(0)
  • 2021-01-02 03:27

    For 3 the server should return a unique ID back to the client and using that ID the client has to ask the server the result at a later time

    0 讨论(0)
提交回复
热议问题