HNHacker News
TopNewBestAskShowJobs

josevalerio

176 karma · joined November 20, 2021

https://x.com/josevalerio

https://josevalerio.com

https://github.com/joswayski

contact@josevalerio.com

submissionscomments
josevalerio··on Orbs
OpenAI already does this with Codex cloud

https://chatgpt.com/codex/cloud

From my experience, Orbs have been more consistent, along with Cursor's agents

josevalerio··on Ask HN: What are you working on? (August 2026)
I've been working on a cross platform screenshot/screen recording tool with a built in editor:

https://github.com/joswayski/captures

Managed to snag a cool domain for it too!

http://captur.es/

Would love any feedback from anyone that tries it

josevalerio··on What job interviews taught me about Kubernetes
Dear friend, you have built a Kubernetes

https://www.macchaffee.com/blog/2024/you-have-built-a-kubern...

josevalerio··on Ask HN: Best/Easiest way to host Rust with PostgreSQL?
I never used Shuttle but you could try Railway[1]. I have a few rust services there costing me pennies per month due to the low resource usage[2]

You hook your repo up and it does a good job figuring out what you need. Not much to it really :)

[1]https://railway.com/

[2]https://cleanshot.com/share/RgwRLCk6

josevalerio··on No Fun Allowed
I just picked it up during the Steam sale, will try it in the coming days
josevalerio··on Rust Isn't the Future of Systems Programming – It's Just the Hype Cycle
As another comment pointed out, this and all of their other posts are AI generated.

https://cachecowboy.medium.com/

josevalerio··on Rust: A quest for performant, reliable software [video]
Not OP but it consistently says that logging JSON (specifically nested JSON while not having escaped strings) with the tracing crate is not possible or provides wrong solutions.

However this is doable, just under an experimental feature flag since 2022[1]. I created this repo[2] with a small blog post, hopefully the scrapers can pick it up :')

[1]https://github.com/tokio-rs/tracing/discussions/1906

[2]https://github.com/joswayski/tracing-valuable-example

josevalerio··on Everything I know about good API design
Sometimes you get the docs emailed in a password protected spreadsheet :')
josevalerio··on Neki – Sharded Postgres by the team behind Vitess
Just FYI that interview is for Multigres, a sharded Postgres in development by Supabase.

Sugu hasn’t been at Planetscale for a few years

https://github.com/multigres/multigres

josevalerio··on I couldn't submit a PR, so I got hired and fixed it myself
You'd think search on a docs site would be important :D
josevalerio··on Why Companies Don't Fix Bugs
Just do the thing! https://josevalerio.com/just-do-the-thing

Many are saying this...

josevalerio··on Delivering 15TB of 4K video with Cloudflare R2 for $2.18
https://blog.cloudflare.com/aws-egregious-egress/
josevalerio··on Resend Security Incident
Probably all the new NextJS / Server Components stuff - mixing and matching server & client code in the same file. Or the classic NEXT_PUBLIC_ env var
josevalerio··on How meta built the infrastructure for Threads
Declare your connection outside of your handler function - this post is from 2017 but it shows it clearly:

https://www.jeremydaly.com/reuse-database-connections-aws-la...

It will get re-used across lambda invocations as long as the instance of it isn't killed which typically happens after a few minutes

josevalerio··on People who voted for Brexit ‘more likely to be less intelligent’, study claims
Please don’t Reddit my HN
josevalerio··on From S3 to R2: An economic opportunity
Don’t those volume discounts kick in once you’re doing near 1PB? You’re still paying “normal” CloudFront prices all the way up and it also varies per region :$

https://aws.amazon.com/cloudfront/pricing/

josevalerio··on From S3 to R2: An economic opportunity
Here’s a tweet from Corey Quinn describing how bonkers R2 pricing is:

> let’s remember that the internet is 1-to-many. If 1 million people download that 1GB this month, my cost with @cloudflare R2 this way rounds up to 13¢. With @awscloud S3 it’s $59,247.52.

https://x.com/quinnypig/status/1443076111651401731?s=46

josevalerio··on Ask HN: How to survive indefinite DDoS attack?
As others have stated, Cloudflare is the best solution here. Other services like AWS WAF will charge you just for validating requests, which means even if the DDOS is mitigated, you're still paying for it to inspect each request and then block it, which now turns it to a denial of wallet attack.
josevalerio··on Show HN: Marmotte – Open-Source IT Asset Management Made Simple
I'm not a target user but wanted to provide some feedback. As a customer, when I buy software I don't really care that it's open source or not and if you look in other threads on here, many people feel the same way. It's good marketing - especially for devs - but the whole point of someone paying you for hosting is so they don't have to do it ;)

