Use Redis to rate-limit your low-code API

Nodes

a079cd9b-42d6-4b11-9121-cd3aba9d4c3b5ed6563d-c9a0-4665-ba05-812a04ee074d9dd572aa-e531-4ffe-a66c-58ac7003ac5d

Categories

Tags

Created by

HaHarshil Agrawal

Last edited 38 days ago

This workflow demonstrates how to can use Redis to implement rate limits to your API.

The workflow uses the incoming API key to uniquely identify the user and use it as a key in Redis. Every time a request is made, the value is incremented by one, and we check for the threshold using the IF node.

Duplicate the following Airtable to try out the workflow: https://airtable.com/shraudfG9XAvqkBpF

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!