3 ms·
I don't know that there's a generally applicable answer if the api calls are direct from end user -> public api, and on infrastructure you don't control. The a
by tyingq 10y ago
I don't know that there's a generally applicable answer if the api calls are direct from end user -> public api, and on infrastructure you don't control.
The answers would be highly dependent on the specific service, and whatever capabilities they offer. Firebase, for example, has a concept of custom tokens where you could implement rules on a per-api-consumer basis.
There does seem to be an opportunity for CDN companies to offer an API gateway with throttle, scripting, oath, conditional caching, bot blocking, etc. I don't know why they haven't offered yet. A CDN hosted Tyk or Kong instance would likely be popular.
- ig1 10y agoThere's already companies like Mashape who offer these services.
- tyingq 10y agoNot at the edge. A combined CDN and API gateway would be unique and have benefits a hosted API gateway would not. For one, in this scenario, you would avoid the circuitous route from client to API gateway to 3rd party api, since the CDN would be close to the client.