How to stream an image from Python to C++ using Apache Thrift -


How do I stream files using Apache Thrift? I have searched a lot about the thrift and did not find any well documented documents about it. Why did Facebook open this project without docs?

The way I would recommend it is to set up your service to distribute data of chunks For more information, visit: GetChunk (1: string processing, 2: IOF offset, 3: IOS size)} / Code>

It is a good idea to limit either size to some sensible values ​​(should be checked on server side), or size logic and everything Distribute a fixed, predefined pieces of pieces so that they can dismiss customers by asking for larger data blocks at large.

Note that the whole process needs to follow the bridge model, no built-in push feature. However, you can still push, you need to run a thrift server on the client side and pass the required connection information. Although it will not work in all scenarios (especially transports), it is a fully functioning solution, where this is possible.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -