Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mnutt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
mnutt
4y ago
Many CDNs support caching based on a particular cookie value, incorporating it into the cache key. I’d just be extra careful, the worst case for many server settings is an inoperable service but choosing the wrong cache key can easily resul
62.
▲
by
mnutt
4y ago
This is nicely written, and a lot of it mirrors my experience using nginx as a pseudo-cdn. Another area worth exploring might be http3, ssl session caching, and general latency/ttfb optimizations.
63.
▲
by
mnutt
4y ago
Also: https://kottke.org/10/04/the-robot-who-considers-towels
64.
▲
by
mnutt
4y ago
Maybe an html <meta> redirect tag that bounces through a tertiary domain before redirecting to your real one? If they noticed you were doing it they could mitigate it, but they might deem it too much effort and just go away. You might
65.
▲
by
mnutt
4y ago
Are you referring to some sort of underground hatch that doesn’t take up any space on the sidewalk at all? That’d be very cool, just probably difficult to retrofit the whole city with.
66.
▲
by
mnutt
4y ago
Buildings have trash chutes and rooms for collecting trash; the trash is held there and put out on the street before midnight and picked up the following morning 3x per week. They get fined for leaving trash out any other time. The issue is
67.
▲
by
mnutt
4y ago
The sidewalks aren’t wide enough for the kinds of bins needed for the amount of trash generated (NYC is dense) and nobody wants to give up free parking spaces to put the bins in the street as of yet.
68.
▲
by
mnutt
4y ago
Living in NYC with rats, I'm always reminded of Neal Stephenson's Baroque Cycle, where Jack Shaftoe is in Paris in the late 17th century and meets St-George, the city's preeminent rat-catcher. St-George explains how no one is
69.
▲
by
mnutt
4y ago
The t4g instances are also burstable so running your database with 4 cores under load would either get you throttled or produce more charges.
70.
▲
by
mnutt
4y ago
It would only work for routes that only accept rails form_for input, and would reject requests without the signature.
71.
▲
by
mnutt
4y ago
I agree the syntax for strong_params is confusing and error prone, but I wish the author had drawn more of a distinction between the schema of the request payload versus the schema of the model. Rails assumes the model should handle its own
72.
▲
by
mnutt
4y ago
Hotwired is a ruby gem that sits on top of Rails' existing Turbo approach: start with a regular server-rendered ERB page, layer on Turbo to allow for page updates without page refreshes (via XHR-fetched html fragments) and layer on Hot
73.
▲
by
mnutt
4y ago
Elsewhere they reference making updates to the Grafana Agent in the future, but it's hard to say what "scrape profiles" means. But I really, really like the idea. Often when I want to test the performance of a change I'l
74.
▲
by
mnutt
4y ago
Other than a reference to ebpf at the end, it wasn't super clear to me where the profiles come from and what they support. Phlare itself is just a database for storing/querying profiles, right?
75.
▲
by
mnutt
4y ago
It's great, you can have it launch multiple processes on the same port using SO_REUSEPORT. Normally it'd be a bit of a pain to health check multiple processes running on the same port without some other machinery since it is possi
76.
▲
by
mnutt
4y ago
No, but anecdotally the others are probably a lot faster. And you can do even better than that with zero-copy serializations. But protobuf has very wide support and is decent enough in js, at least server-to-server. Having a schema is very
77.
▲
by
mnutt
4y ago
I was curious how this performed server-side versus protobufjs. (what we're currently using) I hastily wired it up to protobufjs's benchmark suite. ( https://github.com/protobufjs/protobuf.js/tree/mas
78.
▲
by
mnutt
4y ago
A while back I had the pleasure of working on a system that generated large-ish (up to ~800x600, but typically low fps) personalized gifs at the rate of hundreds or sometimes thousands per second. It was fun balancing the various constraint
79.
▲
by
mnutt
4y ago
I use eglot (via doom emacs) and it works but configuration always feels like a slog--the language server it wants to start is often not in the PATH, or is configured incorrectly or something. Javascript's eslint/prettier/tsc
80.
▲
by
mnutt
4y ago
The AWS article and docs on IDMSv2 really bury the lede and people may take away “protects against SSRF” when AWS should really say “protects against SSRF for GET/POST methods only”. It’s fine as an additional layer but they kind of ov
81.
▲
by
mnutt
4y ago
It may or may not matter for various use cases, but the EC2 instances in the test use EBS and the AMIs are lazily loaded from S3 on boot. So it may be possible that the boot process touches few files and quickly gets to 'ready' st
82.
▲
by
mnutt
4y ago
Some good discussion from a month ago: https://news.ycombinator.com/item?id=32551273
83.
▲
by
mnutt
4y ago
Are there any plans to implement key eviction to use it as a LRU cache?
84.
▲
by
mnutt
4y ago
Maybe check out https://pirateweather.net/ , I think the author had similar ideas.
85.
▲
by
mnutt
4y ago
It's especially great in how easy it is to just immediately drop in and get some useful feedback. Except not on MacOS. Lots of tracing is denied by System Integrity Protection; you can use Instruments.app [0] but it doesn't lend i
86.
▲
by
mnutt
4y ago
Documentation has been a bit of a challenge in my experience. There are some high-level docs at https://trac.webkit.org/wiki though many are 10-15 years old at this point. My approach has been to look at the commit history
87.
▲
by
mnutt
4y ago
The beefy server part is for taking the gigantic OSM world database and turning it into vector data that can be consumed by the client. I believe Osmand runs their own beefy servers to pregenerate vector data for download, though it’s also
88.
▲
by
mnutt
4y ago
maplibre-gl-native can render vector tiles to the image format of your choice. tileserver-gl is a nodejs server which still uses the very old mapbox-gl-native but hopefully soon will use maplibre-gl-native to render raster tiles. It require
89.
▲
by
mnutt
4y ago
In the above example the user saw they were on an Org A page and clicked Create intending to create an article in Org A, but sometime after they loaded their Org A page their “current tenant” session variable had been switched out from unde
90.
▲
by
mnutt
4y ago
In some cases there might be a next stage of complexity where you have users with access to multiple tenants who are browsing them in different tabs. Then putting the organization as the top level in _every_ URL helps signal intent; otherwi
More ›