本文介绍了在REST中处理同步请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在处理一个任务,以处理客户端和服务器之间的同步,客户端与REST端点进行通信.在以下情况下出现问题,

客户端有一个大对象(例如10 MB)要与服务器同步,因此我必须序列化该对象,然后将其拆分为两个(例如5 MB).所以现在我可以将第一部分发送为帖子,然后发送第二部分,但是我的问题是,由于这两个部分只是两个单独的REST请求,因此无法在服务器上进行组合.如果有人可以提供解决方法的线索,我将不胜感激.或真的有可能吗?

预先感谢.:)

Hi ,

I''m working on a task to handle synchronization between the client and server,client communicates with a REST endpoint . I got a problem in the following scenario ,

client has a large object(e.g. say 10 MB) to sync with server, so I have to serialize the object and then break it into two (e.g say 5 MB). so now i can send the first part as a post and then the second part, but my problem is since these two parts are just two separate requests for REST, they cannot be combined at the server. I really appreciate if anyone can give a clue how to handle this. OR really is this possible ?

thanks in advance .:)

推荐答案



这篇关于在REST中处理同步请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 19:08
查看更多