Note that there are some explanatory texts on larger screens.

plurals
  1. POSend several GZIPs as a single http response simultaneously
    primarykey
    data
    text
    <p>First of all sorry for my poor English. Please let me explain my scenario first, I have data stored in Memcached as a group of gzip data. I call each a chunk of data. Each is loaded from the database, compressed and stored in Memcached in advance. This is done as a preparation process before the service can be available. (To reduce load on the database) </p> <p>My server code then simply fetches the gzip data from Memcached and then returns the gzip data immediately.</p> <p>From users's perspective, they can request any number of chunks at the same time. For example, assume that there are 10 chunks on Memcached, a user may request a single chunk, which in this case I can send back a gzip file as a response without any problem. But when a user requests a number of chunks at the same time, I simply don't know how to deal with it. Getting a number of chunks and compressing them as a single GZIP file is not a solution. I simple want to send requested gzip files simultaneously as a single request.</p> <p>My first thought is that I will load data from the database, and then store them in Memcached without compressing them. When a request comes in, I will get a stored data in Memcached and then compress it and send it back. But doing this is surely a waste of cpu cycle since the compression must be done every time the response is created. So I want a way not to compress them, just send them back immediately and the browser still understand what I send.</p> <p>If my question puzzles you, please let me know I will try to elaborate it. Because I really need helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload