News for hackers. Stuff that matters.
Re:How and why GraphQL will influence the Sourcehut alpha by vertex-four on Thursday June 11, 2020 @07:30AM (#23487671)
The goal here is to generate a typed API across a bunch of microservices (written in some typed language suited for the job) that are consumed by a Python frontend. The current design is a pile of vertically-integrated monoliths that touch the disk, database, perform backend operations and rendering all in one process.

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.

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.