Skip to content

u/txmail

In this archive from Jan 2012 to Oct 2026

6
posts
458
comments
0
media
1.8k
score
4 saved before deletion

Anyone else find it amazing that this post has absolutely not a single link to the project? I guess you have to be in the loop of PIE.

8 points

I really miss the simplicity of CodeIgniter sometimes -- and the raw speed of it. I still have legacy projects I have to update from time to time. My oldest apps are now approaching 14 years old and still running. I am now at the point of stuff being complex where Laravel saves a bunch of time with the built ins but would not hesitate to reach for CI for a quick POC or simple site.

2 points

It really depends. I currently have one queue with nearly 70,000 items in it and those queue items have serialized models that are probably worth a few hundred kilobytes a piece... it can add up quickly.

I have worked on platforms that had 120GB+ of cached data in Redis and RAM disks where anytime someone wanted to use a memory cache it had to go through a whole process to get approval.

1 points

I look at it more like hooks in the pipeline where you have opportunities to modify the request or output before the response is flushed back to the user.

Your framework typically controls where in the pipeline you are able to hook into. It is not always a straight line as the hooks can be in multiple places (like built into the ORM).

What you really want is a full picture of your frameworks request / response lifecycle laid out in a linear manner, and then seeing which of those processes have hooks for middleware to run.

4 points

Plan for 99% of your traffic, not for surge traffic else you will make it worse for 99% of your traffic

Not sure that actually makes any sense. It is more like 99% of your traffic will never know your server can handle a surge (or care).

The biggest reason I use CloudFlare is to stop unwanted traffic going to the server at all. AI scrapers, bots, DoS --- you have that layer before the traffic hits your actual server not to mention the ability to load balance, offload or fail over.

I am not sure PHP has really ever been the slowest part, I/O operations always seem to be the bigger bottleneck be it disk or network ops. I have mostly experienced the biggest gains caching between PHP and the database server or using state machines or registers filled out of band.

7 points

What we really need is a better front end scaffolding / boilerplate. There are some limitations of SSE that probably do not affect everyone, but do affect a great number of "dashboard" like applications, the kind where someone has more than a few tabs of the site open at the same time. There are limitations that the browsers impose on the number of connections to a site. With Chrome (last time I messed with SSE) the limit was six. So when the person opens that fifth tab stuff starts to not load. You need to have a front end that assigns a single worker (using the lock API) to handle the SSE connection for ALL tabs. So that same worker re-distributes the messages as events or otherwise handles putting them in a global queue.

1 points

So PHP ecosystem is stuck with this cycle: dispatch requests -> wait until all requests complete -> dispatch requests.

I did not know that this was something missing from PHP. A few projects back I had to scrape a few thousands pages a day from various websites and I ended up building 6 VM's with a full desktop and Chromium with Selenium.

In addition I also created 6 surfed and rotated profiles with real surfing done with them. When a page was needed to be crawled I had a router that would round robin the selenium request out to each VM. The client would get back a claim ticket which included it's place in line and estimated fulfillment time based on the last hour of requests.

Most of the workers that needed the HTML to parse worked in a loop so they would just re-query the router with their claim ticket to see if it was completed or not. A single worker might have been working 4 or 5 different crawls so when one came back it would process that one and then remove it from it's work queue and either request more crawl's or process crawl's that were ready.

Not exactly a Promise.all() situation as in that same loop other work for that worker could come in that was not a crawl

I am pretty sure anyone that is doing serious crawling is using a similar situation. I do not think it is a new pattern at all.

1 points

The real fun is going to happen when it starts folding back on itself and using buggy code... then it will write even buggier code and eventually end the world. <JOHN_HAMM_CLUB_SCENE />

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.