These are chat archives for arenanet/api-cdi

9th
Dec 2018
Steven Liekens
@StevenLiekens
Dec 09 2018 20:59
I miss the days when the API didn't have rate limiting
it's a real pain in the neck
and a little lazy to be honest
instead of building services that scale, don't scale and make it the client's problem
Steven Liekens
@StevenLiekens
Dec 09 2018 21:04
but if you're gonna do rate limits, at least set them big enough so I can pull down all static data (items, recipes, colors etc) without hitting the limit or having to introduce artificial delays
end of rant
darthmaim
@darthmaim
Dec 09 2018 21:13
If you hit the limits with that, you are doing something wrong
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Dec 09 2018 21:13
¯\_(ツ)_/¯
Steven Liekens
@StevenLiekens
Dec 09 2018 21:14
well you can forget using the default page_size with the current limit of 600
darthmaim
@darthmaim
Dec 09 2018 21:15
you shouldn't use the default page size when you want everything
Steven Liekens
@StevenLiekens
Dec 09 2018 21:16
why would anyone want less than everything?
darthmaim
@darthmaim
Dec 09 2018 21:16
depends on what you are doing with the data
just because you want everything as fast as possible, doesn't mean everyone needs it
Every good api wrapper is providing methods to get all entries of an endpoint, using ids=all or the max page_size internally
thats nothing you have to deal with as a developer using the api
Steven Liekens
@StevenLiekens
Dec 09 2018 21:20
but even then you'd likely hit 600 requests before you have a full copy?
darthmaim
@darthmaim
Dec 09 2018 21:20
no
Steven Liekens
@StevenLiekens
Dec 09 2018 21:20
ok
not sure how that's possible
/v2/items alone makes up 271 of your 600 requests
darthmaim
@darthmaim
Dec 09 2018 21:22
yep
but all the other endpoints are tiny or support ids=all
Steven Liekens
@StevenLiekens
Dec 09 2018 21:27
/v2/commerce/prices is pretty big too
but I'll discount that since it's not static data
I do wish the limits were somehow client bound instead of IP bound
darthmaim
@darthmaim
Dec 09 2018 21:32
just load the data on the client then ¯\_(ツ)_/¯
Steven Liekens
@StevenLiekens
Dec 09 2018 21:33
yeah I'm doing everything in the browser
but I imagine two people on the same network would not be able to use my app simultaneously
I'll just ignore it