Skip to content

u/mnapoli

In this archive from Jan 2013 to Nov 2026

157
posts
2.4k
comments
68
media
12k
score
1 saved before deletion

Top posts

Moderation changes in /r/php

TL/DR: the main moderator left, new moderators have been added we plan on clarifying rules of /r/php (see below) rules will actually be enforced: use the report button! this is a 3-month trial Hello /r/php Over the past months, there have been several discussions on the state of this subreddit, whic...

198 points155 comments
Open on Reddit

Top comments

Some context: I started the bref project in 2017 to run PHP serverless on AWS Lambda.

In 2020 I started measuring how many requests (or jobs, cron, invocations, etc.) are processed with it every month. The goal was to show to AWS that PHP deserves more attention and support.

I've been adding that to a spreadsheet every month, and this is just going up! As mentioned in the title, PHP now runs more than 40 billion requests/mo on Lambda.

Here's how it's being measured: https://bref.sh/docs/runtimes/runtimes-details#telemetry-ping

TL/DR: the runtimes send a few bytes every 100 invocations over UDP. The content is 100% anonymous (the payload is this: `Invocations_100:1|c\nLayer_fpm_100:1|c`) and UDP ensures that this only takes a few micro-seconds at worst (it's non-blocking). These bytes reach a small EC2 server that just increments a counter in CloudWatch.

Having this metric has been extremely helpful when talking to AWS, they now take the Bref project much more seriously. Roughly 1 in 1000 AWS Lambda invocation is PHP with Bref.

AWS even implemented some metrics internally to track PHP usage too, and their numbers match what I see, so this is reassuring I didn't mess it up haha.

Anyway, UDP rocks (even if it drops some data points…).

76 points

Those guys are a joke :)

Anyway, answering your question. Using Doctrine ORM:

Using Illuminate/Database:

Regarding Hibernate I don't really know where to look for honestly. I know it's used in this major french e-commerce website.

63 points

This is extremely detailed and thought through, congratulations and thank you! There are a few “bold choices” if I may say (uninitialized properties for example) but it all seems to make sense and go in a great direction for PHP.

50 points

Subreddits

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.