[ SRE_ARENA ]
PYTHON COLLECTIONS (ARRAYS)

Python Collections: Organizing Infrastructure Data

System Architecture Visualization
DOWNLOADING CONCEPT: LISTS...
  • ↳Lists are ordered, changeable arrays.
  • ↳They are heavily used to store sequences of servers, IPs, or log lines.

↳servers = ["web1", "web2", "db1"]

↳You can add items (servers.append("cache1")), remove items (servers.remove("web1")), or access them by index (servers[0]).

▲ LIVE INCIDENTYou need to quickly deduplicate a massive list of 10,000 IP addresses.
sre@arena:~/python-collections
sre@arena:~$ python3 dedup.py