Pete's Log: Esgerdev Update

Entry #2445, (Coding, Hacking, & CS stuff, Meta)
(posted when I was 45 years old.)

At the current rate of progress, my esgeroth.org rewrite will probably be done in another decade or so. But very slowly I am making progress of sorts.

I'm already using PSR-4 and PSR-11 and for some strange reason decided to implement PSR-7 and PSR-15.

PSR-7 defines how the HTTP request and response messages are modeled. I already had my own approach going, but figured implementing a standard would make it easier to swap in other libraries or frameworks if I ever decide to go that route. PSR-15 defines how those requests are turned into responses. PSR-15 also defines an interface for middlewares, so in theory if I've implemented this correctly, I should easily be able to use existing middlewares if I choose to.

Anyway, there are a number of NotImplementedExceptions floating around, but it's far enough along that pages render again, which is nice.

I also discovered siege which is a little load tester I can unleash on my development environment to make sure I'm achieving reasonable performance. Esgerdev as it currently stands is achieving transaction rates of about 1100 transactions/second and that seems kind of OK for a development VM. Just tracking that as a data point I can compare against in the future. I think that transaction rate includes all the css and graphics included in a page load, so those surely skew the number upwards. Need to play with it more.