flyctl
libcluster
Our great sponsors
flyctl | libcluster | |
---|---|---|
543 | 10 | |
1,298 | 1,882 | |
2.5% | - | |
9.9 | 6.4 | |
7 days ago | 5 months ago | |
Go | Elixir | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flyctl
-
Breaking the Myth: Scalable, Multi-Region, Low-Latency App Exists And Will Not Cost You A Kidney.
Create an account on Fly.io.
-
How to use fly.io and Tigris to deploy a Next.js app
You can learn more about fly.io and tigris, we will need to create an account on both platforms for this project regardless. Anyway with the theory out of the way let's get started in the next section as we create our accounts and start building the app.
-
Set up your own personal browser in the Cloud
Fly.io is a platform that helps you run your apps and databases closer to your users all around the world. It takes your app code, packages it up neatly, and puts it on virtual machines that can be quickly started or stopped. This makes your app faster for users and more reliable. Fly.io is easy to use, works well for small projects or personal apps. It's a great way to make sure your app runs smoothly for people no matter where they are.
-
NoSQL Postgres: Add MongoDB compatibility to your Supabase projects with FerretDB
In this post, we'll start from scratch, running FerretDB locally via Docker, trying out the connection with mongosh and the MongoDB Node.js client, and finally deploy FerretDB to Fly.io for a production ready set up.
-
Free tools for developers to build their apps
2- fly.io
-
Top 5 Ways To Host Your Full-Stack App For Free πβ¨
Fly is a cloud platform that focuses on global edge computing. Fly specializes in high-performance hosting and provides a global network of edge locations. Fly is known for its scalability and performance optimizations.
-
Tech stack used for SaaS
But videototextai.com is built using NextJS + Firebase auth + Firestore and a backend deployed at fly.io . Fly makes it really easy to deploy docker containers and that is IMO the fastest way to develop, you can setup a local setup
-
Is it still worth choosing Heroku in 2023?
Alternatives explored: * northflank: While running the wrk test, requests were taking 3-7 seconds. Couldn't repeat Heroku's phenomenon of "400ms-800ms" during such a load test. * fly.io: Reliability: Itβs Not Great * render.com: I remember the time when indiehackers.com was down because of an outage on Render, not sure if it's worth trusting.
-
what do I do in the meantime?
For personal/portfolio projects fly.io and render.com both have free tiers that support the major backend frameworks and Postgres at the very least (although I think with Render at least the DB expires and has to be reloaded after a certain amount of time, have not personally tried it).
-
Easy way to publish your project.
We must download and install CLI for fly.io. If you use Windows, you can download the installer by this link. Or you can also use PowerShell script as well.
libcluster
-
Elixir clustering using Postgres
libcluster is the go-to package for connecting multiple BEAM instances and setting up healing strategies. libcluster provides out-of-the-box strategies and it allows users to define their own strategies by implementing a simple behavior that defines cluster formation and healing according to the supporting service you want to use.
- Phoenix 1.7 for Elixir: Edit a Form in a Modal
- Elixir for Ruby developers: the three most important differences
-
cannot query kubernetes (unauthorized): endpoints is forbidden: User cannot list endpoints in the namespace
I am using libcluster to connect my nodesI get the following error:
-
We used Elixir's Observer to hunt down bottlenecks
Distributed Elixir can be done with Docker containers too, see https://github.com/bitwalker/libcluster which by default has some Kubernetes support but you can also have third party (or custom) clustering strategies. I've not done this myself but I've seen articles about this a lot during the past years.
Hot code updates for most applications aren't really worth it in my opinion, assuming you do something like blue/green rollover deployments. It's cool that it's possible though. But it requires appup files and afaik Distillery is one of the release tools that has support for it built-in.
-
If you were in charge of a startup tech stack, how would you use elixir to actually scale and make every work seamlessly?
On the deployment level, you can use synchronous communication using API-based solutions or asynchronous communication using external solutions (RabbitMQ, Kafka,...) or Erlang/Elixir tools (message passing, pg2, PubSub, Libcluster,...)
- Nodes
- Nodes Elixir
-
Clustering nodes with different basenames
Looking throught libcluster code (https://github.com/bitwalker/libcluster/blob/master/lib/strategy/kubernetes_dns.ex#L150) it does seem to require that both nodes share the same basename.
-
Building a Distributed Turn-Based Game System in Elixir
libcluster β Automatic cluster formation/healing for Elixir applications.
What are some alternatives?
vercel - Develop. Preview. Ship.
horde - Horde is a distributed Supervisor and Registry backed by DeltaCrdt
supabase - The open source Firebase alternative.
Nomad - Elixir/Phoenix Cloud SDK and Deployment Tool
s6-overlay - s6 overlay for containers (includes execline, s6-linux-utils & a custom init)
Kubex - Kubex is the kubernetes integration for Elixir projects and it is written in pure Elixir.
podman-compose - a script to run docker-compose.yml using podman
ex_aws - A flexible, easy to use set of clients AWS APIs for Elixir
Dokku - A docker-powered PaaS that helps you build and manage the lifecycle of applications
discovery - An OTP application for auto-discovering services with Consul
litestream - Streaming replication for SQLite.
erlcloud - AWS APIs library for Erlang (Amazon EC2, S3, SQS, DDB, ELB and etc)