Divya
07/26/2022, 1:41 PMStéphan Taljaard
07/26/2022, 1:44 PMDivya
07/26/2022, 2:31 PMTaylor Curran
07/26/2022, 2:39 PMDivya
07/26/2022, 3:22 PMSebastian
07/27/2022, 9:38 AMTaylor Curran
07/27/2022, 1:16 PMOur CTO Chris White did a great job of answering this question live the other day. of that recording.
In summary
• Lots of people were unfamiliar with GraphQL and asking for RestAPI
• For Prefect Server specifically, because we chose to use GraphQL, that’s the reason why Prefect Server is so heavy - we needed the query schema off of the database (which is what Hasura does)
• For our business logic, we had all of our mutations defined in Python code
• Those are two separate GraphQL schemas so we had to stitch them together
• All of this resulted in a very large, heavy container that was Prefect Server
• REST is very lightweight and allows us to automatically pull in Prefect flows into the UI even if they ran before the UI was launched
• Finally, GraphQL is very hard to manage when exposing publicly to a high volume of usage
Sebastian
07/27/2022, 1:26 PM