July 31st, 2022 Developer Update (Patreon)
Content
Hey all, the next update is nearly ready after some back-and-forth with shortpixel support on their weird ass API, lots of minor changes, and a rewritten compression pipeline. I should be deploying this this week.
I opted to not do it today as I am in intense pain from a sunburn. I finally decided to leave my mom's basement and venture out to a large body of water called a lake. I put sunscreen on maybe 100 times, but despite my best efforts, I overlooked the the fact that my swim trunks when standing were lower than when I was in the water.
Here is a pic to help you visualize the issue:
The pain is about the level of day 0 of a large tattoo. Not having a lot of fun over here.
Anyway, here are the patch notes:
Rewritten image processing pipeline
As I mentioned last week the image pipeline had to be redone. Partly because cloudflare was caching the fat version of images, and partially because it was just shit. This cloudflare issue meant that we were serving larger images than necessary to mobile phones, causing issues for google senpai over on core vitals.
With this update, I'll be re-compressing the display images for waifus, series, and user avatars as required based on the size of images in the buckets. If all is well, not really a lot of work to do except dump the cache for some items in CF.
Async component loading for some areas
Another issue was components being served up causing the size to be too large. I ended up async loading these components now and (hopefully) it will improve some load times on certain pages.
API Spec (mostly) rewritten
The API spec has mostly been rewritten for the API. The new stoplight client is ok, but it's got a few bugs that kept annoying me while porting it over. To remind everyone: stoplight simply deleted the old API's and did not even email users their JSON\OPENAPI\Swagger spec if you missed the window. They just yeeted it, so I had to rewrite it.
Backend Updates
New code quality tools, moved to docker containers, cleaning out legacy image stack controls, new logging channels with specific outputs for security, image uploads, compression, api logging.