PyCon UK

Registration Office

Making Sense of Flask APIs A Billion Requests at a Time

Evan Morikawa

Sunday 16th, 15:00 (Room A)


A talk (25 minutes)

Learn how to scale Flask APIs and make sense of the data. You’ve got a Flask, Django, or other API. How are people using it? Is anything going wrong? How does it perform? These questions become increasingly hard to answer once manually `tail`ing your log files becomes impractical.

This talk will describe how to effectively answer these questions through a mix of team process, tools, and logging techniques. I’ll demonstrate a suite of tools we use to quickly visualize insights across dozens of API endpoints and billions of requests. I’ll show logging techniques to more consistently store, organize, and process the right data to make sense of it all. I’ll talk about the processes we’ve put in place to routinely revisit these questions and quickly alert when things go awry. Finally, despite all the pretty graphs I’ll show you, I’ll discuss how at the end of the day it is the team and cultural aspects that keep any API in line and growing.

These stories, best practices, and advice come from my experience building and scaling the Nylas APIs. Our APIs allow developers to GET, POST and PUT email threads, calendar events, contacts, and any other item you’d find in an Exchange, GSuite, or IMAP mailbox. Hundreds of thousands of mailboxes later, and over a hundred million requests a day, making sense of what’s going on in the system at any given time present challenges I’m excited to share.


  • The speaker suggested this session is suitable for new programmers.
  • The speaker suggested this session is suitable for teachers.

Back to schedule