Earlier quoted context omitted.
you might be running into max connection issues because your library is leaving stale connections. i know this is the case for ruby & php. check if you have timeout set. see this github issue for ruby: https://github.com/redis/redis-rb/issues/524
I have the timeout set to 10 seconds which certainly helps, I think the issue is how gunicorn/gevent handle web requests. I think each request spawns a new redis connection, and as far as I can see there is no global pool I can use :( On heroku you are limited to 20 connections in the free tier, and it quickly gets expensive.
Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
171–180 of 268 posts
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#172This sounds great. How suitable do you think this is for CPU-intensive work? I'm interested in having servers for scientific-computational work, which would be rather CPU-heavy. It would be great to offload some of this to a nearby browser for bits and pieces that desire low-latency.
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#173Earlier quoted context omitted.
They originally had (and seem to still have) the same JS runtime at the edge to give you a smart CDN/reverse proxy. They just updated it from being JS only to being able to run any Docker image. Cloudflare gives you a persistent key/value store and Fly provides a non-persistent Redis cache. You don’t have to move your entire app but there are plenty of use-cases where you can move more logic to the edge.
We’re moving the JS apps to just run on Deno containers. Deno is fabulous.
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#174Earlier quoted context omitted.
How do you currently host your Docker container at edge nodes? (It's a facetious question: unless you're a $100B company you're not doing anything of the sort.)
Why would I care? I have That's not meant to be a snarky question, I genuinely don't understand what business problem that's going to be solved by saving at most 30 ms. Anything written in Rails/Django, talking to a DB, etc. is going to have request latency dominated by other parts of the stack.
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#175I've gotten several friends to switch and they've all said the same thing. If you haven't given it a shot yet, there's a simple 1 click Heroku to Fly deployment you can use to give them a shot.
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#176Neat idea, but what about my database? Where does that live? Do you do anything to speed up latency from the edge to the database?
You should also checkout something like FaunaDB.
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#177Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#178> 2. Max monthly spend: unexpected traffic spikes happen, and the thought of spending an unbounded amount of money in a month is really uncomfortable. You can configure fly.io apps with a max monthly budget, we'll suspend them when they hit that budget, and then re-enable them at the beginning of the next month. I like this, not having caps is a major problem with some of your competition for smaller projects/compani…
I don't think I like the failure mode of your app getting slower (losing your ApplicationDN) right at the time it's really popular. I don't have a better solution though.
Don't host in such a way that you're paying for traffic... Hetzner, OVH and Packet all have dedicated servers where you don't pay for the traffic, inbound or outbound.
Edit: judging by other comments here, it might seem like US zone of Fly.io is in fact hosted in Packet so they are probably themselves not paying for the traffic. Maybe they are using Hetzner for the EU zone (or OVH for that matter).
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#179So it’s google cloud run that scales to many servers?
(Cloud Run PM here) Cloud Run automatically scales your container image to thousands of container instances ("servers") if needed, maybe you mean "scales to many regions"?
Re: Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
#180Pairing this with a global sql (cough cockroach cough*) is literally the app platform I’ve been dreaming about.
I would like to see more documentation around push based architectures. That is I want to build a system where a process pushes to the Redis in fly but is not running itself in fly. Basically something that may be unrouteable for pulls.
In any case congrats fly team!