I am developing an application which could be used in small networks where the external internet connectivity is slow.
My application will run on every host in that network and when I request a URL, it would search its own cache and caches of adjacent systems and if not found then search the external web. How should I go about implementing it? I have thought of something like:
- A port on every host to listen for caching requests
- An in-memory cache-table for every cached data
- Normal cache-search procedure
Any pointers to improve this architecture.