Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^11: Reverse download protocols

by marto (Cardinal)
on Aug 30, 2021 at 19:32 UTC ( #11136247=note: print w/replies, xml ) Need Help??


in reply to Re^10: Reverse download protocols
in thread Reverse download protocols [solved]

"I added one more edit to my question to make this crystal clear. I thought it was already."

With respect the question posted was not at all clear in explaining the problem you are trying to solve, hence several confused people asking for clarification.

Replies are listed 'Best First'.
Re^12: Reverse download protocols
by jdporter (Chancellor) on Aug 30, 2021 at 20:16 UTC

    And despite his (best?) efforts, I still have no idea what he's actually trying to accomplish, or why he's suggesting that the client play a guessing game with the server.

      Imagine you have to pay for each bit of data sent from the server 1 perlilion dollars, while you don't pay anything for the data sent to it. Is this explanation down to earth enough for you?

        There are delta transfer algorithms (see rsync and librsync) where the client updates a local file according to the difference sent by server. They use rolling checkums to only transfer the differing bits. There's BitTorrent where the client knows the checksum of each fragment of the file and only asks the server for the chunks that it doesn't have yet. Both of these methods require some kind of prior knowledge on the side of the client.

        There are domain-specific data compression methods that may outperform generic lossless compression methods. For example, if you want to store an m by n matrix and know for sure that is has a low rank p, you can use truncated SVD and only store two much smaller m by p and p by n matrices, then compress the residuals (supposedly small normally distributed noise) using arithmetic coding. You can also train an autoencoder neural network and hope it's sufficiently smart to figure out whatever structure your data has. These methods require the data to follow some kind of model in order to compress the data well.

        Either way, you cannot compress the data below its information content. If you're transmitting pictures of a street light and all you care about is whether it's on, you can transmit one bit instead of the whole picture. But if these are going to be pictures of different street lights and every aspect of them is going to be important, including some you can't predict in advance, this adds up to many bits which you can't avoid transferring. In this case, you probably won't outperform generic image compression methods.

        Perhaps if you're more specific (what's your actual use case?), we may be able to offer better advice than that.

        Ok... Then have the client send up a fully elaborated specification (or query). Presumably the client and server at least both know the space of "questions"; the client can "answer" all those questions up front, without being asked. What kind of data are we talking about downloading?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11136247]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-01-19 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?