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

I don't understand why things aren't faster, for Bref I recompiled everything from scratch for PHP 8.2 to 8.5, for ARM and x86, and 2 different major versions, and published to Docker Hub + ~20 AWS regions. It took me 30 minutes to have all the releases out.

Though I have to say I prewarmed Docker caches in advance and use Depot, which accelerated things for sure.

22 points

externals now syncs RFCs and has the same upvote/downvote system as #internals threads.

That allows the community to express interest into specific RFCs, and lets you follow RFCs and find their related discussions on #internals.

I'm open to feature requests. Now that I rewrote externals.io to Laravel development is super easy. I'm currently looking into a notification system (to follow specific threads or RFCs) for example.

19 points

Fair then! Claude tells me ~3k DAU could be about 13M backend requests. That would be (rough estimate) $50/mo, excluding the database.

So we're close to the $100 price point!

Thank you for sharing, that's always interesting to compare real numbers!

1 points

Sadly I'm 38 and everyday closer to death. My personal path is that I enjoy simple infrastructure and don't want to maintain servers or containers (so of course I chose to be the guy that maintains a PHP runtime for others 😂 I didn't think this through)

3 points

Just to provide some context, a $50k surprise invoice is ~10 billion requests (order of magnitude, not exact number) if we talk an HTTP app.

To receive that in a night/a day or so and not catch it, it means

- DDoS protection from Cloudfront or Cloudflare completely missed those (Cloudfront plans prevent you from DDoS & related costs)
- the cost alert you set up didn't work
- if this was over 48h it would be ~60k requests per second continuously -> any metric alert didn't flare up
- your functions scaled to ~12,000 instances continuously, which means you explicitly allowed them to scale that high and asked AWS for higher limits
- the default limit is 10 concurrent instances (you can increase it)
- AWS probably would notice it and block the traffic before you to be realistic
- also you would have to have increased quotas for API Gateway

I'm not saying I don't understand the fear, I do (and AWS is finally improving at adding limits and protections). But it's useful to look at actual numbers to put them into perspective.

5 points

I mentioned redundancy and scaling. One VPS doesn't have redundancy.

As for scaling, will you be behind your screen upgrading the VPS when you need to go from 0 to 1000 queue workers because a huge batch landed? Or will you pay for an enormous instance running all month long?

I understand it doesn't fit _every_ use case, but you can't say that autoscaling and redundancy are not real problems for some people.

5 points

Absolutely (though tbf I do host some websites for $0 on Lambda).

The way I like to position it is "when you need to go from 1 to N". I.e. 1 server to N servers (or containers). That could be to scale horizontally or have redundancy.

At this point you need to move beyond "get a VPS and deploy on it". Serverless is one option (amongst others) for this when you don't want to learn/manage K8s (and similar) and scale without thinking about limits. I.e. "how many servers do you need, how much RAM, how much CPU, do you need separate servers/containers for queues, if so how many, etc" All these questions just go away.

Not for every project, just like a VPS isn't for every project.

4 points

Ha appreciate you sharing, I got a notification from Plausible about a traffic spike and figured it would be Reddit ^^

To be fair v3 is from earlier this year, I'm already looking into v4 (for EOY). As usual, very minimal breaking changes/easy upgrade, but my plan is:
- more standard stack (Debian, containers…), less "special"
- removing more limits/weirdness from AWS Lambda (e.g. deploy size limits, response streaming, etc)
- performance improvements (less cold starts, and faster)
- simpler way to support more PHP extensions

Some of these points are vague because I can't share exact details of how it's possible for now. But if all goes well, Bref v4 should be big in terms of making serverless "even more standard" and boring tech.

14 points

That's mentioned in the README: https://github.com/mnapoli/dotlock#alternatives

> It encrypts the whole .env into .env.encrypted meant to be committed and decrypted on deploy. It solves prod secrets, not your local machine: to use it you run env:decrypt, and the plaintext .env is back on disk. Dotlock encrypts value by value, keeps the names readable, and the decrypted values only ever exist in process memory.

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.