Hey everyone, would custom transformations work if...
# support
m
Hey everyone, would custom transformations work if I’m using an API endpoint with a per-minute rate limit?
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hey @Amir Selim can you expand on that? are you hitting an API endpoint from within the transformation?
m
Yup
It has a rate limit of 100 calls per minute
Just wondering if that would be problematic if there were a scheduled event sync with a significant number of events
h
@microscopic-market-76070 depending on your load yes - you will prob need a queue of some sort to be able to process them outside of rudder when you can control flow+retries
no easy way to control throughput/flow in transforms
👍 1
m
Haven’t been able to find anything on controlling event flow, just writing custom functions on a per-event basis. Is that anywhere in the documentation?
h
I mean there is no way currently in rudder transforms to do that
so you will need to find an alternative solution - depends how important this api call+augmentation is
if you get 1000 events in quick succession even if you delayed the transform execution by calling an api that you host that adds a delay its very problematic/unsafe
m
Got it, thank you!
Actually, wanted to clarify — it’s 100 calls per second. Would that still be problematic, even with a short delay?
h
again - what if you get 1000 events in a second
every second
you need to look at your throughput - can you estimate this to good effect?
if its spikey you could probably use a random api to hold up things then carry on
can you get another key for this api that gives you another 100 per second
m
Not sure, but thank you for the help!
h
@gentle-petabyte-80785 another valid candidate, some sort of debounce in a transform
🙌 1