Slide 1

Slide 1 text

October 2019 Claire Knight / GraphQL Summit Query Analysis Reboot

Slide 2

Slide 2 text

Claire Knight / GraphQL Summit Query Analysis Reboot Using Data to Drive Decisions Or how your users can better help you understand your API!

Slide 3

Slide 3 text

Data? But I have the query... There are several things you need to consider from an operational point of view! Claire Knight / GraphQL Summit Query Analysis Reboot

Slide 4

Slide 4 text

Claire Knight / GraphQL Summit Query Analysis Reboot Query Performance

Slide 5

Slide 5 text

Claire Knight / GraphQL Summit Query Analysis Reboot Power of Analysis

Slide 6

Slide 6 text

Claire Knight / GraphQL Summit Query Analysis Reboot Ensuring Compliance - GDPR, PII

Slide 7

Slide 7 text

Claire Knight / GraphQL Summit Query Analysis Reboot Existing Solutions

Slide 8

Slide 8 text

Claire Knight / GraphQL Summit Query Analysis Reboot Our Data

Slide 9

Slide 9 text

Claire Knight / GraphQL Summit Query Analysis Reboot Domain Objects Being Used Parsing Problems Resolvers Unable to Complete Validation & Security Errors Things we have found valuable...

Slide 10

Slide 10 text

Claire Knight / GraphQL Summit Query Analysis Reboot Capturing It

Slide 11

Slide 11 text

Claire Knight / GraphQL Summit Query Analysis Reboot Applying Security During Parsing Within the Resolvers Before Sending A Response Where we capture the data...

Slide 12

Slide 12 text

Claire Knight / GraphQL Summit Query Analysis Reboot Statistics Capturing Systems Data Pipeline Log Files Where does it go?

Slide 13

Slide 13 text

Claire Knight / GraphQL Summit Query Analysis Reboot Insights Gained

Slide 14

Slide 14 text

Claire Knight / GraphQL Summit Query Analysis Reboot Key Learnings • Being able to learn more runtime errors and exceptions separately from validation or parsing errors to more easily identify bug fixes • Tracking expected errors (parsing for example) helps educate SRE/management that not all errors are bad • An idea of query size even without the query helps with capacity planning and timeout concerns

Slide 15

Slide 15 text

Claire Knight / GraphQL Summit Query Analysis Reboot For a (Public) API, or one of scale, it’s important to consider queries and data from the API owners perspective and not just as an integrator. This might lead to better ways to return safe and secure hints to users. But takes time, data, and delayed analysis.

Slide 16

Slide 16 text

Questions? Comments? [email protected] @krider2010 @krider2010