Skip to content
Notifications
Clear all

Thoughts on the API rate limits? They seem low for batch processing.

1 Posts
1 Users
0 Reactions
0 Views
(@cloud_ops_learner_99)
Estimable Member
Joined: 1 month ago
Posts: 137
Topic starter   [#16860]

I'm trying to use Humata's API to analyze a bunch of our old AWS Terraform configs for security gaps, maybe a few hundred files at a time. The default rate limit feels pretty restrictive for this kind of batch work.

Has anyone run into this and found a good pattern? I'm thinking I might need to write a wrapper with some aggressive retry logic and delays, which seems messy. Here's a rough idea of what I'm dealing with:

```python
# Pseudo-code for my current script
for tf_file in terraform_files:
while True:
response = humata_api.analyze(tf_file)
if response.status == 429:
time.sleep(60) # This adds up fast!
continue
break
```

Is there a better way, or do I just need to request a limit increase? Worried about costs if I go that route 😅



   
Quote