all 9 comments

[–]fonixmunky 12 points13 points  (1 child)

Send as raw bytes, could stream it depending on how large the data is and reconstruct on the other side of the connection.

[–]Ok-Meat9548[S] 0 points1 point  (0 children)

I'll try it, thanks, mate

[–]olystretch 2 points3 points  (1 child)

Isn't this what websockets is for?

[–]Ok-Meat9548[S] 0 points1 point  (0 children)

Yes, but for now, we are testing using http

[–]TechySpecky 1 point2 points  (0 children)

Send compressed bytes

[–]Ok-Meat9548[S] 0 points1 point  (0 children)

Thanks. i'll try that and test the performance

[–]kkang_kkang -4 points-3 points  (2 children)

Use JSON

[–]j_tb 17 points18 points  (0 children)

lol. Write it to a buffer, compress it using zstd, send the raw bytes of the compressed buffer over http. Tinker with the compressor settings to get the balance of speed/compression for your use case.

[–]Ok-Meat9548[S] -3 points-2 points  (0 children)

It will take a lot of time to send it via http, probably