Re:How and why GraphQL will influence the Sourcehut alpha
by pknopf on Thursday June 11, 2020 @10:35AM
(#23489341)
> The goal here is to generate a typed API across a bunch of microservices
You are describing gRPC.
Re:How and why GraphQL will influence the Sourcehut alpha
by vertex-four on Thursday June 11, 2020 @11:03AM
(#23489622)
I'm describing a lot of things, JSON-Schema documented REST APIs being another one. The other thing about GraphQL is that you can make a query that contains multiple requests and allows the server to optimise how to process them, which is not something that REST or gRPC are very good at.
Python's single-threaded design makes it difficult to be responsive to small queries quickly while simultaneously serving large, time-consuming queries (i.e. git operations). You can get around this using worker queues to separate interpreter processes and an async design, or otherwise splitting your workload up... or you can use a language where "have a threadpool" is actually a properly supported concept, and an architecture where sharding git/email/etc backends is feasible.