I'd feature it less prominently as a selling point further down the page. As in: "btw, we're also open source!".

And I would drop the decimals on the pricing - take it from Patrick McKenzie[1]

The site looks really clean and wish you the best!

[1] https://stripe.com/guides/atlas/saas-pricing -> Under "Getting the aesthetics of pricing correct matters in B2C"

josevalerio··on Show HN: OpenStatus – Open-source monitoring with incident managements
https://x.com/bholmesdev/status/1704846748441534627?s=46
josevalerio··on Lessons learned from re-sharding Postgres at Notion
You could run Notion with SequelLight on a BlueberryPi, this sharting seems unnecessarily complex for an app with a measly 30 million users.
josevalerio··on FerretDB: open-source MongoDB alternative
Another day on the orange site where people don't understand that you can 100% have relationships in a NoSQL database - just don't try to do it the same way you do in a "relational" one or you're going to have a bad time. Storing everything in one collection is critical.

Here is an example using multi key indexes with Rick Houlihan from re:Invent 2022: https://youtu.be/eEENrNKxCdw?t=1131

josevalerio··on Be careful what you test or deploy to Vercel
Fair points, hopefully this brings about the needed changes in these billing systems to prevent it happening in the future. It happens all the time on other providers as well. I'm very critical of the actual necessity of these infinitely scalable systems if you find my other comment in this thread
josevalerio··on Be careful what you test or deploy to Vercel
You're right I used the term interchangeably - AWS Lightsail would have been a good service comparison, and those do start at $3.50[0]. The $8 figure came from running the smallest Fargate task at .25cpu and 512mb, excluding the load balancer etc. [1]

It was announced that App Runner (today) allowed for smaller instances[2], and the price/mo for this instance would basically be 1/4th of the previous default. So ~$14 [3]

[0] https://aws.amazon.com/lightsail/pricing/

[1] https://calculator.aws/#/estimate?id=42b33d2f26786ac08a3610a...

[2] https://twitter.com/danilop/status/1643968804727271425?s=20

[3] https://calculator.aws/#/estimate?id=a46d5f15ed9c079131c6a73...

josevalerio··on Be careful what you test or deploy to Vercel
Took me less than 1 min to setup NextJS on AWS App Runner with auto deploys on commits, the rest was waiting for it to finish which I'll admit, Vercel is much faster at.

https://www.youtube.com/watch?v=kmbgATze8UU

josevalerio··on Be careful what you test or deploy to Vercel
Awesome response, handled well!

You guys are always on top of things community wise, especially Lee Robinson in any related thread :')

josevalerio··on Be careful what you test or deploy to Vercel
I wonder what the aversion is to using a plain old server / vps. It's really not that difficult to deploy nowadays [0][1][2][3] and I'd rather get an $8 bill every month as insurance than ever worry about shit like OP just went through. It'll probably be more performant anyway due to cold starts and "edge" still having to hit us-east-1 for data.. cache your static files with Cloud Flare/Front. People are always surprised by how much traffic a single VPS can take[4] and believe it all has to be serverless to be web scale. I believe HN still runs on a single core or something.

There's a ton of places to get cloud credits as well, too many to link, so just Bing™ it

[0] https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_...

[1] https://aws.amazon.com/apprunner/

[2] https://cloud.google.com/run

[3] https://render.com/

[4] https://news.ycombinator.com/item?id=34676186

josevalerio··on De-cloud and de-k8s – bringing our apps back home
I recommend everyone take a look at ECS patterns. This is incredibly easy in $CURRENT_YEAR. Give it a dockerfile / image and CDK deploy:

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_...

josevalerio··on More than half of YC startups don't have a dot com
Related, PG’s “Change Your Name”

http://www.paulgraham.com/name.html

josevalerio··on Making the World (Type) Safe for MongoDB Queries: Papr v11
This looks very cool I might consider using it!

The way I'm setting up Mongo for my project[1] is that all items go into a single collection and use a multi key index on a `target` array so queries look like this:

{ $and: [ { target: { $elemMatch: { id: `user`, type: 'entityType' } } }, { target: { $elemMatch: { id: 'ACTIVE', type: 'status' } } }, ] }

Demo form Rick Houlihan here: https://youtu.be/eEENrNKxCdw?t=1136

Does Papr support this type of schema? I didn't see a way to combine them into one Model and use it like "db.findOne()". I guess sort of what I'm asking for is discriminators? [2].

[1] https://github.com/plutomi/plutomi/pull/776 [2] https://github.com/plexinc/papr/issues/236

Page 1 of 2Next →