> Since we are storing the full length hashes , we wont be making call to GSB
> to get the hash every time when the positive match happens. I am assuming
> that will reduce the load on GSB also right?
The design is flawed, most of the time your client will never even get
to the stage of having to do a full-length lookup. Therefore its not
reducing any load on GSB, even if the client did do a full-length
lookup regularly, hammering GSB with 4000 requests at once could be
compared to a DoS attack (my firewall would block you for sure).
On Feb 22, 6:52 pm, Chetan prakash <
yoursche...@gmail.com> wrote:
> Thanks for the response.
>
> The way our system in designed , we have a cron job running that makes the
> call to GSB and updates the DB. Lookup is done by a separate component
> which accesses the same DB. For us the main goal is to reduce the lookup
> time , we are ok if the cron job that takes little more time.
>
> One more point to add here is , GSB does not give full length hash for all
> the add prefixes , it only sends full length hash for the prefixes which
> are just in add chunk but not in sub chunks, apart from the increase in the
> data storage is there any other demerits with this design.
>
> Since we are storing the full length hashes , we wont be making call to GSB
> to get the hash every time when the positive match happens. I am assuming
> that will reduce the load on GSB also right?
>
> Chethan Prakash
>
>
>
>
>
>
>
> On Wed, Feb 22, 2012 at 10:41 PM, Garrett Casto <
gca...@google.com> wrote:
> > So I still don't think I understand why you don't want to make calls to
> > our server during page load. Is it just for latency? We try to be very fast
> > on these hash completion requests, and generally have an end user latency
> > of 50-100ms. So as long as you send of the safebrowsing request and the
> > request for content at the same time, you should very rarely every be
> > slowing down page load. Last time I checked our stats in Chrome suggested
> > that this happens like 0.01% of the time. If it's for some other reason,
> > I'd like to know what it is.
>
> > On Wed, Feb 22, 2012 at 12:37 AM, Chetan prakash <
yoursche...@gmail.com>wrote:
>
> >> We are keeping the full hash also with the prefix in our local DB , as we
> >> donot want to make any further calls to GSB when we are doing the lookups.
>
> >> So we are requesting for full hash for all the prefixes that we get in
> >> one call of GSB, which sometime is more than 4000.
>
> >> Thanks
>
> >> On Wed, Feb 22, 2012 at 12:52 AM, Garrett Casto <
gca...@google.com>wrote:
>
> >>> 4000 is the limit. I'm not sure if this is documented anywhere, but we
> >>> never expected anyone to come close to hitting this number. The designed
> >>> use case is that this is sent per page load, so at most you would be
> >>> requesting the hash prefixes of every resource on a page. Why exactly are
> >>> you requesting 4000 prefixes at a time?
>
> >>> On Sun, Feb 19, 2012 at 11:56 PM, Chethan prakash <
yoursche...@gmail.com