1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
1
Hi,
You are right, http api does not have usage plans out of box, while as rest api type does instead.
You would need a handle it yourself. I would take inspiration from the built-in usage model and build it for your api. You could store the limits for your customers in a database(dynamo).
Then each time an api is called, you would check whether the rate limit is passed for a customer, if so the api would throw a 4xx error.
If limit is still below threshold, increment the limit counter.
You could implement those check in different flavors such as Lambda@edge, or api gateway backed by a step function with lambda steps performing the check and counter increments.
Hope this ideas can inspire you
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano