Announcement Announcement Module
Collapse
No announcement yet.
Optimize HttpInvoker for transporting large objects over low bandwith http connection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Optimize HttpInvoker for transporting large objects over low bandwith http connection

    Hi there, I am currently maintaining a legacy java desktop application which communicates with a Spring server application through HttpInvoker.
    One of the features of the client app is the possibility to upload and store files on the server, which means that sometimes very large objects are transported over http.
    Now there is a problem : some desktop clients are separated from the server by an ocean and network traffic goes over a relatively low bandwith internet connection. This causes frequent timeouts when large objects (like upload files) are transported from client to server.
    I could increase the timeout value, but this would also result in users being belatedly notified of connection problems (or server unavailability).

    I would like to know if there is any way to optimize or improve the communication using standard Spring functionality.
    E.g. dynamically adjust the timeout period for large objects ?

  • #2
    You can override HttpInvokerServiceExporter.decorateInputStream(Htt pServletRequest request, InputStream is) to add compression.

    Cheers

    Comment

    Working...
    X