Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thank you for sharing! Very useful.

Can you share what kind of perf gains you got? latency? concurrency?

> You also have to write a lot more specs, and such

Sorry, by "specs" do you mean type definitions?

Oh, and congrats on a successful port!



Our performance gains have primarily been in serialization, so response times are way better. It used to take multiple seconds for some things to serialize in DRF, and down to sub seconds. Its like 4x faster in that regard.

Yeah, meant Pydantic Models, SQL Alchemy models, and the actual endpoints. Its a lot of repetition in places. But the finer grained controls have been good for us so far. You just have to write the models, and don't need to worry as much about input validation in your own code. Which has been great.


That makes a ton of sense - thank you!

Yeah part of the magic of DRF is all the implicit stuff and the DRYness, but of course that can bite you anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: