Skip to content

Commit

Permalink
Add throttling and rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Nov 5, 2023
1 parent 70192e6 commit 4bc263e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stacks/MyStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function API({ stack }: StackContext) {

const api = new Api(stack, "api", {
defaults: {
throttle: { burst: 5, rate: 50 },
function: {
bind: [bus],
},
Expand Down

0 comments on commit 4bc263e

Please sign in to comment.