On Fri 02 Aug 2013 08:39:01 AM CST, Brad Fitzpatrick wrote:
> Everything could be computed locally.
>
> That doesn't mean it should be.
>
>
>
> On Thu, Aug 1, 2013 at 5:37 PM, Tw <
tw198...@gmail.com
> <mailto:
tw198...@gmail.com>> wrote:
>
> Assume the answer can be computed locally, but isn't in cache yet!
> 1) Get calls lookupCache -- failed
> 2) load from peers -- failed
> 3) compute the answer locally and put it in cache -- succeed
>
> I think the step 2 should be after step 3 so the right sequence
> maybe 1 -> 3 -> 2.
>
>
> On Fri 02 Aug 2013 07:15:16 AM CST, Brad Fitzpatrick wrote:
>
> The main entry point is called Get.
>
> Get calls lookupCache (which sees if it's local already), and
> on miss
> calls load.
>
> So load is only called if it's not local already. Then it
> figures out
> which peer should be responsible for that key. Only if it
> finds no
> peer, or that peer fails, does it then try to compute the
> answer locally.
>
>
>
> On Wed, Jul 31, 2013 at 12:36 AM, Tw <
tw198...@gmail.com
> <mailto:
tw198...@gmail.com>