š Iām trying the idea of morning pages, where I write three pages in the morning of whateverās on my mind. Itās mostly for me, but Iām publishing them too because why not.
All-hands-on-deck this morning
A couple days ago I built an API for a client, and at the time we calculated that itād only be getting around 12 requests/minute. So I hosted it on Cloudflare Pages, which is still in beta, but while itās in beta I can get 100,000 requests per day for free. Using this API around the clock would only incur around 17,000 requests per day, which was completely fine.
But I checked a dashboard this morning and realized that the API was getting 70-80 requests/minute, constantly. This would just barely overshoot the 100,000 request per day limit.
My brain went into stressed adrenaline mode, and I quickly filled out the form to request a higher limit from Cloudflare.
I asked the client about it, but in doing so realized that I was beholden to this beta limit for Cloudflare Pages, if the client ever wanted to scale further.
So I quickly converted the code into a Cloudflare Worker and paid for their $5/month plan, and then asked the client to update the endpoint to the Workers endpoint. Itās a small unfortunate pain, but Iām relieved that it could now scale infinitely if necessary. And that $5/month pays for the equivalent of 228 requests/minute already.
The client is going to switch over the URLs today, and then Iāll take down the Cloudflare Pages deployment. Everything is okay once more. The temporary freakout wasnāt necessary, as usual.
My website is gonna go down today
Itās also hosted on Cloudflare Pages, so it uses the same 100,000 requests per day quota that the client project does. The client project is set to blow through that limit in 4-5 hours, so around 2 or 3pm.
The usage resets at midnight UTC, so 7pm my time. So my website wonāt be working for a couple hours. (Also, itās definitely my fault for having the hosting of the client project and my personal website interdependent on one another.)
Thatās too bad, but itās okay. Itās just a website.
My brain wants ādefault stacksā
Iāve noticed that my brain likes to have an answer to the question, āIf I were to build an app/website right now, what tools would I use?ā.
Itās purely hypothetical, too. Of course, I should figure that out when I get there ā evaluate the specific problem, etc etc. But my brain doesnāt like that. It likes having the answer now, and switching it when necessary. Itās like having a tribe that I can stick with, in some way.
This morning in the shower my brain decided that maybe my default stack for apps should go back to Laravel. Iāve been trying for a month or two to go all-in on Remix, and while Remix is really nice, itās hard to argue with the power of Laravel.
Of course, this doesnāt mean Iām actually going to build something in Laravel right this instant. Itās purely hypothetical and useless ā my brain just likes knowing which stack Iād use.
Of course, itās also really really early for Remix, while Laravel has been around for a while.
But almost nothing can compare with how Laravel gives you login/signup/forgot password, queues and background jobs, error reporting, and other things I canāt remember out of the box. Almost nothing can compete.
So maybe, when I pick up a side project to work on by myself, Laravel will be my new choice. For the sake of my brain, I need a good answer to this hypothetical question.
Whatās this blog for?
I like the idea of having a whole catalog of thoughts and writing that people can read back through, if they want. I always enjoy stumbling on internet rabbit holes where someone has been writing prolifically on their own website, and I can just browse through a personal library and feel like Iām getting to know them.
So I want to do that for myself. Itās cool that other people can read this, but also itās cool just to look back and browse at what I was thinking about.
Also, Iād just like to write more. Even if itās not particularly good, I think writing things down forces you to clarify your thoughts and put some weight behind things that would otherwise just be passing thoughts. Recognizing what things are going on inside my brain that I normally wouldnāt notice has been a cool side effect of writing these morning pages.