Home / Companies / Fly.io / Blog / September 2022

September 2022 Summaries

3 posts from Fly.io

Filter
Month: Year:
Post Summaries Back to Blog
Fly.io introduces LiteFS, an open-source distributed file system for SQLite designed to improve latency and simplify web app development. The tool allows developers to run full-stack applications on SQLite, which is often overlooked in favor of more traditional databases like Postgres or MySQL. By leveraging the advantages of SQLite's design, LiteFS aims to offer the best of both n-tier database designs and in-core databases. The tool supports features such as WAL-mode support, write forwarding, S3 replication, and encryption for enhanced security.
Sep 21, 2022 2,050 words in the original blog post.
The blog post discusses the process of setting up a scale-to-zero Minecraft server using Fly.io and Terraform, which allows the server to automatically shut down when not in use and start up again when needed. It highlights the ease of using Terraform to manage configuration and resource provisioning, as well as the benefits of using Fly Machines for quick start and stop functionality through a REST API. The post outlines the steps to create the necessary resources, including a Fly.io app, a volume for data persistence, a public IP address, and a Fly Machine running the Minecraft server with an Autostop feature. Additionally, it warns about potential access and cost issues, suggesting configuration options for secure server access and emphasizing the importance of the scale-to-zero feature to manage costs effectively. The post concludes by advising on how to destroy the server app when it is no longer needed to avoid unnecessary charges.
Sep 14, 2022 1,437 words in the original blog post.
SQLite is a unique embedded database that not only has a transactional, b-tree storage layer but also includes a robust SQL execution engine. This article delves into the process of parsing, optimizing, and executing SQL queries in SQLite using an analogy of a sandwich-making machine. The first step involves tokenizing or lexing the input query to group characters together into meaningful tokens such as SELECT or FROM. Then, the parser builds a structure called an Abstract Syntax Tree (AST) that represents the parsed query. After parsing, SQLite uses statistics about its tables' contents to determine the optimal way to execute a query and avoid full table scans. Finally, SQLite executes the optimized plan using a virtual machine approach with domain-specific commands for database operations. Understanding this process can help improve application performance by reusing prepared statements and analyzing execution plans.
Sep 07, 2022 2,523 words in the original blog post.