Better HN
topnewbestaskshowjobs
Log inSign up

josevalerio

176 karma · joined Nov 20, 2021 (5y ago) · 63 submissions

https://x.com/josevalerio

https://josevalerio.com

https://github.com/joswayski

contact@josevalerio.com

Submissions

comment 2mo ago · link · parent

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

comment 3mo ago · link · parent

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

comment 5mo ago · link · parent

Dear friend, you have built a Kubernetes

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

comment 6mo ago · link · parent

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

comment 11mo ago · link · parent

I just picked it up during the Steam sale, will try it in the coming days

6.

No Fun Allowed(josevalerio.com ↗)

3 points · by josevalerio · 11mo ago · 2 comments

comment 1y ago · link · parent

As another comment pointed out, this and all of their other posts are AI generated.

https://cachecowboy.medium.com/

8.

Show HN: sjl – Simple JSON Logger for Rust(github.com ↗)

3 points · by josevalerio · 1y ago · discuss

comment 1y ago · link · parent

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

10.

How to log structured JSON in Rust(josevalerio.com ↗)

2 points · by josevalerio · 1y ago · discuss

comment 1y ago · link · parent

Sometimes you get the docs emailed in a password protected spreadsheet :')

comment 1y ago · link · parent

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

comment 1y ago · link · parent

You'd think search on a docs site would be important :D

comment 1y ago · link · parent

Just do the thing! https://josevalerio.com/just-do-the-thing

Many are saying this...

comment 2y ago · link · parent

https://blog.cloudflare.com/aws-egregious-egress/

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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

comment 3y ago · link · parent

Please don’t Reddit my HN

comment 3y ago · link · parent

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/

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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"

comment 3y ago · link · parent

https://x.com/bholmesdev/status/1704846748441534627?s=46

comment 3y ago · link · parent

You could run Notion with SequelLight on a BlueberryPi, this sharting seems unnecessarily complex for an app with a measly 30 million users.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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

comment 3y ago · link · parent

Awesome response, handled well!

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

123