squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

Benchmark for JWT minimal endpoint? #36

Open ppKrauss opened 7 years ago

ppKrauss commented 7 years ago

Can I talk here about use cases for benchmak?

To show performance in real world applications, the REST endpoint need some authentication control... The most recommended today is the JSON Web Token Authentication. Testing performance in a simple GET (with a header transporting the token) will be a good use case. For instance a endpoint that returns a random non-zero number when token is valid, 0 when not.

squeaky-pl commented 7 years ago

That's an idea for the next round of benchmarks.

ppKrauss commented 7 years ago

Hi, thanks @squeaky-pl Ok, I will wait to the next round!


Another simple and relevant benchmark is the database conection: a lot of complex applications need "light endpoint" infrastruture to run faster database's stored procedures... And REST microservices returning and consuming fast JSON of PostgreSQL 9.5+ procedures/functions is my dream ;-)

This kind of "100% database-returning-JSON" application can be used as complete benchmark (a little set of microservices), and a permanent (useful and perhaps sponsored by OKBr) demonstration of Japronto...
The Japronto will be used only as database middleware: the less it appears, the better it will show!

jacobbridges commented 7 years ago

Please excuse my random references to this issue -- was referencing the incorrect issue in my commit messages and pull request title.