Best of Fly.io2025

  1. 1
    Video
    Avatar of flydotioFly.io·2y

    Dockerfiles for absolute beginners

    Containerized apps are common, but Dockerfile complexity can intimidate newcomers. This guide breaks down Dockerfile basics, including instructions, layers, and multi-stage builds. You can generate Dockerfiles using tools like fly.io and npm packages to simplify the process.

  2. 2
    Video
    Avatar of flydotioFly.io·1y

    Using web sockets on Next.js | NO third party solution

    Learn how to implement WebSockets in a Next.js application without using third-party services by leveraging traditional servers on Fly.io. The post explains the setup and configuration required to create a custom server for handling WebSocket connections, illustrated with a simple chat application example.

  3. 3
    Article
    Avatar of flydotioFly.io·37w

    Litestream VFS

    Litestream VFS is a SQLite plugin that enables querying databases directly from object storage backups without downloading the entire database. It supports point-in-time recovery through SQL pragmas, allowing instant queries against historical database states. The system uses LTX file format for efficient page-level compaction, fetches only needed pages via S3 range requests, implements LRU caching for hot pages, and can maintain near-realtime replicas by polling backup storage every second. The VFS module works as a plugin to existing SQLite installations without requiring application modifications.

  4. 4
    Article
    Avatar of flydotioFly.io·44w

    Corrosion

    Corrosion is an open-source distributed service discovery system built with Rust, SQLite, and CRDTs that uses gossip protocols instead of distributed consensus. Developed by Fly.io to solve global state synchronization across their platform, it propagates SQLite databases using SWIM-based gossip and cr-sqlite for conflict resolution. The article details major outages caused by the system, including a deadlock bug that locked up their entire proxy fleet, and describes their iterative improvements: watchdogs for event-loop stalls, extensive testing with Antithesis, eliminating partial updates, and regionalizing clusters to reduce blast radius.

  5. 5
    Article
    Avatar of flydotioFly.io·1y

    My AI Skeptic Friends Are All Nuts

    A veteran developer argues against common criticisms of AI-assisted programming, contending that modern LLM coding agents are fundamentally different from simple ChatGPT interactions. The author addresses skeptics' concerns about code quality, hallucination, and craft, arguing that agents can handle tedious coding tasks while developers focus on higher-level decisions. They emphasize that LLMs excel at generating repetitive code, reducing Google searches, and maintaining momentum on projects, while developers retain responsibility for code review and architectural decisions.

  6. 6
    Article
    Avatar of flydotioFly.io·47w

    Litestream v0.5.0 is Here

    Litestream v0.5.0 introduces major performance improvements and point-in-time recovery for SQLite databases. The update replaces the old WAL-based backup system with a new LTX file format that enables transaction-aware backups, hierarchical compaction, and faster restoration. Key changes include eliminating the generations concept for simpler backup management, supporting restoration from an average of just a dozen files, and adding NATS JetStream as a replica option. The upgrade is backwards compatible with existing configurations, though it can't restore from old v0.3.x WAL files. Future plans include a VFS for instant read replicas that can serve pages from S3 while hydrating in the background.

  7. 7
    Article
    Avatar of flydotioFly.io·1y

    Our Best Customers Are Now Robots

    Fly.io is observing a shift where robots are becoming their primary users, leveraging the platform's compute, storage, and networking capabilities. Fly Machines, which function as hardware-virtualized Docker containers, cater to the needs of 'vibe coding' sessions conducted by robots. These sessions require rapid scalability, extensive storage, and precise network control. The platform's flexible design and advanced features are proving valuable, even if initially aimed at human developers.

  8. 8
    Article
    Avatar of flydotioFly.io·1y

    Using Kamal 2.0 in Production

    A comprehensive guide to using Kamal 2.0 for production deployments has been published online, covering the seven essential requirements for getting started and addressing gaps in existing documentation. The guide goes beyond basic tutorials to include production considerations like Docker ecosystem setup, container repositories, load balancers, managed databases, monitoring, logging, and security. It provides opinionated recommendations with alternatives for hosting providers, SSH keys, and other deployment components that real-world projects require.

  9. 9
    Article
    Avatar of flydotioFly.io·1y

    Build Better Agents With MorphLLM

    MorphLLM introduces Morph Fast Apply, a semantic code editing tool that enables AI agents to make precise, context-aware code changes instead of rewriting entire files. The system processes over 4,500 tokens per second with 98% accuracy in ~6 seconds per file, compared to traditional search-and-replace methods that take 35 seconds with 86% accuracy. The tool integrates with popular AI frameworks and offers cloud, self-hosted, and on-premises deployment options.