So, I am not expert at Node.js, but from what I was looking at with Node.js it seems possible.
I am trying to cache data (A and B below) on the client (client 1 below) so that I can get that data on the event of a cache miss on the server rather then going to the database to retrieve the data. Ultimately, I would like to have a java script on the client that communicates with node.js to accomplish this.
I am trying to reduce my cache size on the edge server and decrease my source server load, by utilizing client storage / communications with node.js
Scenario: Data A and B; Client 1 and 2, and edge server
- Client 1 requests A, and is sent A and B
- Client 2 requests B, and the edge server doesn't have B in the cache.
- Client 1 is still connected, So using Node.js server push, B is retrieved from Client 1 and sent to Client 2.