Skip to content

Instantly share code, notes, and snippets.

View daniel-woods's full-sized avatar

Daniel Woods daniel-woods

  • Amazon
  • Dublin, Ireland
View GitHub Profile
@daniel-woods
daniel-woods / aws_polling_threading.py
Created April 22, 2019 12:27
Poll AWS APIs faster using multithreading
#!/usr/bin/env python
# Multi threading way to query AWS regional APIs.
# A lot faster than synchronously polling each region one-after-another.
import boto3
import threading
from time import sleep
logs = []