Live data from Hacker News

Migrating from AWS to Fly.io

terrateam.io

161–170 of 189 posts

Re: Migrating from AWS to Fly.io

#161

Earlier quoted context omitted.

You still need to go over a public network (as opposed to a network inside a data center.)

what makes a network private?

The point the OP wanted to make was:

Servers sitting less than 1km to each other tend to have lesser latency between them, compared to servers that could be anywhere on the public internet.

Re: Migrating from AWS to Fly.io

#162

Earlier quoted context omitted.

What stops you from using a managed database from a provider who specializes in it? If Fly builds it, it will create another Goliath who tries to eat everything.

This is an advantage of the big public clouds. Any SaaS you could want is deployed into the same region as your application, so it's essentially co-located and on the same playing field as one of the native public cloud services. With Fly.io (at least today), this isn't as straightforward given your favorite database is likely not deployed there.

Even at the minimal scale, one is going to have quite a few app instances all over the world sooner or later. In such setting, a notion of regional proximity of any kind quickly becomes irrelevant.

Higher database round-trip times are fixed by using database stored procedures instead of making multitudes of tiny compound SQL queries.

Re: Migrating from AWS to Fly.io

#163
post #108

Earlier quoted context omitted.

> RDS is ultimately a solution for people who look in the mirror and confidently say "you don't know how to run a database." I think this is a terrible oversimplification and something tells me that you haven't had to deal with a complex database setup from an operations perspective. RDS reduces a huge overhead in terms of operations (ha, backups, upgrades and clustering being the first ones that come to my mind). Be…

> you don't know how to run a database. Hah, I wish you didn’t need to know how to run a database to use RDS. So much is dependent on settings/parameter groups.

Do you have any [pointers to] recommended best practices?

Re: Migrating from AWS to Fly.io

#164
With all the talk of PostgreSQL, I'm curious if anyone has tried the offerings Fly.io has been pushing with SQLite (Litestream & LiteFS) in any serious capacity, and can comment on the experience.

Wondering whether they would be a viable alternative to Postgres in the typical "Database + Docker Container" architecture.

Re: Migrating from AWS to Fly.io

#165

Earlier quoted context omitted.

> RDS is ultimately a solution for people who look in the mirror and confidently say "you don't know how to run a database." I think this is a terrible oversimplification and something tells me that you haven't had to deal with a complex database setup from an operations perspective. RDS reduces a huge overhead in terms of operations (ha, backups, upgrades and clustering being the first ones that come to my mind). Be…

I look in the mirror and confidently say I don't know how to run a database. Was the grandparent comment meant to be an insult?

I don't think it's an insult. I don't know how to run a database; I want a managed service.

Re: Migrating from AWS to Fly.io

#166

Earlier quoted context omitted.

You still need to go over a public network (as opposed to a network inside a data center.)

what makes a network private?

An RFC 1918 address range and an implementation that does not transmit data over infrastructure not owned by the network operator.

I think I know what you're getting at, and if I'm right, this isn't really a subjective or squishy subject.

Re: Migrating from AWS to Fly.io

#168
post #126

Earlier quoted context omitted.

Author mentioned here that they went from $200/month on AWS to $90/month of Fly: https://news.ycombinator.com/item?id=34242923 Pretty tiny cloud costs either way, probably safe to assume they’re a small, early stage startup. But even still, it was likely a bad call to spend significant engineering effort on saving $110/month, which is a rounding error even for small startups. Hard to imagine that time couldn’t have b…

Definitely tiny but we're just overall happier with Fly. The migration in total probably cost us a weekend of work all said and done. We get a lot for free with Fly (observability, multi-region, etc.) so all in all a win.

Ah fair enough, that’s a pretty small amount of work!

Re: Migrating from AWS to Fly.io

#169
post #126

Earlier quoted context omitted.

Author mentioned here that they went from $200/month on AWS to $90/month of Fly: https://news.ycombinator.com/item?id=34242923 Pretty tiny cloud costs either way, probably safe to assume they’re a small, early stage startup. But even still, it was likely a bad call to spend significant engineering effort on saving $110/month, which is a rounding error even for small startups. Hard to imagine that time couldn’t have b…

I would read it as a 60% saving. That's a very good one. Considering that this is a recurring cost and not a one time and it's proportional to their sales. Aka, they now will be able to provide their clients twice the amount of contents for the same price. At least in theory.

My thought was more timing - there’s so much that’s URGENT for a young startup, is cost cutting really urgent, something you have to do NOW, when the current savings are just $110/month? Part of what allows startups to survive is ruthless focus on the work that that’s most important today, and saving $110/month seems unlikely to be that.

However, the blog post author responded, noting that this migration took only 1 weekend, and they like other aspects of Fly than just the cost. So fair enough, 1 weekend is a small investment, less than I expected, I would have guessed this took 2+ weeks.

Re: Migrating from AWS to Fly.io

#170

Earlier quoted context omitted.

That all makes sense. I think context matters. Yes, when I have a service that's been up and running for some time, if that service fails, I want my service to restart. But when I'm trying to get a service running for the first time and I'm not sure that I have the right command in the entrypoint, the right arguments to that command, or the right supporting files in place, or the right libraries installed, or the rig…

Usually, when I'm debugging a container, I start with a `tail -f /dev/null` entrypoint, or something like that, and then just shell into it to run the real entrypoint to see if it's working.

That's probably closer to sysadmins magic, not average developer way of thinking when debugging.
Post reply on HN