<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pavel</title>
    <description>The latest articles on DEV Community by Pavel (@pavel-hostim).</description>
    <link>https://dev.to/pavel-hostim</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3411990%2Fe76abcc2-c7fa-4249-925b-8bf480881642.jpeg</url>
      <title>DEV Community: Pavel</title>
      <link>https://dev.to/pavel-hostim</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pavel-hostim"/>
    <language>en</language>
    <item>
      <title>How to Upgrade Postgres to 19 in Docker (and the 4 Errors I Hit on the Way)</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Wed, 25 Nov 2026 11:38:20 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/how-to-upgrade-postgres-to-19-in-docker-and-the-4-errors-i-hit-on-the-way-31dl</link>
      <guid>https://dev.to/pavel-hostim/how-to-upgrade-postgres-to-19-in-docker-and-the-4-errors-i-hit-on-the-way-31dl</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer: you can't upgrade Postgres in Docker by changing the image tag.&lt;/strong&gt; &lt;code&gt;postgres:19&lt;/code&gt; refuses to start on a data directory from 17 or 18. You either dump the old cluster and restore it into a fresh 19 one (simple, needs downtime about as long as the restore), or you run &lt;code&gt;pg_upgrade&lt;/code&gt; with both versions' binaries in one container (fast, a few more traps). For a database of a few GB, dump and restore is the one I'd pick.&lt;/p&gt;

&lt;p&gt;PostgreSQL 19 was released on 19 November 2026. I upgraded the same Postgres 17 Docker volume both ways on my laptop with the official images, and hit four errors along the way. All of them are below, with the fix.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I tested
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;postgres:17&lt;/code&gt; (17.12) as the old version – most Docker setups I see are on 16 or 17&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;postgres:19&lt;/code&gt; (19.0) as the new one&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;postgres:18&lt;/code&gt; (18.7), only to check what a plain tag bump does from 18&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The test database: one table with 100,000 rows, a full-text GIN index, a &lt;code&gt;pg_trgm&lt;/code&gt; index, a GiST index on an &lt;code&gt;inet&lt;/code&gt; column through &lt;code&gt;btree_gist&lt;/code&gt;, and one role with an old MD5 password. The data is small on purpose. The point was to hit the upgrade checks, not to time a big restore. Everything here is as of 25 November 2026.&lt;/p&gt;




&lt;h2&gt;
  
  
  Can you just change the image tag?
&lt;/h2&gt;

&lt;p&gt;No. This is what &lt;code&gt;postgres:19&lt;/code&gt; prints when you point it at a volume from 17:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error: in 18+, these Docker images are configured to store database data in a
       format which is compatible with "pg_ctlcluster" (specifically, using
       major-version-specific directory names).  This better reflects how
       PostgreSQL itself works, and how upgrades are to be performed.

       Counter to that, there appears to be PostgreSQL data in:
         /var/lib/postgresql/data

       This is usually the result of upgrading the Docker image without
       upgrading the underlying database using "pg_upgrade" (which requires both
       versions).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From 18 to 19 you get the same error, only the path says &lt;code&gt;/var/lib/postgresql/18/docker&lt;/code&gt;. That's good news: the image stops instead of starting an empty database on top of your data.&lt;/p&gt;

&lt;p&gt;The error also tells you about the second change you have to deal with:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;postgres:17 and older&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;postgres:18 and newer&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Volume mount point&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/var/lib/postgresql/data&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/var/lib/postgresql&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PGDATA&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/var/lib/postgresql/data&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/var/lib/postgresql/&amp;lt;major&amp;gt;/docker&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data checksums on a new cluster&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;td&gt;On&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So if you come from 17 or older, your &lt;code&gt;docker-compose.yml&lt;/code&gt; volume line changes too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;db&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres:19&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;pgdata19:/var/lib/postgresql&lt;/span&gt;   &lt;span class="c1"&gt;# not /var/lib/postgresql/data
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  PostgreSQL 19 breaking changes to check first
&lt;/h2&gt;

&lt;p&gt;The full list is in the &lt;a href="https://www.postgresql.org/docs/release/19.0/" rel="noopener noreferrer"&gt;Migration to Version 19&lt;/a&gt; section of the release notes. These are the ones that can change how a normal app behaves:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change in 19&lt;/th&gt;
&lt;th&gt;What it means for you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;JIT is off by default&lt;/td&gt;
&lt;td&gt;Long analytic queries that relied on JIT may get slower. Set &lt;code&gt;jit = on&lt;/code&gt; if you measured a gain from it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;standard_conforming_strings&lt;/code&gt; is always on&lt;/td&gt;
&lt;td&gt;Old dumps made with it off won't load. Code that relies on backslash escapes in plain &lt;code&gt;'...'&lt;/code&gt; strings breaks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MD5 password login logs a warning&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;WARNING: authenticated with an MD5-encrypted password&lt;/code&gt;. Still works, but move roles to SCRAM now.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RADIUS auth is removed&lt;/td&gt;
&lt;td&gt;If &lt;code&gt;pg_hba.conf&lt;/code&gt; uses &lt;code&gt;radius&lt;/code&gt;, the server won't accept those logins.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;max_locks_per_transaction&lt;/code&gt; default is 128 (was 64)&lt;/td&gt;
&lt;td&gt;Uses a bit more shared memory. Only matters if you had set it by hand.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;io_workers&lt;/code&gt; is removed&lt;/td&gt;
&lt;td&gt;Remove it from your &lt;code&gt;postgresql.conf&lt;/code&gt; if you set it in 18. Four new settings replace it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;btree_gist&lt;/code&gt; &lt;code&gt;inet&lt;/code&gt;/&lt;code&gt;cidr&lt;/code&gt; index operator classes&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pg_upgrade&lt;/code&gt; refuses clusters that use them. Dump and restore doesn't care.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;json_array()&lt;/code&gt; over zero rows returns &lt;code&gt;[]&lt;/code&gt;, not &lt;code&gt;NULL&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Check code that tests the result for &lt;code&gt;NULL&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full-text search and &lt;code&gt;pg_trgm&lt;/code&gt; follow the database locale provider&lt;/td&gt;
&lt;td&gt;Reindex those indexes after the upgrade.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two more for people who use them: logical replication now copies sequence values, and the new &lt;code&gt;REPACK (CONCURRENTLY)&lt;/code&gt; rewrites a bloated table without blocking reads and writes, which is what most people install &lt;code&gt;pg_repack&lt;/code&gt; for.&lt;/p&gt;




&lt;h2&gt;
  
  
  Option 1: upgrade with pg_dumpall and restore
&lt;/h2&gt;

&lt;p&gt;This is the boring way and it worked the first time. Stop your app first so nothing writes during the dump.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Dump the old server with the new client.&lt;/strong&gt; The PostgreSQL docs recommend running the newer &lt;code&gt;pg_dumpall&lt;/code&gt; against the old server. With Compose, put the old database on a network the dump container can reach (here the network is &lt;code&gt;myapp_default&lt;/code&gt; and the service is &lt;code&gt;db&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose stop app
docker run --rm --network myapp_default -e &lt;span class="nv"&gt;PGPASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$POSTGRES_PASSWORD"&lt;/span&gt; \
  postgres:19 pg_dumpall -h db -U app &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; dump.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Start an empty 19 server on a new volume.&lt;/strong&gt; Keep the old volume. It is your rollback.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;db&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres:19&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_USER&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_PASSWORD}&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_DB&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;pgdata19:/var/lib/postgresql&lt;/span&gt;

&lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pgdata19&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Restore.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d db
docker compose &lt;span class="nb"&gt;exec&lt;/span&gt; -T db psql -U app -d postgres &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; dump.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll see &lt;code&gt;ERROR: role "app" already exists&lt;/code&gt;. That's expected, because the image already created the user from &lt;code&gt;POSTGRES_USER&lt;/code&gt;. Every other line should be clean.&lt;/p&gt;

&lt;p&gt;On my test data the dump took 0.4 seconds and the restore 3.5 seconds for a 10 MB file. Restore time grows with data size and the number of indexes, so time it on a copy of your real database before you plan the downtime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Check.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="n"&gt;jit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                       &lt;span class="c1"&gt;-- off on 19&lt;/span&gt;
&lt;span class="no"&gt;SHOW&lt;/span&gt; &lt;span class="n"&gt;max_locks_per_transaction&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;-- 128 on 19&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One nice side effect: the dump writes &lt;code&gt;USING gist (client)&lt;/code&gt; without the operator class, so the &lt;code&gt;inet&lt;/code&gt; index came back on the new built-in &lt;code&gt;inet_ops&lt;/code&gt; class. The &lt;code&gt;btree_gist&lt;/code&gt; problem from Option 2 never shows up.&lt;/p&gt;




&lt;h2&gt;
  
  
  Option 2: pg_upgrade --link in Docker
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;pg_upgrade --link&lt;/code&gt; doesn't copy table files, it hard-links them into the new cluster. On a big database that is minutes instead of hours. The catch: &lt;code&gt;pg_upgrade&lt;/code&gt; needs the binaries of &lt;strong&gt;both&lt;/strong&gt; versions, and the official image has only one. I built a small image with both:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt; postgres:19
&lt;span class="k"&gt;RUN&lt;/span&gt; sed -i &lt;span class="s1"&gt;'s/$/ 17/'&lt;/span&gt; /etc/apt/sources.list.d/pgdg.list \
 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; apt-get update \
 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; apt-get install -y --no-install-recommends postgresql-17 \
 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; rm -rf /var/lib/apt/lists/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build -t pg-upgrade:17-to-19 .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--link&lt;/code&gt; needs the old and new data directories on the same filesystem. So mount the volume one level up, at &lt;code&gt;/var/lib/postgresql&lt;/code&gt;. Then the old data sits in &lt;code&gt;data/&lt;/code&gt; and the new cluster goes into &lt;code&gt;19/docker/&lt;/code&gt;, the path the 19 image expects. Here is the script I ended up with, errors included:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```bash title="upgrade.sh"&lt;/p&gt;

&lt;h1&gt;
  
  
  !/bin/sh
&lt;/h1&gt;

&lt;p&gt;set -e&lt;br&gt;
OLD=/var/lib/postgresql/data&lt;br&gt;
NEW=/var/lib/postgresql/19/docker&lt;br&gt;
mkdir -p "$NEW" &amp;amp;&amp;amp; chown -R postgres:postgres /var/lib/postgresql&lt;br&gt;
cd /var/lib/postgresql   # pg_upgrade writes its scripts to the current directory&lt;/p&gt;
&lt;h1&gt;
  
  
  create the new cluster once, so a real run after --check reuses it
&lt;/h1&gt;

&lt;p&gt;[ -f "$NEW/PG_VERSION" ] || \&lt;br&gt;
  gosu postgres /usr/lib/postgresql/19/bin/initdb -D "$NEW" -U app --no-data-checksums&lt;br&gt;
gosu postgres /usr/lib/postgresql/19/bin/pg_upgrade \&lt;br&gt;
  -b /usr/lib/postgresql/17/bin -B /usr/lib/postgresql/19/bin \&lt;br&gt;
  -d "$OLD" -D "$NEW" -U app --link "$@"&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


Stop the database, **back up the volume**, then do a dry run first:



```bash
docker compose stop
docker run --rm -v myapp_pgdata:/var/lib/postgresql -v ./upgrade.sh:/upgrade.sh:ro \
  pg-upgrade:17-to-19 /upgrade.sh --check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;-U app&lt;/code&gt; has to be the user that created the old cluster, which is your &lt;code&gt;POSTGRES_USER&lt;/code&gt;. That's where it went wrong for me twice.&lt;/p&gt;
&lt;h3&gt;
  
  
  Error 1: "old cluster does not use data checksums but the new one does"
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Checking cluster versions                                     ok

old cluster does not use data checksums but the new one does
Failure, exiting
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Since PostgreSQL 18, &lt;code&gt;initdb&lt;/code&gt; turns data checksums on by default. The 17 image didn't. Both clusters must match, so the new one needs &lt;code&gt;--no-data-checksums&lt;/code&gt; (it's already in the script above). If you want checksums, turn them on later with &lt;code&gt;pg_checksums --enable&lt;/code&gt; while the server is stopped.&lt;/p&gt;
&lt;h3&gt;
  
  
  Error 2: "Checking for uses of gist_inet_ops/gist_cidr_ops fatal"
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Checking for uses of gist_inet_ops/gist_cidr_ops              fatal

Your installation contains indexes that use the btree_gist extension's
gist_inet_ops or gist_cidr_ops operator classes, which cannot be
binary-upgraded.  Replace them with indexes that use the built-in GiST
inet_ops operator class.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If you ever created a GiST index on an &lt;code&gt;inet&lt;/code&gt; or &lt;code&gt;cidr&lt;/code&gt; column with &lt;code&gt;btree_gist&lt;/code&gt; installed, it used the extension's operator class, because that was the default. Find them on the &lt;strong&gt;old&lt;/strong&gt; server and rebuild them on the built-in class:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relname&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="k"&gt;index&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relname&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_index&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;pg_class&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;indexrelid&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;pg_class&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;indrelid&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;pg_opclass&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;ANY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;indclass&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;opcname&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'gist_inet_ops'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'gist_cidr_ops'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="no"&gt;CONCURRENTLY&lt;/span&gt; &lt;span class="n"&gt;posts_client_new&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;posts&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="n"&gt;gist&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="n"&gt;inet_ops&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;DROP&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="no"&gt;CONCURRENTLY&lt;/span&gt; &lt;span class="n"&gt;posts_client&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="n"&gt;posts_client_new&lt;/span&gt; &lt;span class="no"&gt;RENAME&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;posts_client&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that the real run went through:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Upgrade Complete
----------------
Some statistics are not transferred by pg_upgrade.
Once you start the new server, consider running these two commands:
    /usr/lib/postgresql/19/bin/vacuumdb -U app --all --analyze-in-stages --missing-stats-only
    /usr/lib/postgresql/19/bin/vacuumdb -U app --all --analyze-only
Running this script will delete the old cluster's data files:
    ./delete_old_cluster.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;--link&lt;/code&gt;, the old cluster is gone for good once the new one starts. Your rollback is the backup you took, not the old directory.&lt;/p&gt;

&lt;h3&gt;
  
  
  Error 3: the 19 image still won't start
&lt;/h3&gt;

&lt;p&gt;Change the Compose file to &lt;code&gt;postgres:19&lt;/code&gt; with the volume on &lt;code&gt;/var/lib/postgresql&lt;/code&gt;, and you get the "in 18+, these Docker images…" error from the top of this post again. The image sees the old &lt;code&gt;data/&lt;/code&gt; directory and stops. Only after &lt;code&gt;pg_upgrade&lt;/code&gt; printed &lt;code&gt;Upgrade Complete&lt;/code&gt;, save the old &lt;code&gt;pg_hba.conf&lt;/code&gt; (you need it for error 4), then delete the old directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm -v myapp_pgdata:/var/lib/postgresql alpine sh -c \
  &lt;span class="s1"&gt;'cp /var/lib/postgresql/data/pg_hba.conf /var/lib/postgresql/pg_hba.conf.17 \
   &amp;amp;&amp;amp; rm -rf /var/lib/postgresql/data'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Error 4: "no pg_hba.conf entry for host"
&lt;/h3&gt;

&lt;p&gt;The server started, and my app couldn't connect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FATAL:  no pg_hba.conf entry for host "172.30.0.4", user "app", database "app", no encryption
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The official image adds the &lt;code&gt;host all all all scram-sha-256&lt;/code&gt; line to &lt;code&gt;pg_hba.conf&lt;/code&gt; when it creates a new database. Our &lt;code&gt;initdb&lt;/code&gt; ran by hand, so the new &lt;code&gt;pg_hba.conf&lt;/code&gt; only allows localhost. Copy the old file back and reload:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose &lt;span class="nb"&gt;exec&lt;/span&gt; db sh -c \
  &lt;span class="s1"&gt;'cp /var/lib/postgresql/pg_hba.conf.17 /var/lib/postgresql/19/docker/pg_hba.conf'&lt;/span&gt;
docker compose &lt;span class="nb"&gt;exec&lt;/span&gt; db psql -U app -c &lt;span class="s2"&gt;"SELECT pg_reload_conf()"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you changed &lt;code&gt;postgresql.conf&lt;/code&gt; on the old server, compare it with the new one too. &lt;code&gt;pg_upgrade&lt;/code&gt; doesn't carry over any config.&lt;/p&gt;

&lt;h3&gt;
  
  
  After the upgrade
&lt;/h3&gt;

&lt;p&gt;Run the statistics step that &lt;code&gt;pg_upgrade&lt;/code&gt; asked for, update extensions, and reindex text search:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose &lt;span class="nb"&gt;exec&lt;/span&gt; db vacuumdb -U app --all --analyze-in-stages --missing-stats-only
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# in my case one line: ALTER EXTENSION "btree_gist" UPDATE;  (1.7 -&amp;gt; 1.9)&lt;/span&gt;
docker compose &lt;span class="nb"&gt;exec&lt;/span&gt; db psql -U app -d postgres -f /var/lib/postgresql/update_extensions.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;REINDEX&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="no"&gt;CONCURRENTLY&lt;/span&gt; &lt;span class="n"&gt;posts_fts&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;REINDEX&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="no"&gt;CONCURRENTLY&lt;/span&gt; &lt;span class="n"&gt;posts_trgm&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;pg_upgrade&lt;/code&gt; writes &lt;code&gt;update_extensions.sql&lt;/code&gt; (and &lt;code&gt;delete_old_cluster.sh&lt;/code&gt;) to the current directory of the upgrade container. That's why the script does &lt;code&gt;cd /var/lib/postgresql&lt;/code&gt; first. Without it, the files are gone when the container exits.&lt;/p&gt;




&lt;h2&gt;
  
  
  Dump/restore or pg_upgrade: which one to pick
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;pg_dumpall + restore&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;pg_upgrade --link&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Downtime&lt;/td&gt;
&lt;td&gt;Dump + restore time, grows with data size&lt;/td&gt;
&lt;td&gt;Seconds to minutes, almost independent of size&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Needs both versions' binaries&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, custom image&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data checksums mismatch&lt;/td&gt;
&lt;td&gt;Not a problem&lt;/td&gt;
&lt;td&gt;Must match (&lt;code&gt;--no-data-checksums&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;btree_gist&lt;/code&gt; inet/cidr indexes&lt;/td&gt;
&lt;td&gt;Not a problem&lt;/td&gt;
&lt;td&gt;Must be rebuilt first&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;pg_hba.conf&lt;/code&gt; / &lt;code&gt;postgresql.conf&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Image defaults, re-apply your changes&lt;/td&gt;
&lt;td&gt;Copy them over by hand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rollback&lt;/td&gt;
&lt;td&gt;Old volume untouched&lt;/td&gt;
&lt;td&gt;Only from a backup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Errors I hit&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My rule of thumb: if the restore fits in the downtime you can accept, dump and restore. It has fewer moving parts, the old volume stays as a rollback, and the indexes come back clean. Use &lt;code&gt;pg_upgrade --link&lt;/code&gt; when the database is big enough that a restore would take hours.&lt;/p&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When was PostgreSQL 19 released?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;PostgreSQL 19.0 was released on 19 November 2026. The official Docker image postgres:19 shipped 19.0 at the same time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I upgrade Postgres in Docker by changing the image tag?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. Major versions use different data formats. Since postgres:18, the official image refuses to start when it finds data from an older version and prints 'in 18+, these Docker images are configured to store database data in a format which is compatible with pg_ctlcluster'. You need pg_dumpall and a restore, or pg_upgrade with both versions' binaries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does postgres:19 say there is data in /var/lib/postgresql/data?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since postgres:18 the image keeps data in /var/lib/postgresql//docker and expects the volume on /var/lib/postgresql. An old volume mounted at /var/lib/postgresql/data, or an old data directory left inside the new mount, makes the image stop instead of creating a new empty database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I run pg_upgrade in Docker?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Build an image from postgres:19 that also installs postgresql-17 (or your old version) from the PGDG apt repository. Mount the volume at /var/lib/postgresql so both data directories are on one filesystem, initdb the new cluster in /var/lib/postgresql/19/docker with the same user and checksum setting as the old one, then run pg_upgrade --link with -b and -B pointing at both bin directories. Run it with --check first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What breaks when upgrading to PostgreSQL 19?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For most apps: JIT is off by default, standard_conforming_strings can no longer be turned off, MD5 password logins log a warning, RADIUS auth is removed, and json_array() over zero rows returns an empty array instead of NULL. pg_upgrade also refuses btree_gist inet/cidr indexes and clusters whose data checksum setting differs from the new one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do MD5 passwords still work in PostgreSQL 19?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes, but every login with an MD5 password logs 'WARNING: authenticated with an MD5-encrypted password' and the docs say MD5 support will be removed in a future release. Set password_encryption to scram-sha-256 and reset the passwords to move the roles to SCRAM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I use pg_dumpall or pg_upgrade?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use pg_dumpall and restore if the restore fits into your downtime window: fewer steps, the old volume stays as a rollback, and indexes are rebuilt cleanly. Use pg_upgrade --link for large databases where a restore would take hours, and take a backup first, because the old cluster can't be started after the new one has run.&lt;/p&gt;




&lt;p&gt;More on running Postgres yourself: &lt;a href="https://hostim.dev/blog/self-host-postgres-vs-supabase/" rel="noopener noreferrer"&gt;self-hosted Postgres vs Supabase&lt;/a&gt; and our &lt;a href="https://hostim.dev/blog/postgres-benchmark-rds-vs-hostim-vs-self-hosted/" rel="noopener noreferrer"&gt;Postgres benchmark of RDS, Hostim and a self-hosted server&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you'd rather not plan major upgrades yourself, &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; runs &lt;a href="https://hostim.dev/docs/services/postgresql" rel="noopener noreferrer"&gt;managed PostgreSQL&lt;/a&gt; next to your apps in the EU, on a flat monthly price.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://console.hostim.dev/dashboard?preview=1&amp;amp;modal=1&amp;amp;compose=1&amp;amp;utm_source=devto" rel="noopener noreferrer"&gt;&lt;strong&gt;Deploy an app with Postgres on Hostim, free 5-day trial, no card&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated: 25 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>docker</category>
      <category>database</category>
      <category>devops</category>
    </item>
    <item>
      <title>Valkey vs Redis in 2026: What Is Different and What Breaks When You Switch</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Wed, 11 Nov 2026 12:44:54 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/valkey-vs-redis-in-2026-what-is-different-and-what-breaks-when-you-switch-75i</link>
      <guid>https://dev.to/pavel-hostim/valkey-vs-redis-in-2026-what-is-different-and-what-breaks-when-you-switch-75i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer: for a cache or a job queue, Valkey and Redis are the same thing in 2026.&lt;/strong&gt; Same protocol, same commands, same clients, and on my bench the same speed – within a few percent, and the run-to-run noise was bigger than the gap. The real differences are the licence, the features Redis 8 added on top of the core, and one ugly migration trap: a single stream key written by Redis 8.10 stops Valkey from loading the snapshot or replicating from it.&lt;/p&gt;

&lt;p&gt;So pick &lt;strong&gt;Valkey&lt;/strong&gt; if you want a BSD-licensed server run by the Linux Foundation, or your cloud already defaults to it. Pick &lt;strong&gt;Redis&lt;/strong&gt; if you use Redis Query Engine, Time Series, the probabilistic types beyond Bloom, or vector sets, or if you just don't want to think about a migration. If you are on Redis 8 today and want to move, read the migration section first.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I tested
&lt;/h2&gt;

&lt;p&gt;I did not want to write another comparison from release notes, so I ran both on my laptop (AMD Ryzen AI 7 PRO 450, 16 threads, Docker) with the official images:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;redis:8.10.3&lt;/code&gt; – the latest Redis stable, released 26 October 2026&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;valkey/valkey:9.1.3&lt;/code&gt; – the latest Valkey stable, same day&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;valkey/valkey-bundle&lt;/code&gt; – Valkey 9.1.3 plus the JSON, Bloom, Search and LDAP modules&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then I tried every way of moving data I could think of: copying the RDB snapshot, replication, and &lt;code&gt;MIGRATE&lt;/code&gt;, with one key type at a time. Results are below. Everything here is as of 11 November 2026 – both projects ship a new minor every few months, so check the versions before you trust any of it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Valkey vs Redis at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Redis 8.10&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Valkey 9.1&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Licence&lt;/td&gt;
&lt;td&gt;RSALv2, SSPLv1 or AGPLv3 (your pick)&lt;/td&gt;
&lt;td&gt;BSD-3-Clause&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run by&lt;/td&gt;
&lt;td&gt;Redis Ltd.&lt;/td&gt;
&lt;td&gt;Linux Foundation, open governance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forked from / based on&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;td&gt;Redis OSS 7.2.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wire protocol&lt;/td&gt;
&lt;td&gt;RESP2 + RESP3&lt;/td&gt;
&lt;td&gt;RESP2 + RESP3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Existing clients (redis-py, ioredis, go-redis, Jedis…)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes, with small gotchas (see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JSON&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;Module (&lt;code&gt;valkey-json&lt;/code&gt;, in valkey-bundle)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search / query engine&lt;/td&gt;
&lt;td&gt;Built in (Redis Query Engine)&lt;/td&gt;
&lt;td&gt;Module (&lt;code&gt;valkey-search&lt;/code&gt;), smaller command set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bloom filter&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;Module (&lt;code&gt;valkey-bloom&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cuckoo, Count-Min, Top-K, T-Digest&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time Series&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;No official module&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vector sets&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash field expiration (&lt;code&gt;HEXPIRE&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Since 7.4&lt;/td&gt;
&lt;td&gt;Since 9.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Throughput, my bench, 4 I/O threads&lt;/td&gt;
&lt;td&gt;~650–700k ops/s&lt;/td&gt;
&lt;td&gt;~650–700k ops/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Loads the other one's RDB&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Only core types, and not streams from 8.10&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Licences: how we got here
&lt;/h2&gt;

&lt;p&gt;The short history, because it is the whole reason Valkey exists:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;20 March 2024&lt;/strong&gt; – Redis moved from BSD to a dual RSALv2/SSPLv1 licence, starting with Redis 7.4 (&lt;a href="https://redis.io/blog/redis-adopts-dual-source-available-licensing/" rel="noopener noreferrer"&gt;Redis blog&lt;/a&gt;). Neither is an open-source licence by the OSI definition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;28 March 2024&lt;/strong&gt; – The Linux Foundation announced Valkey, a fork of Redis 7.2.4 under the old BSD licence, backed by AWS, Google Cloud, Oracle, Ericsson and Snap (&lt;a href="https://www.linuxfoundation.org/press/linux-foundation-launches-open-source-valkey-community" rel="noopener noreferrer"&gt;LF press release&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1 May 2025&lt;/strong&gt; – Redis 8.0 added AGPLv3 as a third option (&lt;a href="https://redis.io/blog/agplv3/" rel="noopener noreferrer"&gt;Redis blog&lt;/a&gt;). So Redis is open source again, but copyleft.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What this means in practice: if you run Redis as a cache behind your own app, AGPLv3 asks nothing of you. If you sell Redis as a service, or ship a modified Redis inside a product, you need a lawyer for Redis and you don't for Valkey. Most people reading this are in the first group.&lt;/p&gt;




&lt;h2&gt;
  
  
  Valkey vs Redis performance
&lt;/h2&gt;

&lt;p&gt;Both projects publish big numbers. Valkey 8.0 claimed 1.19 million requests per second on a 16-core Graviton box (&lt;a href="https://valkey.io/blog/unlock-one-million-rps/" rel="noopener noreferrer"&gt;Valkey blog&lt;/a&gt;). Redis 8 claimed "up to 2x more operations per second" (&lt;a href="https://redis.io/blog/redis-8-ga/" rel="noopener noreferrer"&gt;Redis blog&lt;/a&gt;). Both numbers are real, and both are each project measured against its own older version, not against the other one.&lt;/p&gt;

&lt;p&gt;My run: server pinned to 4 cores, the benchmark client on 8 other cores, persistence off, &lt;code&gt;redis-benchmark -t set,get -n 1000000 -c 100 --threads 4&lt;/code&gt; from the Redis image against both servers. Three runs each.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;SET ops/s&lt;/th&gt;
&lt;th&gt;GET ops/s&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Redis 8.10.3, &lt;code&gt;io-threads 1&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;265–275k&lt;/td&gt;
&lt;td&gt;272–287k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Valkey 9.1.3, &lt;code&gt;io-threads 1&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;254–266k&lt;/td&gt;
&lt;td&gt;270–282k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Redis 8.10.3, &lt;code&gt;io-threads 4&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;615–670k&lt;/td&gt;
&lt;td&gt;676–706k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Valkey 9.1.3, &lt;code&gt;io-threads 4&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;500–700k*&lt;/td&gt;
&lt;td&gt;654–674k&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;*The first Valkey run with 4 threads spent its first few seconds warming up; the other two landed at 658k and 701k.&lt;/p&gt;

&lt;p&gt;That is a tie. Redis was a hair ahead on single-threaded SET, Valkey won one of the threaded SET runs, and the spread inside one server's three runs was bigger than the gap between servers. This is a laptop with tiny 3-byte values and no pipelining, so it tells you nothing about a 64-core box – but it does tell you that the "Valkey is 3x faster" headline is not something you will see on a small server.&lt;/p&gt;

&lt;p&gt;Other people got the same mixed picture on bigger hardware:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Momento, May 2025&lt;/strong&gt; – Valkey 8.1.1 at 999.8k SET/s vs Redis 8.0 at 729.4k on an 8-vCPU Graviton4 (&lt;a href="https://www.gomomento.com/blog/valkey-turns-one-how-the-community-fork-left-redis-in-the-dust/" rel="noopener noreferrer"&gt;Momento&lt;/a&gt;). Momento runs a Valkey-based service, keep that in mind.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lavik, October 2026&lt;/strong&gt; – Redis 8.10.2 at 976k GET/s vs Valkey 9.1.2 at 914k on a 16-vCPU Azure box (&lt;a href="https://lavik.dev/en/benchmarks/redis-valkey/" rel="noopener noreferrer"&gt;Lavik&lt;/a&gt;). Lavik sells its own key-value store, keep that in mind too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One vendor finds Valkey ahead, another finds Redis ahead, and my laptop finds a draw. If speed is the only reason you are switching, don't.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Redis has that Valkey doesn't
&lt;/h2&gt;

&lt;p&gt;Redis 8 pulled the old Redis Stack modules into the core server: JSON, the Query Engine (&lt;code&gt;FT.*&lt;/code&gt;), Time Series, five probabilistic types (Bloom, Cuckoo, Count-Min Sketch, Top-K, T-Digest), and vector sets. Pull &lt;code&gt;redis:8&lt;/code&gt; and they are all there.&lt;/p&gt;

&lt;p&gt;Valkey keeps the core small and ships modules separately. The &lt;code&gt;valkey/valkey-bundle&lt;/code&gt; image adds JSON, Bloom, Search and LDAP (&lt;a href="https://valkey.io/topics/valkey-bundle/" rel="noopener noreferrer"&gt;Valkey docs&lt;/a&gt;). That covers JSON and Bloom. It does not cover Time Series, the other four probabilistic types, or vector sets, and &lt;code&gt;valkey-search&lt;/code&gt; supports only part of the Redis Query Engine.&lt;/p&gt;

&lt;p&gt;If your app uses any of those, the decision is made: stay on Redis.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Valkey has that Redis doesn't
&lt;/h2&gt;

&lt;p&gt;Mostly internals, not commands: a reworked I/O threading model (8.0), a new hash table that saves memory per key (8.1), numbered databases in cluster mode and Multipath TCP (9.0) (&lt;a href="https://valkey.io/blog/introducing-valkey-9/" rel="noopener noreferrer"&gt;Valkey blog&lt;/a&gt;). Redis has caught up on some of it – it added its own I/O threading improvements in 8.4 and its own atomic slot migration. For a single-node cache you will not notice any of this.&lt;/p&gt;




&lt;h2&gt;
  
  
  Client libraries: mostly fine, three gotchas
&lt;/h2&gt;

&lt;p&gt;redis-py, ioredis, node-redis, go-redis, Jedis and Lettuce all work against Valkey without code changes (&lt;a href="https://valkey.io/topics/migration/" rel="noopener noreferrer"&gt;Valkey migration guide&lt;/a&gt;). Valkey also has its own clients (GLIDE, valkey-py, valkey-go, iovalkey), but you don't need them to switch.&lt;/p&gt;

&lt;p&gt;The gotchas, all real and all small:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Valkey says it is Valkey.&lt;/strong&gt; Since 8.0 &lt;code&gt;HELLO&lt;/code&gt; answers &lt;code&gt;server valkey&lt;/code&gt;, and &lt;code&gt;INFO&lt;/code&gt; reports &lt;code&gt;redis_version:7.2.4&lt;/code&gt; forever, with the real version in &lt;code&gt;valkey_version&lt;/code&gt;. I checked on 9.1.3: exactly that. Anything that gates on &lt;code&gt;redis_version&lt;/code&gt; thinks it is talking to Redis 7.2. &lt;code&gt;CONFIG SET extended-redis-compatibility yes&lt;/code&gt; makes &lt;code&gt;HELLO&lt;/code&gt; say &lt;code&gt;server redis&lt;/code&gt; again – that also worked on 9.1.3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;redis-py client-side caching.&lt;/strong&gt; redis-py 8.1.0 refused to enable client-side caching on Valkey 9.1.2 because of the server name (&lt;a href="https://revisit.tech/blog/redis-valkey-and-dragonfly-clients-revisit-your-connection-settings/" rel="noopener noreferrer"&gt;revisit.tech, October 2026&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;go-redis and &lt;code&gt;CLUSTER SHARDS&lt;/code&gt;.&lt;/strong&gt; Valkey 9.1 adds a shard &lt;code&gt;id&lt;/code&gt; field, and go-redis 9.20.0 and older fail with &lt;code&gt;unexpected key "id"&lt;/code&gt;. Fixed in 9.20.1 (&lt;a href="https://www.jusdb.com/blog/valkey-client-breaking-changes-8-to-9" rel="noopener noreferrer"&gt;JusDB, November 2026&lt;/a&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you don't use client-side caching or a cluster, you will probably hit none of them.&lt;/p&gt;




&lt;h2&gt;
  
  
  Migrating from Redis to Valkey: what actually works
&lt;/h2&gt;

&lt;p&gt;This is the part I spent most of the time on, and the part where most comparison posts are too optimistic.&lt;/p&gt;

&lt;p&gt;Valkey's own docs say it plainly: Redis 7.4 and later write data files Valkey cannot read (&lt;a href="https://valkey.io/topics/migration/" rel="noopener noreferrer"&gt;Valkey migration guide&lt;/a&gt;). Redis 8.10 writes RDB version 15. Valkey refuses it by default:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Can't handle RDB format version 15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Valkey 9 has an escape hatch, &lt;code&gt;rdb-version-check relaxed&lt;/code&gt;, which tries to load newer Redis files anyway. Here is what happened with it, one key type at a time, Redis 8.10.3 to Valkey 9.1.3:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Key type&lt;/th&gt;
&lt;th&gt;RDB file copy&lt;/th&gt;
&lt;th&gt;Replication&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;string, string with TTL, hash, list, set, sorted set&lt;/td&gt;
&lt;td&gt;Loads&lt;/td&gt;
&lt;td&gt;Works, live writes too&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;stream&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Fails&lt;/strong&gt; (&lt;code&gt;opcode 27&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Fails&lt;/strong&gt; – link stays down&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hash with field TTL (&lt;code&gt;HEXPIRE&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Fails&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JSON (on valkey-bundle)&lt;/td&gt;
&lt;td&gt;Fails&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bloom (on valkey-bundle)&lt;/td&gt;
&lt;td&gt;Fails&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time Series, vector set, search index&lt;/td&gt;
&lt;td&gt;Fails&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The stream one is the trap. One stream key anywhere in the database and the whole load fails, and so does replication, because replication sends the same RDB format. Streams are not exotic: BullMQ uses them for job events, and plenty of apps use them as a small event log. Key-by-key &lt;code&gt;MIGRATE&lt;/code&gt; did not help either – strings moved fine, the stream came back with &lt;code&gt;ERR Bad data format&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For comparison, a snapshot from an earlier Redis 8 release loaded its stream into Valkey fine in the same test. So this depends on the exact Redis version you are leaving, which is one more reason to test with your own data and not trust a table, including mine.&lt;/p&gt;

&lt;p&gt;The other direction is worse: Redis 8 cannot read a Valkey 9 snapshot at all (&lt;code&gt;Wrong signature trying to load DB from file&lt;/code&gt;). Once you move to Valkey 9 and write data, going back means copying keys, not files.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to migrate safely
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;List your key types.&lt;/strong&gt; Run &lt;code&gt;redis-cli --bigkeys&lt;/code&gt; or a &lt;code&gt;SCAN&lt;/code&gt; with &lt;code&gt;TYPE&lt;/code&gt; on a copy. If you see &lt;code&gt;stream&lt;/code&gt;, a module type, or hashes with field TTLs, plan for them separately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you use JSON, Time Series, search or the probabilistic types, stop here.&lt;/strong&gt; Either stay on Redis or rebuild those keys from your app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the load first.&lt;/strong&gt; Copy last night's &lt;code&gt;dump.rdb&lt;/code&gt; into a throwaway &lt;code&gt;valkey/valkey:9.1&lt;/code&gt; container with &lt;code&gt;--rdb-version-check relaxed&lt;/code&gt; and check the log. If it starts and &lt;code&gt;DBSIZE&lt;/code&gt; matches, you are in the easy case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy case: replicate.&lt;/strong&gt; Start Valkey with &lt;code&gt;rdb-version-check relaxed&lt;/code&gt;, run &lt;code&gt;REPLICAOF &amp;lt;redis-host&amp;gt; 6379&lt;/code&gt;, wait for &lt;code&gt;master_link_status:up&lt;/code&gt;, point the app at Valkey, then &lt;code&gt;REPLICAOF NO ONE&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard case: copy at the app level.&lt;/strong&gt; Move core keys with replication or &lt;code&gt;MIGRATE&lt;/code&gt;, and recreate streams with &lt;code&gt;XRANGE&lt;/code&gt; on the old server and &lt;code&gt;XADD&lt;/code&gt; with the same IDs on the new one. Or, for a cache, just start empty – a cache is supposed to survive that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check your client&lt;/strong&gt; against the three gotchas above, especially if you use client-side caching or Redis Cluster.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your Redis is a pure cache, step 6 is the only one that matters. Point the app at an empty Valkey and let it fill up.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who runs which
&lt;/h2&gt;

&lt;p&gt;The managed market has mostly moved to Valkey as the default:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AWS ElastiCache&lt;/strong&gt; prices Valkey 33% lower than Redis OSS on Serverless and 20% lower on nodes (&lt;a href="https://aws.amazon.com/elasticache/pricing/" rel="noopener noreferrer"&gt;AWS pricing&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render&lt;/strong&gt; runs every new Key Value instance on Valkey 8 since February 2025 (&lt;a href="https://render.com/changelog/new-render-key-value-instances-run-valkey-8" rel="noopener noreferrer"&gt;Render changelog&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heroku Key-Value Store&lt;/strong&gt; runs Valkey (&lt;a href="https://devcenter.heroku.com/changelog-items/3290" rel="noopener noreferrer"&gt;Heroku changelog&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DigitalOcean&lt;/strong&gt; replaced its managed Redis with Managed Caching for Valkey in April 2025 (&lt;a href="https://www.digitalocean.com/products/managed-databases-valkey" rel="noopener noreferrer"&gt;DigitalOcean&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Azure&lt;/strong&gt; went the other way: Azure Managed Redis is built with Redis Ltd.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arch Linux&lt;/strong&gt; replaced &lt;code&gt;redis&lt;/code&gt; with &lt;code&gt;valkey&lt;/code&gt; in its main repository in April 2025 (&lt;a href="https://archlinux.org/news/valkey-to-replace-redis-in-the-extra-repository/" rel="noopener noreferrer"&gt;Arch news&lt;/a&gt;), and Fedora has done the same since Fedora 41.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So if you &lt;code&gt;pacman -S redis&lt;/code&gt; or create a "Redis" on Render today, you may already be running Valkey without knowing it. Check &lt;code&gt;INFO server&lt;/code&gt; for &lt;code&gt;server_name&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Valkey or Redis: which one to pick
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New project, plain cache, sessions or queues:&lt;/strong&gt; either. Take whatever your platform or distro gives you. Valkey if you care about the licence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You use JSON, search, Time Series, vector sets or Cuckoo/Top-K:&lt;/strong&gt; Redis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You sell a hosted service built on it, or ship it inside a product:&lt;/strong&gt; Valkey, or talk to a lawyer about AGPLv3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You run Redis 7.2 or older:&lt;/strong&gt; Valkey is a drop-in upgrade, its docs say so and the RDB format matches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You run Redis 8 and it works:&lt;/strong&gt; there is no performance reason to move. If you move for the licence, follow the steps above and test with a real snapshot first.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is Valkey compatible with Redis?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes at the protocol and command level: Valkey is a fork of Redis 7.2.4 and existing Redis clients connect without code changes. No at the file level for newer Redis: Valkey cannot read RDB files from Redis 7.4 and later by default. Valkey 9 can try with rdb-version-check relaxed, which loads core types but fails on streams written by Redis 8.10, hash field TTLs and all Redis 8 module types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is Valkey faster than Redis?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not in a way you will notice on a small server. On a 4-core test with Redis 8.10.3 and Valkey 9.1.3, both did about 650–700k GET and SET operations per second with 4 I/O threads, and the difference was smaller than the run-to-run noise. Published third-party benchmarks disagree with each other: some show Valkey ahead, some show Redis ahead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I migrate from Redis 8 to Valkey with replication?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sometimes. Valkey 9 can replicate from Redis 8.10 after CONFIG SET rdb-version-check relaxed, and strings, hashes, lists, sets and sorted sets sync, including live writes. A single stream key, a hash with field TTLs or any module type (JSON, Bloom, Time Series) makes the sync fail. Test with a copy of your real data first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I go back from Valkey to Redis?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not with files. Redis 8 rejects Valkey 9 RDB files with 'Wrong signature trying to load DB from file'. You need to copy keys at the application level or with a key-by-key tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is Redis open source again?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since Redis 8.0 (May 2025), Redis is available under AGPLv3 as one of three licence options, alongside RSALv2 and SSPLv1. AGPLv3 is an OSI-approved open-source licence. Valkey stays under the permissive BSD-3-Clause licence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Valkey support JSON and search?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Through modules, not in the core server. The valkey-bundle image includes valkey-json, valkey-bloom, valkey-search and valkey-ldap. There is no official Time Series module, no vector sets, and valkey-search covers only part of the Redis Query Engine command set.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are the main Redis alternatives in 2026?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Valkey is the main drop-in replacement: same protocol, BSD licence, Linux Foundation governance, and the default on AWS ElastiCache, Render, Heroku and DigitalOcean. Other options exist with their own trade-offs, but none is as close to Redis as Valkey.&lt;/p&gt;




&lt;p&gt;If you'd rather not run any of this yourself, &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; gives you EU-hosted apps with managed databases next to them, on a flat monthly price.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://console.hostim.dev/dashboard?preview=1&amp;amp;modal=1&amp;amp;compose=1&amp;amp;utm_source=devto" rel="noopener noreferrer"&gt;&lt;strong&gt;Deploy an app on Hostim, free 5-day trial, no card&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated: November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>redis</category>
      <category>valkey</category>
      <category>database</category>
      <category>caching</category>
    </item>
    <item>
      <title>Preview Environments per Pull Request, for Less Than a Cent an Hour</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Wed, 28 Oct 2026 20:56:33 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/preview-environments-per-pull-request-for-less-than-a-cent-an-hour-53bl</link>
      <guid>https://dev.to/pavel-hostim/preview-environments-per-pull-request-for-less-than-a-cent-an-hour-53bl</guid>
      <description>&lt;p&gt;Short answer: a preview environment on Hostim is just one more app per pull request. A GitHub workflow deploys &lt;code&gt;pr-42-site&lt;/code&gt; and &lt;code&gt;pr-42-api&lt;/code&gt; when the PR opens, redeploys them on every push, comments the links on the PR, and deletes both when the PR is closed or merged. On the smallest plan an app costs about €0.0034 an hour, so a two-app preview that lives for two days is around 33 cents.&lt;/p&gt;

&lt;p&gt;This came up while I was writing our &lt;a href="https://hostim.dev/docs/apps/static-sites" rel="noopener noreferrer"&gt;static site hosting guide&lt;/a&gt;. One of the limits I listed was "no deploy previews", and then I sat there looking at it – we bill by the hour, an app takes 30 seconds to create, and deleting it is one command. The feature was already there, it just had no name.&lt;/p&gt;




&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Every pull request gets its own apps, with their own URLs, built from that PR's code.&lt;/li&gt;
&lt;li&gt;Every push to the PR redeploys them. The URLs stay the same, so the PR comment stays valid.&lt;/li&gt;
&lt;li&gt;The workflow posts one comment with the links and edits it on every push instead of spamming a new one.&lt;/li&gt;
&lt;li&gt;Closing or merging the PR deletes the apps. Billing stops with them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is not only for frontends. The example below deploys a static site &lt;em&gt;and&lt;/em&gt; a small Node API side by side, because that is where the Netlify-style previews stop – they preview your frontend, and your backend is someone else's problem.&lt;/p&gt;




&lt;h2&gt;
  
  
  The workflow
&lt;/h2&gt;

&lt;p&gt;You need three things: a Hostim API token, a project for previews, and this file.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create an API token in the console and add it to the repository as the secret &lt;code&gt;HOSTIM_TOKEN&lt;/code&gt; (Settings → Secrets and variables → Actions).&lt;/li&gt;
&lt;li&gt;Create a project for the previews, once: &lt;code&gt;hostim projects create previews --region eu-center&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;.github/workflows/preview.yml&lt;/code&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;preview&lt;/span&gt;

&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;opened&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;synchronize&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;reopened&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;closed&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# One run per pull request at a time; a new push cancels the old deploy.&lt;/span&gt;
&lt;span class="na"&gt;concurrency&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;group&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;preview-${{ github.event.number }}&lt;/span&gt;
  &lt;span class="na"&gt;cancel-in-progress&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;

&lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;HOSTIM_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.HOSTIM_TOKEN }}&lt;/span&gt;
  &lt;span class="na"&gt;HOSTIM_PROJECT&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;previews&lt;/span&gt;
  &lt;span class="na"&gt;PR&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pr-${{ github.event.number }}&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github.event.action != 'closed'&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v5&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install the Hostim CLI&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;curl -fsSL https://raw.githubusercontent.com/hostimdev/cli/main/install.sh | sh&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deploy the preview&lt;/span&gt;
        &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;api=$(hostim deploy "$PR-api" --source api --port 3000 --plan sa-1-1 \&lt;/span&gt;
            &lt;span class="s"&gt;--env GIT_SHA=${{ github.event.pull_request.head.sha }} -o json | jq -r .url)&lt;/span&gt;
          &lt;span class="s"&gt;site=$(hostim deploy "$PR-site" --source site --plan sa-1-1 -o json | jq -r .url)&lt;/span&gt;
          &lt;span class="s"&gt;echo "api=$api" &amp;gt;&amp;gt; "$GITHUB_OUTPUT"&lt;/span&gt;
          &lt;span class="s"&gt;echo "site=$site" &amp;gt;&amp;gt; "$GITHUB_OUTPUT"&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Post the links on the pull request&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;GH_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.token }}&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;gh pr comment ${{ github.event.number }} --repo ${{ github.repository }} \&lt;/span&gt;
            &lt;span class="s"&gt;--edit-last --create-if-none --body "Preview for ${{ github.event.pull_request.head.sha }}:&lt;/span&gt;
          &lt;span class="s"&gt;- site: ${{ steps.deploy.outputs.site }}&lt;/span&gt;
          &lt;span class="s"&gt;- api: ${{ steps.deploy.outputs.api }}"&lt;/span&gt;

  &lt;span class="na"&gt;cleanup&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github.event.action == 'closed'&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install the Hostim CLI&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;curl -fsSL https://raw.githubusercontent.com/hostimdev/cli/main/install.sh | sh&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Delete the preview apps&lt;/span&gt;
        &lt;span class="c1"&gt;# A deploy that failed early may not have created both apps.&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;for app in "$PR-site" "$PR-api"; do&lt;/span&gt;
            &lt;span class="s"&gt;hostim apps get "$app" &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; hostim apps rm "$app" --yes&lt;/span&gt;
          &lt;span class="s"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What the moving parts do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;hostim deploy &amp;lt;app&amp;gt; --source &amp;lt;dir&amp;gt;&lt;/code&gt; uploads the folder and builds it. If the app does not exist yet, it creates it; if it does, it updates it. That is why the same step covers both "PR opened" and "new push".&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;site/&lt;/code&gt; has an &lt;code&gt;index.html&lt;/code&gt; and no Dockerfile, so the CLI serves it with nginx on port 80 – no &lt;code&gt;--port&lt;/code&gt;, no Dockerfile. For an Astro, Hugo or Next.js site, add your build step before the deploy and point &lt;code&gt;--source&lt;/code&gt; at &lt;code&gt;dist&lt;/code&gt;, &lt;code&gt;public&lt;/code&gt; or &lt;code&gt;out&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;api/&lt;/code&gt; has a Dockerfile, so it is built like any other app. Any language works.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-o json | jq -r .url&lt;/code&gt; gives you the app's URL, so the comment has real links.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;concurrency&lt;/code&gt; with &lt;code&gt;cancel-in-progress&lt;/code&gt; stops two pushes in quick succession from racing each other.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my test repo the whole &lt;code&gt;deploy&lt;/code&gt; job – checkout, CLI install, both apps – took 58 seconds when the PR opened and 50 seconds after a push. The links were up when the comment appeared, the second push edited that comment instead of adding one, and the &lt;code&gt;cleanup&lt;/code&gt; job deleted both apps in 7 seconds after I closed the PR.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;The smallest app plan, &lt;code&gt;sa-1-1&lt;/code&gt; (1 vCPU, 1 GB RAM), is €2.50 a month. Billing is hourly with a one-hour minimum, so:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Preview lives&lt;/th&gt;
&lt;th&gt;1 app&lt;/th&gt;
&lt;th&gt;2 apps (site + API)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 hour&lt;/td&gt;
&lt;td&gt;€0.0034&lt;/td&gt;
&lt;td&gt;€0.0068&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 day&lt;/td&gt;
&lt;td&gt;€0.08&lt;/td&gt;
&lt;td&gt;€0.16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 days&lt;/td&gt;
&lt;td&gt;€0.16&lt;/td&gt;
&lt;td&gt;€0.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 week&lt;/td&gt;
&lt;td&gt;€0.58&lt;/td&gt;
&lt;td&gt;€1.15&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Traffic is included. There is no per-build or per-deploy charge, so pushing twenty times to the same PR costs the same as pushing once. A team that opens 30 PRs a month and merges each within two days pays around €10 for all of their previews.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;I'd rather you hear these from me than find them yourself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No copy of your database.&lt;/strong&gt; A preview app gets whatever env you give it. The cheap option is pointing previews at a shared staging database. A database per PR (&lt;code&gt;hostim db&lt;/code&gt; can create one, and the cleanup job can delete it) costs extra and means you need migrations and seed data that run on an empty database – which is good hygiene, but it is work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pull requests from forks get no secrets.&lt;/strong&gt; GitHub does not pass &lt;code&gt;HOSTIM_TOKEN&lt;/code&gt; to workflows triggered by a fork's PR, so those runs fail at deploy. That is a GitHub safety rule, and for previews of public repos you want it. Run previews for branches in your own repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No CDN.&lt;/strong&gt; A preview runs in Germany like the rest of your apps. For a preview that is fine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You own the workflow.&lt;/strong&gt; It is a YAML file in your repo, not a checkbox. If the cleanup job fails (token expired, GitHub outage), the apps stay up and keep billing until you delete them. &lt;code&gt;hostim apps ls -p previews&lt;/code&gt; shows what is left.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does Hostim have deploy previews?&lt;/strong&gt;&lt;br&gt;
Not as a button. Each pull request becomes its own apps through a GitHub workflow: deploy on open and on every push, delete on close. The full workflow is above.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much does a preview environment cost?&lt;/strong&gt;&lt;br&gt;
About €0.0034 per app per hour on the smallest plan, billed hourly. A two-app preview that lives two days is around 33 cents. Traffic is included and there is no charge per deploy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work for backends, not only static sites?&lt;/strong&gt;&lt;br&gt;
Yes. Anything with a Dockerfile deploys the same way with &lt;code&gt;--port&lt;/code&gt;. The example deploys a static site and a Node API side by side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use the Hostim GitHub Action instead?&lt;/strong&gt;&lt;br&gt;
The &lt;a href="https://github.com/hostimdev/action" rel="noopener noreferrer"&gt;Hostim GitHub Action&lt;/a&gt; rebuilds or redeploys an app that already exists. Previews need apps created and deleted per PR, so this workflow calls the CLI directly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens if I forget to clean up?&lt;/strong&gt;&lt;br&gt;
The cleanup job runs on every close and merge. If it fails, the apps keep running and billing. &lt;code&gt;hostim apps ls -p previews&lt;/code&gt; lists them and &lt;code&gt;hostim apps rm &amp;lt;app&amp;gt; --yes&lt;/code&gt; deletes one.&lt;/p&gt;




&lt;p&gt;If you want previews of the whole thing – frontend, API, worker – and not only the part that fits on a CDN, that is easy on &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt;: EU-hosted, flat monthly price, managed Postgres, MySQL and Redis.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://console.hostim.dev/dashboard?preview=1&amp;amp;modal=1&amp;amp;compose=1&amp;amp;utm_source=devto" rel="noopener noreferrer"&gt;&lt;strong&gt;Deploy an app on Hostim, free 5-day trial, no card&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We're building Hostim.dev to make this simpler, and we are happy to answer any questions.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated and tested: 28 October 2026, with hostim CLI v0.1.54.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>githubactions</category>
      <category>previewenvironments</category>
      <category>ci</category>
      <category>devops</category>
    </item>
    <item>
      <title>Fly.io Pricing 2026: What Changed on 1 October and What It Costs in Europe</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Wed, 14 Oct 2026 08:52:34 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/flyio-pricing-2026-what-changed-on-1-october-and-what-it-costs-in-europe-1pjl</link>
      <guid>https://dev.to/pavel-hostim/flyio-pricing-2026-what-changed-on-1-october-and-what-it-costs-in-europe-1pjl</guid>
      <description>&lt;p&gt;&lt;strong&gt;On 1 October 2026 Fly.io raised the price of Machine RAM from $5 to $6 per GB per month. In practice every Machine now costs $1 more per month for each GB of RAM it has.&lt;/strong&gt; The smallest always-on Machine (&lt;code&gt;shared-cpu-1x&lt;/code&gt;, 256 MB) went from $1.94 to $2.19 in Ashburn (iad) and from $2.02 to $2.28 in Amsterdam. A 1 GB Machine went from $5.70 to $6.70 in iad. Volumes, egress, snapshots and IPv4 prices did not change. The regional price differences in Europe are not new: they date from July 2024.&lt;/p&gt;

&lt;p&gt;Conflict of interest, stated up front: I run &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim.dev&lt;/a&gt;, a flat-priced container host in Germany. A price rise at Fly is good news for me. So every Fly number below links to Fly's own page or to an archived copy of it, and the comparison at the end says where Fly is the better choice.&lt;/p&gt;




&lt;h2&gt;
  
  
  What changed in Fly.io pricing on 1 October 2026?
&lt;/h2&gt;

&lt;p&gt;Fly announced the change on its &lt;a href="https://fly.io/pricing-update/" rel="noopener noreferrer"&gt;2026 Pricing Update&lt;/a&gt; page, subtitled "Effective October 1, 2026". The page was &lt;a href="https://news.ycombinator.com/item?id=49793409" rel="noopener noreferrer"&gt;posted on Hacker News&lt;/a&gt; on 21 September 2026. The two key sentences are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;every Machine "takes more RAM at $6.00 per GB per month, up to 128GB"&lt;/li&gt;
&lt;li&gt;"Machine CPU pricing is unchanged."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I compared the &lt;a href="https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;current pricing page&lt;/a&gt; with the &lt;a href="http://web.archive.org/web/20260910104728/https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;archived copy from 10 September 2026&lt;/a&gt;. This is what moved:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Before 1 Oct 2026&lt;/th&gt;
&lt;th&gt;After 1 Oct 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Additional RAM&lt;/td&gt;
&lt;td&gt;$5.00 / GB / month&lt;/td&gt;
&lt;td&gt;$6.00 / GB / month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 256 MB, iad&lt;/td&gt;
&lt;td&gt;$1.94&lt;/td&gt;
&lt;td&gt;$2.19&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 256 MB, ams&lt;/td&gt;
&lt;td&gt;$2.02&lt;/td&gt;
&lt;td&gt;$2.28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 1 GB, iad&lt;/td&gt;
&lt;td&gt;$5.70&lt;/td&gt;
&lt;td&gt;$6.70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-2x&lt;/code&gt; 2 GB, iad&lt;/td&gt;
&lt;td&gt;$11.39&lt;/td&gt;
&lt;td&gt;$13.39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Volumes&lt;/td&gt;
&lt;td&gt;$0.15 / GB / month&lt;/td&gt;
&lt;td&gt;unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Snapshots&lt;/td&gt;
&lt;td&gt;$0.08 / GB / month, first 10 GB free&lt;/td&gt;
&lt;td&gt;unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Egress, North America and Europe&lt;/td&gt;
&lt;td&gt;$0.02 / GB&lt;/td&gt;
&lt;td&gt;unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dedicated IPv4&lt;/td&gt;
&lt;td&gt;$2.00 / month&lt;/td&gt;
&lt;td&gt;unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why did the 256 MB Machine go up if CPU is "unchanged"?
&lt;/h3&gt;

&lt;p&gt;This confused me at first. A 256 MB &lt;code&gt;shared-cpu-1x&lt;/code&gt; has no "additional" RAM, so a RAM price change should not touch it. But it went up by $0.25 in iad.&lt;/p&gt;

&lt;p&gt;The numbers add up if you read the change as "all RAM is now $6 per GB, including the 256 MB that comes with each shared vCPU". 0.25 GB × $1 = $0.25. The same rule explains every row above: the 1 GB Machine went up $1.00 and the 2 GB Machine went up $2.00. Fly's pricing page computes prices with a per-second formula, and the shared CPU rate in it moved from 0.00000075 to 0.0000008465 dollars per second. That difference is exactly $0.25 a month: the $1 per GB increase applied to the bundled 256 MB (0.25 GB × $1).&lt;/p&gt;

&lt;p&gt;So the short version is accurate: &lt;strong&gt;each Machine costs $1 more per GB of RAM per month, counting the base RAM.&lt;/strong&gt; The phrase "CPU pricing is unchanged" is true only if you count the bundled 256 MB as RAM, not as CPU.&lt;/p&gt;




&lt;h2&gt;
  
  
  How much is a Fly.io Machine in 2026?
&lt;/h2&gt;

&lt;p&gt;These are 30-day prices for a Machine that runs all month. I computed them with the formula and region multipliers on &lt;a href="https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;Fly's pricing page&lt;/a&gt;, checked on 14 October 2026. Fly's page shows the same values when you pick a region.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Preset&lt;/th&gt;
&lt;th&gt;iad (US)&lt;/th&gt;
&lt;th&gt;ams / arn&lt;/th&gt;
&lt;th&gt;cdg / lhr&lt;/th&gt;
&lt;th&gt;fra&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 256 MB&lt;/td&gt;
&lt;td&gt;$2.19&lt;/td&gt;
&lt;td&gt;$2.28&lt;/td&gt;
&lt;td&gt;$2.49&lt;/td&gt;
&lt;td&gt;$2.53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 512 MB&lt;/td&gt;
&lt;td&gt;$3.69&lt;/td&gt;
&lt;td&gt;$3.84&lt;/td&gt;
&lt;td&gt;$4.19&lt;/td&gt;
&lt;td&gt;$4.26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 1 GB&lt;/td&gt;
&lt;td&gt;$6.70&lt;/td&gt;
&lt;td&gt;$6.95&lt;/td&gt;
&lt;td&gt;$7.60&lt;/td&gt;
&lt;td&gt;$7.73&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-1x&lt;/code&gt; 2 GB&lt;/td&gt;
&lt;td&gt;$12.70&lt;/td&gt;
&lt;td&gt;$13.19&lt;/td&gt;
&lt;td&gt;$14.41&lt;/td&gt;
&lt;td&gt;$14.65&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;shared-cpu-2x&lt;/code&gt; 2 GB&lt;/td&gt;
&lt;td&gt;$13.39&lt;/td&gt;
&lt;td&gt;$13.91&lt;/td&gt;
&lt;td&gt;$15.20&lt;/td&gt;
&lt;td&gt;$15.45&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;performance-1x&lt;/code&gt; 2 GB&lt;/td&gt;
&lt;td&gt;$33.00&lt;/td&gt;
&lt;td&gt;$34.27&lt;/td&gt;
&lt;td&gt;$37.44&lt;/td&gt;
&lt;td&gt;$38.08&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;performance-2x&lt;/code&gt; 4 GB&lt;/td&gt;
&lt;td&gt;$66.00&lt;/td&gt;
&lt;td&gt;$68.54&lt;/td&gt;
&lt;td&gt;$74.89&lt;/td&gt;
&lt;td&gt;$76.16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Fly bills per second. A Machine that is stopped costs $0.15 per GB of root filesystem per month, not the full price. If your app can scale to zero, your bill can be much lower than this table.&lt;/p&gt;

&lt;p&gt;Fly's own examples on the same page: the "smallest always-on app" (256 MB in iad plus 1 GB egress) is &lt;strong&gt;$2.21 a month&lt;/strong&gt;. A "small web app with Managed Postgres" (512 MB Machine, 10 GB volume, Managed Postgres Basic, 1 GB database storage, 10 GB egress) is &lt;strong&gt;$43.67 a month&lt;/strong&gt;. Most of that is the database.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does Managed Postgres cost on Fly.io?
&lt;/h3&gt;

&lt;p&gt;From the &lt;a href="https://fly.io/pricing-update/" rel="noopener noreferrer"&gt;pricing update page&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Machine&lt;/th&gt;
&lt;th&gt;Price / month&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Basic&lt;/td&gt;
&lt;td&gt;shared-2x, 1 GB&lt;/td&gt;
&lt;td&gt;$38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Starter&lt;/td&gt;
&lt;td&gt;shared-2x, 2 GB&lt;/td&gt;
&lt;td&gt;$72&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Launch&lt;/td&gt;
&lt;td&gt;performance-2x, 8 GB&lt;/td&gt;
&lt;td&gt;$282&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale&lt;/td&gt;
&lt;td&gt;performance-4x, 32 GB&lt;/td&gt;
&lt;td&gt;$962&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Performance&lt;/td&gt;
&lt;td&gt;performance-8x, 64 GB&lt;/td&gt;
&lt;td&gt;$1,922&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Storage is $0.28 per GB on top. If you run Postgres yourself on a Fly Machine instead, Fly's pricing page estimates about $2 a month for a single-node dev setup and $82–$164 a month for a three-node production cluster.&lt;/p&gt;




&lt;h2&gt;
  
  
  What does Fly.io cost in Amsterdam, Frankfurt, Paris, London and Stockholm?
&lt;/h2&gt;

&lt;p&gt;Fly has five regions in Europe: Amsterdam (ams), Stockholm (arn), Paris (cdg), Frankfurt (fra) and London (lhr). There is no region in Madrid, Warsaw or Bucharest.&lt;/p&gt;

&lt;p&gt;Each region has a multiplier on the US price. Amsterdam and Stockholm are about 3.8% more than iad, Paris and London about 13.5% more, Frankfurt about 15.4% more. Frankfurt is the most expensive Fly region in Europe.&lt;/p&gt;

&lt;p&gt;Three example setups, before and after the change (USD per month):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(a) One small always-on app, &lt;code&gt;shared-cpu-1x&lt;/code&gt; 256 MB&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Region&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ams&lt;/td&gt;
&lt;td&gt;$2.02&lt;/td&gt;
&lt;td&gt;$2.28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lhr&lt;/td&gt;
&lt;td&gt;$2.21&lt;/td&gt;
&lt;td&gt;$2.49&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fra&lt;/td&gt;
&lt;td&gt;$2.24&lt;/td&gt;
&lt;td&gt;$2.53&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;(b) One app, 1 GB, plus a 10 GB volume and Managed Postgres Basic with 1 GB storage&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Region&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ams&lt;/td&gt;
&lt;td&gt;$45.70&lt;/td&gt;
&lt;td&gt;$46.73&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lhr&lt;/td&gt;
&lt;td&gt;$46.24&lt;/td&gt;
&lt;td&gt;$47.38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fra&lt;/td&gt;
&lt;td&gt;$46.35&lt;/td&gt;
&lt;td&gt;$47.51&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;(c) Two apps, &lt;code&gt;shared-cpu-2x&lt;/code&gt; 2 GB each, plus 100 GB egress&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Region&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ams&lt;/td&gt;
&lt;td&gt;$25.66&lt;/td&gt;
&lt;td&gt;$29.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lhr&lt;/td&gt;
&lt;td&gt;$27.86&lt;/td&gt;
&lt;td&gt;$32.39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fra&lt;/td&gt;
&lt;td&gt;$28.30&lt;/td&gt;
&lt;td&gt;$32.91&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The percentage rise depends on how much RAM you use. Setup (b) rose only 2–3%, because the $38 database price did not change. Setup (c) rose about 16%, because it is mostly RAM. RAM-heavy apps (Node.js, Java, Rails with Sidekiq) feel this change the most.&lt;/p&gt;

&lt;p&gt;I could not find whether Fly adds EU VAT to its USD prices at checkout. Neither pricing page says.&lt;/p&gt;




&lt;h2&gt;
  
  
  Are Fly.io's regional prices new?
&lt;/h2&gt;

&lt;p&gt;No. Region-specific Machine pricing started on &lt;a href="https://community.fly.io/t/region-specific-machines-pricing/20690" rel="noopener noreferrer"&gt;1 July 2024&lt;/a&gt;. The multipliers in the &lt;a href="http://web.archive.org/web/20260110122553/https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;January 2026 archive&lt;/a&gt; are identical to the ones on the current page. The October 2026 change only moved the RAM rate.&lt;/p&gt;




&lt;h2&gt;
  
  
  Did Render change its prices too?
&lt;/h2&gt;

&lt;p&gt;Yes, on the same day, but downward and only for Key Value (Redis-compatible) instances. Render's &lt;a href="https://render.com/changelog/added-two-key-value-plans-and-lowered-prices-for-larger-existing-plans" rel="noopener noreferrer"&gt;changelog from 1 October 2026&lt;/a&gt; cut the price of every Key Value plan with 1 GB of RAM or more, and added two new plans.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 GB&lt;/td&gt;
&lt;td&gt;$32&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 GB&lt;/td&gt;
&lt;td&gt;(new)&lt;/td&gt;
&lt;td&gt;$60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 GB&lt;/td&gt;
&lt;td&gt;$135&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 GB&lt;/td&gt;
&lt;td&gt;$250&lt;/td&gt;
&lt;td&gt;$200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20 GB&lt;/td&gt;
&lt;td&gt;$550&lt;/td&gt;
&lt;td&gt;$350&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40 GB&lt;/td&gt;
&lt;td&gt;$1,100&lt;/td&gt;
&lt;td&gt;$600&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50 GB&lt;/td&gt;
&lt;td&gt;(new)&lt;/td&gt;
&lt;td&gt;$750&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: the &lt;a href="http://web.archive.org/web/20260919091936/https://render.com/pricing" rel="noopener noreferrer"&gt;archived Render pricing page from 19 September 2026&lt;/a&gt; and the &lt;a href="https://render.com/pricing" rel="noopener noreferrer"&gt;current one&lt;/a&gt;. For how Render, Railway and Fly charge in general, see &lt;a href="https://hostim.dev/blog/render-vs-railway-vs-fly-pricing" rel="noopener noreferrer"&gt;Render vs Railway vs Fly.io pricing&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  When is Fly.io still the right choice?
&lt;/h2&gt;

&lt;p&gt;Fly is good at things a flat-priced host does not do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Many regions.&lt;/strong&gt; You can run the same app close to users on several continents. If your users are in São Paulo, Tokyo and Frankfurt, Fly is built for that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scale to zero.&lt;/strong&gt; Stopped Machines cost almost nothing. For apps that sit idle most of the day, per-second billing beats any monthly plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tiny always-on workers.&lt;/strong&gt; At $2.19–$2.53 a month, a 256 MB Machine is still very cheap for a bot or a small queue worker.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When is a flat EU host cheaper?
&lt;/h2&gt;

&lt;p&gt;When the app runs all month, uses 1 GB of RAM or more, and its users are in Europe. The $1-per-GB change hits exactly that case, and the managed database is often the biggest line on the bill.&lt;/p&gt;

&lt;p&gt;For comparison, the same setups on Hostim (EUR, before VAT, egress included):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Fly.io, fra, after&lt;/th&gt;
&lt;th&gt;Hostim&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;(a) small always-on app&lt;/td&gt;
&lt;td&gt;$2.53&lt;/td&gt;
&lt;td&gt;€2.50 (1 GB RAM, the smallest plan)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(b) 1 GB app + volume + Postgres&lt;/td&gt;
&lt;td&gt;$47.51&lt;/td&gt;
&lt;td&gt;€8.50 with shared Postgres (1 GB storage), €32.50 with a dedicated Postgres instance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;(c) two 2 GB apps + 100 GB egress&lt;/td&gt;
&lt;td&gt;$32.91&lt;/td&gt;
&lt;td&gt;€9.00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is not a like-for-like comparison, and I want to be clear about where it differs. Hostim runs in one region (Germany). Its shared Postgres is a database on a shared server, not a dedicated machine like Fly's Managed Postgres Basic; the dedicated plan starts at €25. Hostim has no scale-to-zero. Our prices are on the &lt;a href="https://hostim.dev/pricing/" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you want more options, we keep a list of &lt;a href="https://hostim.dev/hosting/alternatives/alternative-to-fly-io" rel="noopener noreferrer"&gt;alternatives to Fly.io&lt;/a&gt; and a comparison of &lt;a href="https://hostim.dev/hosting/alternatives/paas-with-flat-predictable-pricing" rel="noopener noreferrer"&gt;PaaS platforms with flat, predictable pricing&lt;/a&gt;. I wrote about why per-second bills grow over time in &lt;a href="https://hostim.dev/blog/usage-based-pricing-creep" rel="noopener noreferrer"&gt;usage-based pricing creep&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;All pages read on 14 October 2026.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fly.io pricing page, current: &lt;a href="https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;https://fly.io/docs/about/pricing/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Fly.io 2026 Pricing Update: &lt;a href="https://fly.io/pricing-update/" rel="noopener noreferrer"&gt;https://fly.io/pricing-update/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Fly.io pricing page, archived 10 September 2026: &lt;a href="http://web.archive.org/web/20260910104728/https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;http://web.archive.org/web/20260910104728/https://fly.io/docs/about/pricing/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Fly.io pricing page, archived 17 September 2026 (last copy before the change): &lt;a href="http://web.archive.org/web/20260917184311/https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;http://web.archive.org/web/20260917184311/https://fly.io/docs/about/pricing/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Fly.io pricing page, archived January 2026: &lt;a href="http://web.archive.org/web/20260110122553/https://fly.io/docs/about/pricing/" rel="noopener noreferrer"&gt;http://web.archive.org/web/20260110122553/https://fly.io/docs/about/pricing/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Fly community, Region-specific Machines pricing (July 2024): &lt;a href="https://community.fly.io/t/region-specific-machines-pricing/20690" rel="noopener noreferrer"&gt;https://community.fly.io/t/region-specific-machines-pricing/20690&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Hacker News thread, 21 September 2026: &lt;a href="https://news.ycombinator.com/item?id=49793409" rel="noopener noreferrer"&gt;https://news.ycombinator.com/item?id=49793409&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Render changelog, 1 October 2026: &lt;a href="https://render.com/changelog/added-two-key-value-plans-and-lowered-prices-for-larger-existing-plans" rel="noopener noreferrer"&gt;https://render.com/changelog/added-two-key-value-plans-and-lowered-prices-for-larger-existing-plans&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Render pricing page, archived 19 September 2026: &lt;a href="http://web.archive.org/web/20260919091936/https://render.com/pricing" rel="noopener noreferrer"&gt;http://web.archive.org/web/20260919091936/https://render.com/pricing&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How much does Fly.io cost per month in 2026?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The smallest always-on Machine (shared-cpu-1x, 256 MB) costs $2.19 a month in Ashburn (iad), $2.28 in Amsterdam and $2.53 in Frankfurt. A 1 GB Machine costs $6.70 in iad and $7.73 in Frankfurt. Additional RAM is $6 per GB per month since 1 October 2026.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Did Fly.io raise prices in 2026?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. On 1 October 2026 the RAM price went from $5 to $6 per GB per month. Every Machine now costs $1 more per GB of RAM, including the 256 MB that comes with each shared vCPU. Volumes, egress, snapshots and IPv4 did not change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which Fly.io region in Europe is cheapest?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Amsterdam (ams) and Stockholm (arn), at about 3.8% above the US iad price. Paris and London are about 13.5% above, and Frankfurt about 15.4% above.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Fly.io still have a free tier?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. Fly's pricing page says new organizations have no free tier and no monthly free usage allowance. Some small items are still free, for example the first 10 GB of snapshot storage per month and the first 10 single-hostname SSL certificates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much is Fly.io Managed Postgres?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Basic is $38 a month (shared-2x, 1 GB RAM), Starter $72, Launch $282, Scale $962 and Performance $1,922. Storage costs $0.28 per GB on top.&lt;/p&gt;

&lt;p&gt;Try Hostim: &lt;a href="https://console.hostim.dev/dashboard" rel="noopener noreferrer"&gt;https://console.hostim.dev/dashboard&lt;/a&gt; (free 5-day trial, no card).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://hostim.dev/blog/fly-io-pricing-2026" rel="noopener noreferrer"&gt;hostim.dev/blog/fly-io-pricing-2026&lt;/a&gt;. Last updated: October 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flyio</category>
      <category>pricing</category>
      <category>devops</category>
      <category>cloud</category>
    </item>
    <item>
      <title>How to Self-Host Chatwoot in 2026 (After the Cloud API Paywall)</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Wed, 30 Sep 2026 07:16:37 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/how-to-self-host-chatwoot-in-2026-after-the-cloud-api-paywall-59ap</link>
      <guid>https://dev.to/pavel-hostim/how-to-self-host-chatwoot-in-2026-after-the-cloud-api-paywall-59ap</guid>
      <description>&lt;p&gt;&lt;strong&gt;Self-hosted Chatwoot is free under the MIT licence and keeps full API and webhook access. On Chatwoot Cloud, the free plan lost both on 16 July 2026.&lt;/strong&gt; To self-host it you need four things: the Chatwoot Community Edition image (&lt;code&gt;chatwoot/chatwoot:&amp;lt;version&amp;gt;-ce&lt;/code&gt;), PostgreSQL with the &lt;code&gt;pgvector&lt;/code&gt; extension, Redis, and a Sidekiq worker next to the Rails server. The Docker Compose file below starts all four. It idles at about 810 MB of RAM.&lt;/p&gt;

&lt;p&gt;Conflict of interest, stated up front: I run &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim.dev&lt;/a&gt;, a hosting platform, and there is a one-click Chatwoot template on it. A pricing change that pushes people toward self-hosting is good for me. So every number below is either measured or linked, and the Docker Compose path runs on any server you like, not on ours.&lt;/p&gt;




&lt;h2&gt;
  
  
  What changed on Chatwoot Cloud
&lt;/h2&gt;

&lt;p&gt;On 16 July 2026 Chatwoot &lt;a href="https://www.chatwoot.com/blog/updating-api-and-webhook-access-on-chatwoot-cloud" rel="noopener noreferrer"&gt;announced&lt;/a&gt; that API and webhook access on Chatwoot Cloud now needs a paid plan. Existing free accounts got a two-week transition. New free accounts get no API access at all. Their reason is abuse: free accounts used the API and webhooks for spam at scale, and that cost them infrastructure and moderation money.&lt;/p&gt;

&lt;p&gt;That is a fair reason. Chatwoot built a good product, gave it away under MIT, and is allowed to charge for running it. The same post says it plainly: "developers who self-host Chatwoot can continue to use APIs and webhooks as part of their own deployment."&lt;/p&gt;

&lt;p&gt;What the change looks like from the inside is less clear. Our token still passed &lt;code&gt;GET /api/v1/profile&lt;/code&gt; with a 200 and the role &lt;code&gt;administrator&lt;/code&gt;. Every call scoped to the account returned a 403 with "API access is not enabled for this account". It looks like a broken token, not a paywall. If you see that error on a free Cloud account, your token is fine. The plan is the reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chatwoot Cloud pricing vs self-hosted
&lt;/h2&gt;

&lt;p&gt;Prices from the &lt;a href="https://www.chatwoot.com/pricing/" rel="noopener noreferrer"&gt;Chatwoot pricing page&lt;/a&gt;, checked on 30 September 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;API and webhooks&lt;/th&gt;
&lt;th&gt;Limits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloud Hacker (free)&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;No, since July 2026&lt;/td&gt;
&lt;td&gt;2 agents, 500 conversations/month, 30 days data retention&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud Startups&lt;/td&gt;
&lt;td&gt;$19 per agent/month&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud Business&lt;/td&gt;
&lt;td&gt;$39 per agent/month&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud Enterprise&lt;/td&gt;
&lt;td&gt;$99 per agent/month&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-hosted Community Edition&lt;/td&gt;
&lt;td&gt;Your server&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No enterprise features (see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With two agents, Startups costs $38 a month and Business costs $78. Self-hosted cost does not grow with the number of agents. It is only the server.&lt;/p&gt;

&lt;p&gt;Our own instance is the one that runs the support chat on hostim.dev. It costs €7.50 a month on Hostim: an app with 2 vCPU and 2 GB RAM (€4.50), a 1 GB shared Postgres (€1), a 0.5 GB Redis (€1) and a 5 GB volume for attachments (€1). That is our price list, so read it with the conflict above in mind. On your own VPS, what matters is RAM. The Docker Compose stack below used this much memory right after first boot:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Container&lt;/th&gt;
&lt;th&gt;RAM at idle&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;rails&lt;/td&gt;
&lt;td&gt;373 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sidekiq&lt;/td&gt;
&lt;td&gt;381 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;postgres (pgvector)&lt;/td&gt;
&lt;td&gt;44 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;redis&lt;/td&gt;
&lt;td&gt;12 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is about 810 MB before any real traffic, so plan for at least 2 GB of RAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is Chatwoot free? The licence in one paragraph
&lt;/h2&gt;

&lt;p&gt;Mostly yes. The &lt;a href="https://github.com/chatwoot/chatwoot/blob/develop/LICENSE" rel="noopener noreferrer"&gt;repository licence&lt;/a&gt; is MIT for everything except the &lt;code&gt;enterprise/&lt;/code&gt; directory. That directory is under the &lt;a href="https://github.com/chatwoot/chatwoot/blob/develop/enterprise/LICENSE" rel="noopener noreferrer"&gt;Chatwoot Enterprise licence&lt;/a&gt;: you may read it and test it, but using it in production needs a paid subscription. Chatwoot publishes two image flavours, and the difference matters:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Image tag&lt;/th&gt;
&lt;th&gt;Contains&lt;/th&gt;
&lt;th&gt;Production use without a licence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;chatwoot/chatwoot:v4.18.0-ce&lt;/code&gt; / &lt;code&gt;latest-ce&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;MIT code only&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;chatwoot/chatwoot:v4.18.0&lt;/code&gt; / &lt;code&gt;latest&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;MIT code plus &lt;code&gt;enterprise/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Only the MIT parts; enterprise features need a licence&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Use the &lt;code&gt;-ce&lt;/code&gt; tag. You lose custom dashboards, SLA management, audit logs and the Captain AI assistant. Live chat, email, the API, webhooks, automations, macros and canned responses all stay. The official &lt;code&gt;docker-compose.production.yaml&lt;/code&gt; uses &lt;code&gt;latest&lt;/code&gt;, the image with the enterprise code. That is the one line I change first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Self-host Chatwoot with Docker Compose
&lt;/h2&gt;

&lt;p&gt;Tested on 30 September 2026 with Chatwoot 4.18.0 and Docker Compose v5.5.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The compose file
&lt;/h3&gt;

&lt;p&gt;This is the official production file with four changes: the CE image pinned to a version, &lt;code&gt;restart: unless-stopped&lt;/code&gt;, Postgres and Redis not published on the host, and Redis getting its password from the environment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;x-chatwoot&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nl"&gt;&amp;amp;chatwoot&lt;/span&gt;
  &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chatwoot/chatwoot:v4.18.0-ce&lt;/span&gt;
  &lt;span class="na"&gt;env_file&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;.env&lt;/span&gt;
  &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;storage:/app/storage&lt;/span&gt;
  &lt;span class="na"&gt;depends_on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;postgres&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;redis&lt;/span&gt;
  &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;

&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;rails&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;*chatwoot&lt;/span&gt;
    &lt;span class="na"&gt;entrypoint&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;docker/entrypoints/rails.sh&lt;/span&gt;
    &lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bundle"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;exec"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rails"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;s"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-p"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;3000"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-b"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;0.0.0.0"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;127.0.0.1:3000:3000"&lt;/span&gt;

  &lt;span class="na"&gt;sidekiq&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;*chatwoot&lt;/span&gt;
    &lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bundle"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;exec"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sidekiq"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-C"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;config/sidekiq.yml"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;

  &lt;span class="na"&gt;postgres&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pgvector/pgvector:pg16&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_DB&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chatwoot&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_USER&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_PASSWORD}&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;postgres:/var/lib/postgresql/data&lt;/span&gt;

  &lt;span class="na"&gt;redis&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;redis:7-alpine&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sh"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-c"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;redis-server&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;--requirepass&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;$$REDIS_PASSWORD&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;REDIS_PASSWORD&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${REDIS_PASSWORD}&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;redis:/data&lt;/span&gt;

&lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;storage&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;postgres&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;redis&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two services run the same image. &lt;code&gt;rails&lt;/code&gt; serves the dashboard, the widget and the API. &lt;code&gt;sidekiq&lt;/code&gt; sends emails, delivers webhooks and runs automations. If you forget &lt;code&gt;sidekiq&lt;/code&gt;, the dashboard works and nothing is ever sent, with no error.&lt;/p&gt;

&lt;p&gt;Postgres must be the &lt;code&gt;pgvector&lt;/code&gt; image. Chatwoot 4.x migrations create the &lt;code&gt;vector&lt;/code&gt; and &lt;code&gt;pg_trgm&lt;/code&gt; extensions, and the plain &lt;code&gt;postgres:16&lt;/code&gt; image does not ship &lt;code&gt;vector&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The &lt;code&gt;.env&lt;/code&gt; file
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; .env &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;EOF&lt;/span&gt;&lt;span class="sh"&gt;
RAILS_ENV=production
NODE_ENV=production
INSTALLATION_ENV=docker
SECRET_KEY_BASE=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;openssl rand &lt;span class="nt"&gt;-hex&lt;/span&gt; 64&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="sh"&gt;
FRONTEND_URL=https://chat.example.com
FORCE_SSL=false
ENABLE_ACCOUNT_SIGNUP=false
POSTGRES_HOST=postgres
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;openssl rand &lt;span class="nt"&gt;-hex&lt;/span&gt; 16&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="sh"&gt;
POSTGRES_DATABASE=chatwoot
REDIS_URL=redis://redis:6379
REDIS_PASSWORD=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;openssl rand &lt;span class="nt"&gt;-hex&lt;/span&gt; 16&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="sh"&gt;
ACTIVE_STORAGE_SERVICE=local
&lt;/span&gt;&lt;span class="no"&gt;EOF
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;SECRET_KEY_BASE&lt;/code&gt; is generated once. Do not change it later: sessions and encrypted fields depend on it. &lt;code&gt;FRONTEND_URL&lt;/code&gt; must be the public HTTPS address. The section on traps below explains why. For email, add &lt;code&gt;SMTP_ADDRESS&lt;/code&gt;, &lt;code&gt;SMTP_PORT&lt;/code&gt;, &lt;code&gt;SMTP_USERNAME&lt;/code&gt;, &lt;code&gt;SMTP_PASSWORD&lt;/code&gt; and &lt;code&gt;MAILER_SENDER_EMAIL&lt;/code&gt;. Without them, agent invites and password resets fail with no error.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Prepare the database and start
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose run &lt;span class="nt"&gt;--rm&lt;/span&gt; rails bundle &lt;span class="nb"&gt;exec &lt;/span&gt;rails db:chatwoot_prepare
docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
curl &lt;span class="nt"&gt;-s&lt;/span&gt; localhost:3000/api
&lt;span class="c"&gt;# {"version":"4.18.0","timestamp":"…","queue_services":"ok","data_services":"ok"}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first command prints &lt;code&gt;ERROR -- : Failed to configure AI Agents SDK: PG::UndefinedTable&lt;/code&gt;. That comes from an initializer that runs before the tables exist. It is harmless. When it finishes you have 180 migrations and the &lt;code&gt;vector&lt;/code&gt; and &lt;code&gt;pg_trgm&lt;/code&gt; extensions.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Create the first admin
&lt;/h3&gt;

&lt;p&gt;Sign-up is off, so create the admin from the Rails console:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose &lt;span class="nb"&gt;exec &lt;/span&gt;rails bundle &lt;span class="nb"&gt;exec &lt;/span&gt;rails runner &lt;span class="s2"&gt;"
u = User.new(name: 'Admin', email: 'you@example.com', password: 'a-long-password', confirmed_at: Time.now); u.save!
a = Account.create!(name: 'My Company')
AccountUser.create!(account: a, user: u, role: :administrator)"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or set &lt;code&gt;ENABLE_ACCOUNT_SIGNUP=true&lt;/code&gt;, register in the browser, then set it back to &lt;code&gt;false&lt;/code&gt; and run &lt;code&gt;docker compose up -d&lt;/code&gt; again.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. HTTPS in front
&lt;/h3&gt;

&lt;p&gt;Port 3000 listens on &lt;code&gt;127.0.0.1&lt;/code&gt; only. Put a reverse proxy in front for TLS. With Caddy it is two lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chat.example.com {
    reverse_proxy 127.0.0.1:3000
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Caddy passes WebSocket upgrades by default, and the live dashboard needs them. If you are choosing between Caddy, Traefik, Nginx and HAProxy, I compared them in &lt;a href="https://hostim.dev/blog/reverse-proxy-showdown" rel="noopener noreferrer"&gt;Reverse Proxy Showdown&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Check that the API works
&lt;/h3&gt;

&lt;p&gt;In the dashboard, open your profile settings and copy the access token. Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"api_access_token: &lt;/span&gt;&lt;span class="nv"&gt;$TOKEN&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; https://chat.example.com/api/v1/accounts/1/conversations
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 200 with &lt;code&gt;{"data":{"meta":…}}&lt;/code&gt; means you have the thing the Cloud free plan no longer gives you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three traps we hit moving our own support desk
&lt;/h2&gt;

&lt;p&gt;We moved hostim.dev's support chat off Chatwoot Cloud on 30 August 2026. The install was the easy part. These three were not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;FORCE_SSL=true&lt;/code&gt; behind a proxy or Kubernetes ingress keeps the app from ever becoming healthy.&lt;/strong&gt; Rails answers the health check with a 301 to &lt;code&gt;https://&lt;/code&gt;. The health checker follows it, speaks TLS to plain-HTTP Puma, fails, and the app never counts as ready. A customer's Chatwoot on our platform sat unready for 41 hours this way, with the old version still serving, so nobody noticed. If TLS ends at a proxy, leave &lt;code&gt;FORCE_SSL=false&lt;/code&gt;. The proxy already redirects HTTP to HTTPS. This applies to any Rails app, not only Chatwoot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;FRONTEND_URL&lt;/code&gt; is not read from the request.&lt;/strong&gt; Chatwoot builds the widget script URL, the links in emails and the OAuth callbacks from this one variable. Add a custom domain without changing it, and the widget on your site keeps loading from the old host. Change it, then restart both &lt;code&gt;rails&lt;/code&gt; and &lt;code&gt;sidekiq&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Identity validation breaks during a cutover.&lt;/strong&gt; If you use HMAC identity validation on the website inbox, the &lt;code&gt;identifier_hash&lt;/code&gt; comes from your backend and the key lives in Chatwoot. You cannot switch both at the same moment, and in either order, logged-in users fail validation for a while. The boring fix works: turn identity validation off on the inbox, switch the backend and the widget, turn it back on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting your conversations out of Chatwoot Cloud
&lt;/h2&gt;

&lt;p&gt;This was the hardest part, and it matters whether you self-host or not: &lt;strong&gt;Chatwoot has no conversation export.&lt;/strong&gt; Not on Cloud, not self-hosted. The feature request (&lt;a href="https://github.com/chatwoot/chatwoot/issues/5231" rel="noopener noreferrer"&gt;#5231&lt;/a&gt;, opened in 2022) was closed in November 2025 for inactivity, not because it shipped. The migration docs only cover importing into Chatwoot from Intercom, Front, Freshdesk and Zendesk.&lt;/p&gt;

&lt;p&gt;What we tried on our free Cloud account in August 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;API with an access token&lt;/td&gt;
&lt;td&gt;403, API is paid now&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Send email transcript" macro or automation&lt;/td&gt;
&lt;td&gt;"Not available on your current plan"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contacts CSV export&lt;/td&gt;
&lt;td&gt;Works, but only names and emails, no conversations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The dashboard's own requests, replayed for our own account&lt;/td&gt;
&lt;td&gt;Worked&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last one is the dashboard doing what it always does. It loads your conversations from the same API, signed in as you. We paged through our own account that way and saved 56 conversations, 478 messages and 4 attachments as JSON and Markdown. Download attachments straight away: their URLs stop working when the account closes.&lt;/p&gt;

&lt;p&gt;To be clear, this is getting your own data out of your own account. It does not unlock anything paid. The narrow complaint I have is not about pricing. It is that a support tool keeps the one thing you cannot export, the conversations, and that is a data portability problem on any plan.&lt;/p&gt;

&lt;p&gt;If you self-host, you do not have this problem: the conversations are rows in your own Postgres, and &lt;code&gt;pg_dump&lt;/code&gt; is the export.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one-click version
&lt;/h2&gt;

&lt;p&gt;If you do not want to run the compose file, the Hostim template deploys the same stack: the CE image, Postgres with &lt;code&gt;pg_trgm&lt;/code&gt; and &lt;code&gt;vector&lt;/code&gt; already enabled, Redis, and a volume for attachments. It runs Rails and Sidekiq in one container to save one app's cost, and it already avoids &lt;code&gt;FORCE_SSL&lt;/code&gt;. It is the setup that runs our own support chat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://console.hostim.dev/dashboard?preview=1&amp;amp;modal=1&amp;amp;template=chatwoot" rel="noopener noreferrer"&gt;Deploy Chatwoot on Hostim&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is Chatwoot free to self-host?&lt;/strong&gt;&lt;br&gt;
Yes. Everything outside the enterprise/ directory is MIT licensed, and the Community Edition image (tags ending in -ce) contains only that code. You can run it in production for any number of agents without paying Chatwoot. Custom dashboards, SLA management, audit logs and Captain AI need a paid Enterprise licence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the Chatwoot free plan include API access?&lt;/strong&gt;&lt;br&gt;
Not any more. Since 16 July 2026, API and webhook access on Chatwoot Cloud needs a paid plan (Startups at $19 per agent per month or higher). Self-hosted Chatwoot keeps full API and webhook access on every edition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does the Chatwoot API return 403 'API access is not enabled for this account'?&lt;/strong&gt;&lt;br&gt;
Your Chatwoot Cloud account is on the free plan. The token is valid, and profile calls still succeed, but every account-scoped endpoint is blocked since the July 2026 change. Upgrade the plan or self-host.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much RAM does self-hosted Chatwoot need?&lt;/strong&gt;&lt;br&gt;
Our Docker Compose stack of Chatwoot 4.18.0 used about 810 MB at idle: 373 MB for Rails, 381 MB for Sidekiq, 44 MB for Postgres and 12 MB for Redis. Plan for at least 2 GB of RAM on the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I export conversations from Chatwoot?&lt;/strong&gt;&lt;br&gt;
There is no built-in conversation export on Cloud or self-hosted. Contacts can be exported as CSV. On a self-hosted instance the conversations are in your own PostgreSQL database, so pg_dump works. On Cloud, paid plans can read them through the API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which Postgres image does Chatwoot need?&lt;/strong&gt;&lt;br&gt;
One with the pgvector extension, for example pgvector/pgvector:pg16. Chatwoot 4.x migrations create the vector and pg_trgm extensions, and the plain postgres image does not include vector.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Last updated: 30 September 2026. Tested with Chatwoot 4.18.0 (CE), pgvector/pgvector:pg16, redis:7-alpine and Docker Compose v5.5. Chatwoot Cloud prices were checked on the same day. They change, so check the &lt;a href="https://www.chatwoot.com/pricing/" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt; before you decide. Originally published on &lt;a href="https://hostim.dev/blog/self-host-chatwoot/" rel="noopener noreferrer"&gt;hostim.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>docker</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
    <item>
      <title>Three Coding Agents, One Deploy</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Wed, 16 Sep 2026 15:12:30 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/three-coding-agents-one-deploy-1bdb</link>
      <guid>https://dev.to/pavel-hostim/three-coding-agents-one-deploy-1bdb</guid>
      <description>&lt;p&gt;All three agents deployed the app, unaided, in a sandbox with no hints and no custom instructions file. None of them failed on the platform. They all lost time on the same five rough edges in the CLI and the install script, and those are the interesting part.&lt;/p&gt;

&lt;p&gt;We shipped the &lt;a href="https://github.com/hostimdev/cli" rel="noopener noreferrer"&gt;Hostim CLI&lt;/a&gt; this month. It was written with coding agents as first-class users, and dogfooded by deploying 30 open-source apps with it. Then I tested whether that actually works, by handing the job to agents that had never seen it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The CLI, briefly
&lt;/h2&gt;

&lt;p&gt;One line to install, one command to log in, and every write command answers in JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/hostimdev/cli/main/install.sh | sh
hostim login                 &lt;span class="c"&gt;# device code: approve it in the browser&lt;/span&gt;
hostim deploy web &lt;span class="nt"&gt;--docker-image&lt;/span&gt; nginx &lt;span class="nt"&gt;--plan&lt;/span&gt; sa-1-1 &lt;span class="nt"&gt;--port&lt;/span&gt; 80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things in it exist only because of agents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;hostim agent&lt;/code&gt; prints the entire manual to stdout. The binary embeds its own README, so an agent reads the manual for the version it has installed instead of guessing flags from a blog post.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;hostim mcp&lt;/code&gt; runs a Model Context Protocol server on stdio. Read-only tools by default (&lt;code&gt;list_projects&lt;/code&gt;, &lt;code&gt;get_app_status&lt;/code&gt;, &lt;code&gt;get_app_logs&lt;/code&gt;, …); anything that creates or deletes needs &lt;code&gt;--allow-write&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is beta. Flags and output can still change between releases.&lt;/p&gt;

&lt;p&gt;The dogfooding was real work, not a demo: our 35 curated templates — 30 open-source apps like listmonk, Chatwoot, FreshRSS, Docmost, PhotoPrism, plus five framework demos — are the same template YAML the CLI applies with &lt;code&gt;hostim templates apply&lt;/code&gt;. If the format is awkward, we are the first to feel it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test
&lt;/h2&gt;

&lt;p&gt;A local harness, one Docker container per run, no host filesystem except the run's own directory. The agents run vanilla: I copy in the auth token and nothing else. No global config, no &lt;code&gt;AGENTS.md&lt;/code&gt;, no hints about Hostim — that is the thing under test.&lt;/p&gt;

&lt;p&gt;One prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Deploy Miniflux (&lt;a href="https://github.com/miniflux/v2" rel="noopener noreferrer"&gt;https://github.com/miniflux/v2&lt;/a&gt;) on Hostim&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Three agents: Claude Code (Sonnet 5), Codex, and OpenCode driving DeepSeek V4.1 Flash. Same prompt, same app, separate containers, transcripts saved.&lt;/p&gt;

&lt;p&gt;I picked &lt;a href="https://miniflux.app" rel="noopener noreferrer"&gt;Miniflux&lt;/a&gt; because it is honest work and not a hello world: a Go binary plus Postgres, migrations on boot, an admin user to bootstrap, a &lt;code&gt;BASE_URL&lt;/code&gt; it gets grumpy about, and a &lt;code&gt;/healthcheck&lt;/code&gt; endpoint to prove the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Reached for the CLI unprompted&lt;/th&gt;
&lt;th&gt;Install worked first try&lt;/th&gt;
&lt;th&gt;App live&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code (Sonnet 5)&lt;/td&gt;
&lt;td&gt;No — wrote a Compose file and handed me instructions&lt;/td&gt;
&lt;td&gt;No (&lt;code&gt;sudo: not found&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;Yes, after reading &lt;code&gt;--help&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No (&lt;code&gt;sudo: not found&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenCode (DeepSeek V4.1 Flash)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All three ended with Miniflux running behind TLS on a &lt;code&gt;*.eu-center.hostim.dev&lt;/code&gt; subdomain, migrations at version 132, an admin user created, and — where the agent bothered to check — &lt;code&gt;curl&lt;/code&gt; returning 200.&lt;/p&gt;

&lt;p&gt;Two things I did not expect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Code did not reach for the CLI at all.&lt;/strong&gt; Given the bare prompt it searched the web, read our docs, pulled Miniflux's own &lt;code&gt;contrib/docker-compose/basic.yml&lt;/code&gt; from GitHub, generated credentials, wrote a &lt;code&gt;docker-compose.yml&lt;/code&gt;, and gave me a numbered list of things to click in the console. A good answer to a question I did not ask. It found the CLI immediately when I said "with cli please", and drove the whole deploy itself when I said "i want you to do it" — including stopping at the device-code step to hand me the code and wait. But unprompted, our docs pointed it at the browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every agent that used the managed database got the credentials right.&lt;/strong&gt; Not by copying a connection string, but with our placeholder references:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="py"&gt;DATABASE_URL&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;postgres://$(DB_POSTGRES_USER):$(DB_POSTGRES_PASSWORD)@$(DB_POSTGRES_HOST):$(DB_POSTGRES_PORT)/$(DB_POSTGRES_DATABASE)?sslmode=disable&lt;/span&gt;
&lt;span class="py"&gt;BASE_URL&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;https://$(BUILTIN_DOMAIN)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two of them inferred that from template examples, because the manual did not document the placeholders. It does now.&lt;/p&gt;

&lt;p&gt;Cost of the resulting stacks: the app on &lt;code&gt;sa-1-1&lt;/code&gt; at €2.50/mo, managed Postgres on the free &lt;code&gt;sp-0&lt;/code&gt; tier. Two agents found the free tier on their own by running &lt;code&gt;hostim regions pricing eu-center --for postgres&lt;/code&gt; before creating anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five things they tripped over
&lt;/h2&gt;

&lt;p&gt;Same agents, same friction, three times over. All of it ours, none of it clever:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;install.sh&lt;/code&gt; called &lt;code&gt;sudo&lt;/code&gt; unconditionally&lt;/strong&gt; and died with &lt;code&gt;sudo: not found&lt;/code&gt; in a plain container — the exact environment an agent runs in. It now installs to &lt;code&gt;~/.local/bin&lt;/code&gt; when the prefix is not writable and &lt;code&gt;sudo&lt;/code&gt; is missing, and warns if that is not on &lt;code&gt;PATH&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The success line printed &lt;code&gt;Installed .&lt;/code&gt;&lt;/strong&gt; when the binary was not yet on &lt;code&gt;PATH&lt;/code&gt;, because it used &lt;code&gt;command -v&lt;/code&gt;. It prints the resolved path now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;hostim version&lt;/code&gt; was not a command&lt;/strong&gt;, only &lt;code&gt;--version&lt;/code&gt;. Codex tried the obvious form, got &lt;code&gt;error: unknown command "version"&lt;/code&gt;, and burned a turn on it. Both work now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Device login said "Waiting for you to approve the login…"&lt;/strong&gt;, which reads like something the caller has to poll. Two agents wrote their own polling loop around a command that already polls and saves the token. The message now says so, and the manual says it twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nobody found &lt;code&gt;hostim agent&lt;/code&gt;.&lt;/strong&gt; The manual is in the binary and no agent thought to look, so &lt;code&gt;hostim --help&lt;/code&gt; now points at it in the first lines.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of these is a bug in the interesting sense. Every one of them cost an agent a turn or a wrong path, and a human would have shrugged and moved on without telling me.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I take from it
&lt;/h2&gt;

&lt;p&gt;Agents fail on small, dumb, mechanical things: a missing subcommand alias, a status message with the wrong mood, an install script that assumes a laptop. They do not fail on the hard parts — those they read, infer and get right. "Make it easier for agents" turned out to mean &lt;em&gt;stop lying in your output&lt;/em&gt;, not &lt;em&gt;build an agent product&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The other lesson is that discovery is the real gap. Our docs were written for someone with a browser open. An agent with a shell wants to know there is a CLI in the first paragraph, and that the manual ships inside the binary. Fixing that is a docs job, not an engineering one.&lt;/p&gt;

&lt;p&gt;This is now a biweekly routine: run the agents, read the transcripts, fix whatever they tripped on. If your platform has a CLI, I recommend it — it is the cheapest usability testing I have ever run, and the tester never gets bored of telling you the same thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can a coding agent deploy an app without help?&lt;/strong&gt;&lt;br&gt;
Yes. In our September 2026 test Claude Code, Codex and OpenCode each deployed Miniflux with managed Postgres, TLS and a working health check from a single sentence of instruction. The one step a human does is authorizing the account: &lt;code&gt;hostim login&lt;/code&gt; prints a device code and somebody approves it in a browser. That happens once — afterwards the token is on disk and the agent runs unattended. In CI there is no login step at all, just &lt;code&gt;HOSTIM_TOKEN&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does an agent authenticate?&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;hostim login&lt;/code&gt; prints a URL and a short code, polls until you approve it in the browser, and saves the token. For CI, export &lt;code&gt;HOSTIM_TOKEN&lt;/code&gt; and skip login entirely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there an MCP server?&lt;/strong&gt;&lt;br&gt;
Yes: &lt;code&gt;hostim mcp&lt;/code&gt; on stdio, same binary and token. Read-only tools are always registered; creates and deletes need &lt;code&gt;--allow-write&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I give an agent the CLI documentation?&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;hostim agent&lt;/code&gt; prints the full manual to stdout. Pipe it into the agent's context before it writes commands.&lt;/p&gt;




&lt;p&gt;If your deploys should be driveable from a terminal, a pipeline or an agent — not only from a console someone has to sit in front of — that is what &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; is built for. EU-hosted, flat monthly price, managed Postgres, MySQL and Redis with replication and failover on every plan.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://hostim.dev/blog/three-agents-one-deploy" rel="noopener noreferrer"&gt;hostim.dev&lt;/a&gt;. Test run on 14 September 2026 with hostim CLI v0.1.20, Claude Code v2.1.270 (Sonnet 5), Codex, and OpenCode on DeepSeek V4.1 Flash.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cli</category>
      <category>ai</category>
      <category>devops</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Migrating a Production Cluster Off ingress-nginx to Traefik v3</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Mon, 31 Aug 2026 14:43:32 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/migrating-a-production-cluster-off-ingress-nginx-to-traefik-v3-19ij</link>
      <guid>https://dev.to/pavel-hostim/migrating-a-production-cluster-off-ingress-nginx-to-traefik-v3-19ij</guid>
      <description>&lt;p&gt;Short answer: Traefik v3.7's &lt;code&gt;kubernetesIngressNGINX&lt;/code&gt; provider reads Ingresses on the ingress-nginx class and translates its annotations, so the cutover itself is a load balancer IP handover — no annotation rewrite across your Ingresses, no dual-IngressClass trick. What it does not cover is the ingress-nginx &lt;em&gt;controller&lt;/em&gt; configuration: TLS redirect, global error pages, the default certificate, auth annotations after you switch class. Those you port by hand.&lt;/p&gt;

&lt;p&gt;We moved a production cluster on 23 August 2026: many Ingresses, multi-tenant, customer apps. Here is what we did and what it cost.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why we moved, and why we waited
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/kubernetes/ingress-nginx" rel="noopener noreferrer"&gt;ingress-nginx&lt;/a&gt; is retired upstream and has not received patches since March 2026. Running an unpatched component in the request path of every customer app is not a position you can hold indefinitely, so the move was going to happen.&lt;/p&gt;

&lt;p&gt;We waited about six months anyway. Being early on a migration like this means finding the bugs yourself and writing the guide instead of reading it. There was no upside to going first: ingress-nginx kept working the whole time, and every month of waiting meant more people had hit the sharp edges before us and written them down. That trade only stops making sense once the security exposure outweighs it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Traefik
&lt;/h2&gt;

&lt;p&gt;Our general rule is to stay close to Kubernetes best practice rather than pick something clever. If upstream converges fully on Gateway API, we want to follow without another migration.&lt;/p&gt;

&lt;p&gt;That is most of the reasoning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mature.&lt;/strong&gt; Long track record as an ingress controller, not a recent entrant.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supports both Ingress and Gateway API.&lt;/strong&gt; We run Ingress today. The option to move to Gateway API later without changing controllers again is the point.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ingress-nginx compatibility provider was a bonus we found while planning, not the reason for the choice. It did make the cutover much cheaper than it would otherwise have been.&lt;/p&gt;




&lt;h2&gt;
  
  
  How the cutover worked
&lt;/h2&gt;

&lt;p&gt;Traefik v3.7 added &lt;code&gt;providers.kubernetesIngressNGINX&lt;/code&gt;. It serves Ingresses whose IngressClass object names the ingress-nginx controller, and translates the &lt;code&gt;nginx.ingress.kubernetes.io/*&lt;/code&gt; annotations itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;providers&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;kubernetesIngressNGINX&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;enabled&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;controllerClass&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;k8s.io/ingress-nginx"&lt;/span&gt;
    &lt;span class="na"&gt;ingressClass&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;nginx"&lt;/span&gt;
    &lt;span class="na"&gt;defaultBackendService&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;traefik/default-backend"&lt;/span&gt;
    &lt;span class="na"&gt;publishService&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;enabled&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With that enabled, every existing Ingress — including the ones our operator generates for customer apps and cert-manager's HTTP-01 solver Ingresses — needed no edit. Deploy Traefik alongside ingress-nginx, then move the MetalLB load balancer IP from one Service to the other. That is the cutover.&lt;/p&gt;

&lt;p&gt;It does not overlap with the normal &lt;code&gt;kubernetesIngress&lt;/code&gt; provider: that one matches only IngressClass objects naming Traefik's controller, this one only &lt;code&gt;k8s.io/ingress-nginx&lt;/code&gt;. We left it enabled after the migration. Turning it off means editing every Ingress in the cluster to buy nothing, and it keeps a rollback cheap.&lt;/p&gt;




&lt;h2&gt;
  
  
  What we ported by hand
&lt;/h2&gt;

&lt;p&gt;The compatibility provider covers Ingress annotations. It does not cover what was configured on the ingress-nginx controller itself, and it stops applying to any Ingress the moment you switch that Ingress to &lt;code&gt;ingressClassName: traefik&lt;/code&gt;. Four things needed doing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic auth on platform endpoints
&lt;/h3&gt;

&lt;p&gt;Our internal services were protected with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;nginx.ingress.kubernetes.io/auth-type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;basic&lt;/span&gt;
&lt;span class="na"&gt;nginx.ingress.kubernetes.io/auth-secret&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;internal-basic-auth&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Traefik's native provider does not implement these annotations. It does not error and it does not fall back — the router is created without authentication. So the Middleware has to exist before the class flips, not after:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;traefik.io/v1alpha1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Middleware&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;internal-basic-auth&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;internal&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;basicAuth&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;secret&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;internal-basic-auth-traefik&lt;/span&gt;
    &lt;span class="na"&gt;realm&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Authentication&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Required"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;referenced from the Ingress:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;annotations&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;traefik.ingress.kubernetes.io/router.middlewares&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;internal-internal-basic-auth@kubernetescrd"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details. Traefik reads the key &lt;code&gt;users&lt;/code&gt;, ingress-nginx reads &lt;code&gt;auth&lt;/code&gt;. And Traefik's BasicAuth rejects a Secret with more than one key (&lt;code&gt;must be single element exactly&lt;/code&gt;), so you cannot just add a second key to the existing Secret — we created a separate &lt;code&gt;-traefik&lt;/code&gt; Secret and left the original intact for rollback.&lt;/p&gt;

&lt;h3&gt;
  
  
  Global error pages
&lt;/h3&gt;

&lt;p&gt;ingress-nginx has &lt;code&gt;custom-http-errors&lt;/code&gt; in the controller ConfigMap. Traefik has no global equivalent: errors are a Middleware, and the compatibility provider only honours the per-Ingress annotation. We serve a branded page for stopped, broken or suspended apps, and we are not going to add an annotation to every Ingress the operator generates, so the Middleware hangs off the entrypoint instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;traefik.io/v1alpha1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Middleware&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;errorpage&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;traefik&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;errors&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;503"&lt;/span&gt;
    &lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;default-backend&lt;/span&gt;
      &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;80&lt;/span&gt;
    &lt;span class="na"&gt;query&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;web&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;http&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;middlewares&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;traefik-errorpage@kubernetescrd&lt;/span&gt;
  &lt;span class="na"&gt;websecure&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;http&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;middlewares&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;traefik-errorpage@kubernetescrd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This needs &lt;code&gt;providers.kubernetesCRD.allowEmptyServices: true&lt;/code&gt;. Without it, a Service with no endpoints returns 404 rather than 503, and the Middleware never fires.&lt;/p&gt;

&lt;p&gt;Unknown hostnames are a separate mechanism: &lt;code&gt;defaultBackendService&lt;/code&gt; on the compatibility provider, replacing ingress-nginx's &lt;code&gt;defaultBackend&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The default certificate
&lt;/h3&gt;

&lt;p&gt;ingress-nginx serves a fallback certificate via &lt;code&gt;--default-ssl-certificate&lt;/code&gt;. We rely on it: the operator leaves the built-in app domains out of the Ingress TLS block on purpose, because a wildcard covers them.&lt;/p&gt;

&lt;p&gt;In Traefik this is a &lt;code&gt;TLSStore&lt;/code&gt; named &lt;code&gt;default&lt;/code&gt;, and the Secret must live in Traefik's namespace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;tlsStore&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;defaultCertificate&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;secretName&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;wildcard-tls&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Miss it and those hostnames are served Traefik's own self-signed certificate. Nothing in the control plane reports an error; the failure is a browser warning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Metrics and dashboards
&lt;/h3&gt;

&lt;p&gt;Metric names change completely: &lt;code&gt;nginx_ingress_controller_*&lt;/code&gt; becomes &lt;code&gt;traefik_service_*&lt;/code&gt; and &lt;code&gt;traefik_entrypoint_*&lt;/code&gt;. Traefik's ServiceMonitor relabels its own &lt;code&gt;service&lt;/code&gt; label to &lt;code&gt;exported_service&lt;/code&gt;, so panels grouping by service have to group on that instead. Our networking dashboard was empty until it was rewritten — worth knowing in advance so nobody reads blank panels as an outage.&lt;/p&gt;

&lt;p&gt;One setting we deliberately did not port: &lt;code&gt;proxy-body-size: 50m&lt;/code&gt;. Traefik does not limit request body size by default.&lt;/p&gt;




&lt;h2&gt;
  
  
  What went wrong
&lt;/h2&gt;

&lt;p&gt;ingress-nginx redirects HTTP to HTTPS by default. Traefik does not, and nothing in the cutover carried that behaviour across. Every app in the cluster answered on port 80 in cleartext. Nothing was down, no health check failed, and traffic on 443 looked normal — plain HTTP was simply being served instead of redirected.&lt;/p&gt;

&lt;p&gt;Our monitoring caught it, because it checks for the redirect. The fix belongs at the entrypoint rather than per Ingress:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;web&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;http&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;redirections&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;entryPoint&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;websecure&lt;/span&gt;
          &lt;span class="na"&gt;scheme&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https&lt;/span&gt;
          &lt;span class="na"&gt;permanent&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It does not break certificate issuance — both Let's Encrypt and cert-manager 1.21 follow the redirect during HTTP-01 without validating the certificate at the target.&lt;/p&gt;

&lt;p&gt;The general lesson is not about Traefik. Controller-level defaults are invisible in your manifests, so a migration diff of your Ingresses shows nothing missing. What ingress-nginx did &lt;em&gt;for&lt;/em&gt; you by default is exactly what nobody wrote down.&lt;/p&gt;




&lt;h2&gt;
  
  
  Uninstalling ingress-nginx
&lt;/h2&gt;

&lt;p&gt;Do it through Helm, before removing the namespace.&lt;/p&gt;

&lt;p&gt;Its admission webhook is cluster-scoped with &lt;code&gt;failurePolicy: Fail&lt;/code&gt; on every Ingress CREATE and UPDATE. If you delete the namespace and orphan the webhook, every Ingress and certificate change in the cluster stops working, cert-manager's included. The chart removes the webhook in the right order. &lt;code&gt;kubectl delete ns&lt;/code&gt; does not.&lt;/p&gt;




&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;p&gt;Before switching any IngressClass to &lt;code&gt;traefik&lt;/code&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Auth annotations on that Ingress → Middleware created first, same namespace, single-key &lt;code&gt;users&lt;/code&gt; Secret.&lt;/li&gt;
&lt;li&gt;TLS redirect → entrypoint redirection configured.&lt;/li&gt;
&lt;li&gt;Custom error pages → entrypoint Middleware plus &lt;code&gt;allowEmptyServices: true&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Default certificate → &lt;code&gt;TLSStore/default&lt;/code&gt;, Secret in Traefik's namespace.&lt;/li&gt;
&lt;li&gt;Dashboards and alerts on &lt;code&gt;nginx_ingress_controller_*&lt;/code&gt; → rewritten.&lt;/li&gt;
&lt;li&gt;Body size and timeout tuning from the nginx ConfigMap → re-applied if you need it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After the cutover, check the redirect and the auth explicitly rather than trusting a green rollout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; http://app.example.com/ | &lt;span class="nb"&gt;head&lt;/span&gt; &lt;span class="nt"&gt;-1&lt;/span&gt;                       &lt;span class="c"&gt;# expect 308&lt;/span&gt;
curl &lt;span class="nt"&gt;-o&lt;/span&gt; /dev/null &lt;span class="nt"&gt;-w&lt;/span&gt; &lt;span class="s1"&gt;'%{http_code}\n'&lt;/span&gt; https://internal.example.com/  &lt;span class="c"&gt;# expect 401&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And confirm the certificate served on a domain that has no TLS block of its own is your wildcard, not the controller's self-signed default.&lt;/p&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is ingress-nginx dead?&lt;/strong&gt;&lt;br&gt;
Retired upstream, unpatched since March 2026. It keeps running; security fixes are not coming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I have to rewrite my nginx annotations to move to Traefik?&lt;/strong&gt;&lt;br&gt;
No. Traefik v3.7+ ships &lt;code&gt;providers.kubernetesIngressNGINX&lt;/code&gt;, which serves Ingresses on the ingress-nginx class and translates its annotations. Controller-level configuration is not covered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What breaks when I switch an Ingress from class nginx to class traefik?&lt;/strong&gt;&lt;br&gt;
Anything relying on an annotation the native Traefik provider does not implement. Auth annotations are the one to check first: the endpoint is served without authentication rather than erroring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does an HTTP-to-HTTPS redirect break Let's Encrypt HTTP-01?&lt;/strong&gt;&lt;br&gt;
No. Let's Encrypt and cert-manager follow the redirect and do not validate the certificate at the target.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I uninstall ingress-nginx safely?&lt;/strong&gt;&lt;br&gt;
Through Helm, before deleting the namespace. Its cluster-scoped admission webhook has &lt;code&gt;failurePolicy: Fail&lt;/code&gt;, so orphaning it blocks every Ingress change in the cluster.&lt;/p&gt;




&lt;p&gt;If you would rather not run any of this yourself, that is the point of &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; — you push a container, we run the ingress, the certificates and the cluster underneath. EU-hosted, flat monthly price.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Deploy an app on Hostim, free 5-day trial, no card&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We're building Hostim.dev to make this simpler, and we are happy to answer any questions.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated: 31 August 2026. Versions: Traefik chart 41.3.0 (v3.7.11), cert-manager 1.21. Configuration snippets are from our production cluster, trimmed for readability. Check the &lt;a href="https://doc.traefik.io/traefik/" rel="noopener noreferrer"&gt;Traefik documentation&lt;/a&gt; for the current list of translated ingress-nginx annotations before planning your own cutover.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>traefik</category>
      <category>devops</category>
      <category>sre</category>
    </item>
    <item>
      <title>What Is beacon.min.js? Cloudflare's Auto-Injected Analytics, and How to Turn It Off (2026)</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Mon, 17 Aug 2026 11:07:20 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/what-is-beaconminjs-cloudflares-auto-injected-analytics-and-how-to-turn-it-off-2026-10g2</link>
      <guid>https://dev.to/pavel-hostim/what-is-beaconminjs-cloudflares-auto-injected-analytics-and-how-to-turn-it-off-2026-10g2</guid>
      <description>&lt;p&gt;Short answer: &lt;code&gt;beacon.min.js&lt;/code&gt; is Cloudflare's Real User Measurement script. If your domain is on a &lt;strong&gt;free&lt;/strong&gt; Cloudflare plan and proxied through them (the orange cloud), Cloudflare has been &lt;strong&gt;injecting it into your HTML by default since September 2025&lt;/strong&gt; — you did not add it, it is not in your repo, and it arrives before your page reaches the browser. Paid plans are opt-in only. You turn it off in &lt;strong&gt;Analytics &amp;amp; Logs → Web Analytics → Manage Site → Advanced Options → JS Snippet injection&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Two things are worth separating here, because the thread that put this on the front page of Hacker News this week mixed them together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The GDPR panic is mostly overstated.&lt;/strong&gt; The default configuration excludes EU visitor data. Cloudflare's own words, from the thread: "we will not collect any RUM metrics from traffic that passes through our European and UK data centers."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The consent problem is real anyway, and it is a different problem.&lt;/strong&gt; The beacon is injected at the edge, so it lands on the page before your consent management platform gets to run. There is nothing for your CMP to gate. That is true regardless of who the visitor is.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I run a hosting company, so treat me accordingly — I have an obvious interest in you thinking hard about what your platform does to your bytes. That is exactly why I want to be careful with the facts rather than loud about them.&lt;/p&gt;




&lt;h2&gt;
  
  
  What actually happens
&lt;/h2&gt;

&lt;p&gt;Someone moved their nameservers to Cloudflare and later found a 31KB JavaScript file executing on a site they had deliberately built with no JavaScript at all — which sounds like a compromise until you read the docs and realise it is just what the free plan does.&lt;/p&gt;

&lt;p&gt;The mechanism matters more than the outrage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Injection happens &lt;strong&gt;at the edge&lt;/strong&gt;, in Cloudflare's proxy, on the way to the visitor. Your origin server sends HTML without the script; the visitor receives HTML with it.&lt;/li&gt;
&lt;li&gt;It only applies to &lt;strong&gt;proxied&lt;/strong&gt; records — orange cloud. DNS-only records pass through untouched.&lt;/li&gt;
&lt;li&gt;With automatic setup and no Rules configured, it goes on &lt;strong&gt;every page of every subdomain in the zone&lt;/strong&gt;, not just the pages you were thinking about.&lt;/li&gt;
&lt;li&gt;When auto-injected on a proxied domain, the beacon reports to &lt;code&gt;/cdn-cgi/rum&lt;/code&gt; &lt;strong&gt;on your own domain&lt;/strong&gt;, so it does not show up as a third-party request in the obvious place you would look for one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last detail is the one I would have missed. A quick scan of third-party domains in your network tab does not catch it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Is Cloudflare's beacon a GDPR problem?
&lt;/h2&gt;

&lt;p&gt;Probably not in the default configuration, and I would rather say that plainly than farm the fear.&lt;/p&gt;

&lt;p&gt;Here is what Cloudflare stated in the discussion, verbatim: &lt;em&gt;"The version of Web Analytics that will be enabled by default excludes data from EU visitors (this can be changed in the dashboard if you want)."&lt;/em&gt; And: &lt;em&gt;"you can choose to drop requests from European and UK visitors if you so desire... we will not collect any RUM metrics from traffic that passes through our European and UK data centers."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So if you are an EU business serving mostly EU visitors, the default posture is that the measurement is not collected for them. That is a genuinely more thoughtful default than "collect everything and let the customer sort it out."&lt;/p&gt;

&lt;p&gt;What that statement does &lt;strong&gt;not&lt;/strong&gt; settle — and what I could not confirm from Cloudflare's public documentation either way — is whether the script is still &lt;em&gt;served and executed&lt;/em&gt; in EU visitors' browsers while the metrics are discarded on Cloudflare's side. "We do not collect" and "we do not inject" are different promises, and only one of them was made. If that distinction matters for your compliance posture, check it on your own domain rather than taking my word or theirs. The command is in the next section.&lt;/p&gt;

&lt;p&gt;The consent point stands separately from all of this. Edge injection cannot be gated by a consent banner that has not loaded yet, so any tag-governance story you tell your auditors has a hole in it while automatic injection is on.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to check what your host injects
&lt;/h2&gt;

&lt;p&gt;This is the part worth keeping regardless of which platform you are on. Ask your origin for the page, then ask the public internet for the same page, and compare.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. What your server actually sends (replace with your origin IP)&lt;/span&gt;
curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;--resolve&lt;/span&gt; example.com:443:203.0.113.10 https://example.com/ &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; origin.html

&lt;span class="c"&gt;# 2. What a visitor actually receives&lt;/span&gt;
curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/ &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; edge.html

&lt;span class="c"&gt;# 3. Anything your origin never wrote&lt;/span&gt;
diff origin.html edge.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the specific case, a direct grep is enough:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/ | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'cloudflareinsights|beacon\.min\.js|/cdn-cgi/rum'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Empty output means nothing is being injected on that path. Any hit means something is editing your HTML between your server and your users.&lt;/p&gt;

&lt;p&gt;Worth running against a few different paths, not just &lt;code&gt;/&lt;/code&gt;. Rules can scope injection to a subset of pages, so the homepage being clean does not prove much on its own.&lt;/p&gt;




&lt;h2&gt;
  
  
  Turning it off
&lt;/h2&gt;

&lt;p&gt;In the Cloudflare dashboard:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Analytics &amp;amp; Logs → Web Analytics&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manage Site&lt;/strong&gt; on the domain&lt;/li&gt;
&lt;li&gt;Expand &lt;strong&gt;Advanced Options&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Toggle off &lt;strong&gt;JS Snippet injection&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you actually want the performance data — and RUM data is genuinely useful, that part of Cloudflare's argument is fine — disable the automatic injection and add the snippet yourself. Then it is a tag like any other tag: your CMP can gate it, your CSP applies to it, and it is visible in your repository where the next person can find it.&lt;/p&gt;

&lt;p&gt;One quirk to know before you go looking: several people reported having to enable Web Analytics first in order to reach the switch that turns the injection off.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Cloudflare collects, and for how long
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Thing&lt;/th&gt;
&lt;th&gt;Detail&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Script&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;beacon.min.js&lt;/code&gt;, roughly 31KB, from &lt;code&gt;static.cloudflareinsights.com&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reporting endpoint&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/cdn-cgi/rum&lt;/code&gt; on your own domain when auto-injected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default on&lt;/td&gt;
&lt;td&gt;Free plans, since September 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default on paid plans&lt;/td&gt;
&lt;td&gt;No — opt-in only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EU/UK visitors&lt;/td&gt;
&lt;td&gt;Excluded from collection in the default configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Raw data retention&lt;/td&gt;
&lt;td&gt;Unsampled for 7 days, then aggregated down to roughly 10%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope with automatic setup&lt;/td&gt;
&lt;td&gt;Every page and subdomain in the zone, unless Rules narrow it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The part I actually care about
&lt;/h2&gt;

&lt;p&gt;The reason this landed on the front page is not that RUM is sinister. It is that the boundary moved without anyone noticing, and a free plan turned out to include a term nobody read.&lt;/p&gt;

&lt;p&gt;It rhymes with the other platform stories I keep writing about — &lt;a href="https://hostim.dev/blog/netlify-credit-pricing" rel="noopener noreferrer"&gt;Netlify moving to credit pricing&lt;/a&gt;, or &lt;a href="https://hostim.dev/blog/usage-based-pricing-creep" rel="noopener noreferrer"&gt;metered bills that drift upward month after month&lt;/a&gt; — in the sense that the platform changes something in the middle of your stack, the change turns out to be perfectly defensible once you go and read the docs, and you find out about it later than you would have liked. The free tier is usually where it lands first, because that is where the leverage is and where nobody is reading a contract.&lt;/p&gt;

&lt;p&gt;I do not think Cloudflare did anything villainous here. Their EU default is more careful than most, and their engineer showed up in the thread and answered directly, which is more than most companies manage. But "on by default for the people who are not paying, opt-in for the people who are" is a choice, and it is worth seeing it clearly rather than being annoyed at it vaguely.&lt;/p&gt;

&lt;p&gt;Since it would be cowardly to write this without stating our own position: Hostim does not modify customer response bodies. The ingress in front of your app sets one annotation, &lt;code&gt;x-forwarded-proto: https&lt;/code&gt;, which is a request header going towards your container — no &lt;code&gt;sub_filter&lt;/code&gt;, no snippet injection, nothing added to what you send back. You do not have to take my word for it, and you should not: run the same &lt;code&gt;diff&lt;/code&gt; from the section above against your own Hostim app. If it ever comes back non-empty, that is a bug and I want to hear about it.&lt;/p&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is beacon.min.js?&lt;/strong&gt;&lt;br&gt;
It is Cloudflare's Real User Measurement (RUM) script, about 31KB, served from &lt;code&gt;static.cloudflareinsights.com&lt;/code&gt;. It measures page performance in real visitors' browsers and reports back to Cloudflare.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is beacon.min.js on my site when I never added it?&lt;/strong&gt;&lt;br&gt;
Because Cloudflare injects it at the edge. Free plans have this on by default since September 2025 for domains proxied through Cloudflare (orange cloud). It never touches your source code, so it will not appear in your repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I disable Cloudflare's automatic beacon injection?&lt;/strong&gt;&lt;br&gt;
Cloudflare dashboard → Analytics &amp;amp; Logs → Web Analytics → Manage Site → Advanced Options → toggle off &lt;strong&gt;JS Snippet injection&lt;/strong&gt;. You may need to enable Web Analytics first before the toggle is reachable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the Cloudflare beacon violate GDPR?&lt;/strong&gt;&lt;br&gt;
In the default configuration Cloudflare states it does not collect RUM metrics from traffic through its European and UK data centres, so the collection concern is largely addressed. The separate, unresolved issue is consent management: because the script is injected at the edge, it loads before your consent platform can gate it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is Cloudflare Web Analytics injected on paid plans too?&lt;/strong&gt;&lt;br&gt;
No. Cloudflare states all paid plans are opt-in only. The default-on behaviour applies to free plans.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I see what my hosting provider injects into my pages?&lt;/strong&gt;&lt;br&gt;
Fetch the page from your origin and from the public URL, then diff the two. Anything present in the second and absent in the first was added in transit. There is a copy-paste version of this above.&lt;/p&gt;




&lt;p&gt;If you would rather your hosting provider just serve what you gave it, that is roughly the whole design philosophy behind &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; — your container, your bytes, a flat monthly price, hosted in the EU. New projects get a free 5-day trial, no card.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://hostim.dev/dashboard?preview=1&amp;amp;modal=1&amp;amp;compose=1" rel="noopener noreferrer"&gt;Deploy an app on Hostim, free 5-day trial, no card&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We're building Hostim.dev to make this simpler, and we are happy to answer any questions.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated: 17 August 2026. Cloudflare's quoted statements are from its engineer's replies in the &lt;a href="https://news.ycombinator.com/item?id=49322107" rel="noopener noreferrer"&gt;Hacker News discussion&lt;/a&gt; on 16 August 2026; the beacon endpoint, sampling and retention details are from &lt;a href="https://developers.cloudflare.com/web-analytics/faq/" rel="noopener noreferrer"&gt;Cloudflare's Web Analytics documentation&lt;/a&gt;, checked 17 August 2026. Defaults change — verify against your own dashboard before relying on any of this.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://hostim.dev/blog/cloudflare-beacon-injection/" rel="noopener noreferrer"&gt;hostim.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloudflare</category>
      <category>webdev</category>
      <category>privacy</category>
      <category>devops</category>
    </item>
    <item>
      <title>What Does 'Hello World' Actually Cost on AWS vs Bare Metal? (2026)</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Mon, 03 Aug 2026 15:39:51 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/what-does-hello-world-actually-cost-on-aws-vs-bare-metal-2026-4f41</link>
      <guid>https://dev.to/pavel-hostim/what-does-hello-world-actually-cost-on-aws-vs-bare-metal-2026-4f41</guid>
      <description>&lt;p&gt;Short answer: one "hello world" container with a domain and HTTPS costs about &lt;strong&gt;$32 per month on AWS if you set it up carefully&lt;/strong&gt;, and about &lt;strong&gt;$69 per month if you follow the default AWS tutorial&lt;/strong&gt;. The same thing on a small Hetzner Cloud server costs &lt;strong&gt;€5.99 per month&lt;/strong&gt;. Bare metal is the surprising one. A Hetzner AX42-1 costs &lt;strong&gt;€97.30 per month&lt;/strong&gt;, which makes it the most expensive option here, not the cheapest.&lt;/p&gt;

&lt;p&gt;Two results are worth explaining, and neither is what people usually say:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compute is not the expensive part on AWS at this size.&lt;/strong&gt; In the realistic setup, the container is 15% of the bill. The other 85% is the load balancer and the NAT gateway. Those cost the same whether you serve one request per month or a million.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bare metal is not cheap. It is cheap per app.&lt;/strong&gt; A dedicated server only pays off when you fill it. For one container it is a bad deal.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How I priced this
&lt;/h2&gt;

&lt;p&gt;Here is the method first. Every rate below links to the vendor price list, and the arithmetic is shown, so you can check any line yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The workload:&lt;/strong&gt; one container running a web app, one replica, reachable on your own domain over HTTPS. No database, no background jobs, almost no traffic. This is the thing you deploy on day one to check that the pipeline works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I measured:&lt;/strong&gt; list price for the simplest working setup on each platform, in Europe, for one month (730 hours). Not performance. Not a tuned setup, and not a setup with commitments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I left out:&lt;/strong&gt; VAT, CloudWatch logs, your own time, and discounts from AWS Savings Plans. Savings Plans do lower the Fargate line. They do not apply to the Application Load Balancer or the NAT gateway, and that is where most of the AWS money goes here. A commitment lowers the small number, not the big one.&lt;/p&gt;

&lt;p&gt;Rates are AWS &lt;code&gt;eu-central-1&lt;/code&gt; (Frankfurt) and Hetzner Falkenstein/Helsinki, as published on &lt;strong&gt;3 August 2026&lt;/strong&gt;. EUR to USD at &lt;strong&gt;1.1535&lt;/strong&gt; (&lt;a href="https://api.frankfurter.dev/v1/latest?base=EUR&amp;amp;symbols=USD" rel="noopener noreferrer"&gt;ECB reference rate, 3 August 2026&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  What does one container cost on AWS Fargate?
&lt;/h2&gt;

&lt;p&gt;Here are two versions. The difference between them is the interesting part.&lt;/p&gt;

&lt;h3&gt;
  
  
  The cheapest AWS setup that still works
&lt;/h3&gt;

&lt;p&gt;Fargate on ARM. The task sits in a public subnet with its own public IP, so there is no NAT gateway.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line item&lt;/th&gt;
&lt;th&gt;Arithmetic&lt;/th&gt;
&lt;th&gt;Monthly&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fargate ARM, 0.25 vCPU&lt;/td&gt;
&lt;td&gt;0.25 × $0.03725 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$6.80&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fargate ARM, 0.5 GB RAM&lt;/td&gt;
&lt;td&gt;0.5 × $0.00409 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$1.49&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Application Load Balancer, base&lt;/td&gt;
&lt;td&gt;$0.027 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$19.71&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public IPv4 address&lt;/td&gt;
&lt;td&gt;$0.005 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$3.65&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Route 53 hosted zone&lt;/td&gt;
&lt;td&gt;flat&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.50&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data transfer out&lt;/td&gt;
&lt;td&gt;under the 100 GB free allowance&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.00&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ECR image storage&lt;/td&gt;
&lt;td&gt;under the 500 MB free tier&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.00&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$32.15&lt;/strong&gt; (about €27.87)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The container is $8.29 of that total. The load balancer alone costs more than twice as much as the container.&lt;/p&gt;

&lt;h3&gt;
  
  
  The setup you get from the tutorials
&lt;/h3&gt;

&lt;p&gt;Fargate on x86. The task sits in a private subnet behind a NAT gateway, which is what the CDK and the console give you by default. I also added one load balancer capacity unit for real traffic.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line item&lt;/th&gt;
&lt;th&gt;Arithmetic&lt;/th&gt;
&lt;th&gt;Monthly&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fargate x86, 0.25 vCPU&lt;/td&gt;
&lt;td&gt;0.25 × $0.04656 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$8.50&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fargate x86, 0.5 GB RAM&lt;/td&gt;
&lt;td&gt;0.5 × $0.00511 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$1.87&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Application Load Balancer, base&lt;/td&gt;
&lt;td&gt;$0.027 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$19.71&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ALB capacity units&lt;/td&gt;
&lt;td&gt;1 LCU × $0.008 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$5.84&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NAT gateway, hourly&lt;/td&gt;
&lt;td&gt;$0.045 × 730&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$32.85&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NAT gateway, data processing&lt;/td&gt;
&lt;td&gt;5 GB × $0.045&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.23&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Route 53 hosted zone&lt;/td&gt;
&lt;td&gt;flat&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.50&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$69.50&lt;/strong&gt; (about €60.25)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;The NAT gateway costs more than everything else together&lt;/strong&gt;, including the app you want to run. Its job is to let your container reach the internet from a private subnet. For a hello world you get very little back for that money, and it is switched on by default in most getting-started guides.&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonECS/current/eu-central-1/index.json" rel="noopener noreferrer"&gt;AWS Price List API, AmazonECS eu-central-1&lt;/a&gt; (published 7 July 2026), &lt;a href="https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AWSELB/current/eu-central-1/index.json" rel="noopener noreferrer"&gt;AWSELB eu-central-1&lt;/a&gt; (20 July 2026), &lt;a href="https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonVPC/current/eu-central-1/index.json" rel="noopener noreferrer"&gt;AmazonVPC eu-central-1&lt;/a&gt; (24 July 2026), &lt;a href="https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonRoute53/current/index.json" rel="noopener noreferrer"&gt;Route 53&lt;/a&gt; (27 May 2026), &lt;a href="https://aws.amazon.com/vpc/pricing/" rel="noopener noreferrer"&gt;VPC pricing&lt;/a&gt;, &lt;a href="https://aws.amazon.com/ecr/pricing/" rel="noopener noreferrer"&gt;ECR pricing&lt;/a&gt;, &lt;a href="https://aws.amazon.com/ec2/pricing/on-demand/" rel="noopener noreferrer"&gt;EC2 on-demand pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the same container cost on a VPS?
&lt;/h2&gt;

&lt;p&gt;A Hetzner Cloud CX23 has 2 vCPU, 4 GB RAM, 40 GB disk and 20 TB of included traffic. You run Docker on it, plus Caddy for automatic TLS.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line item&lt;/th&gt;
&lt;th&gt;Monthly&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CX23 instance&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€5.49&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary IPv4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;€0.50&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;€5.99&lt;/strong&gt; (about $6.91)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is about one tenth of the realistic AWS bill, on a machine with 8 times the RAM and 8 times the vCPU count of the Fargate task. In exchange you lose managed TLS renewal, health checks and rolling deploys. You now do those yourself. For one hello world that is maybe an afternoon of Caddy config and a systemd unit.&lt;/p&gt;

&lt;p&gt;These prices changed recently. Hetzner raised prices on &lt;strong&gt;15 June 2026&lt;/strong&gt;, and the increases were very uneven:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Old&lt;/th&gt;
&lt;th&gt;New&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CX23&lt;/td&gt;
&lt;td&gt;€3.99&lt;/td&gt;
&lt;td&gt;€5.49&lt;/td&gt;
&lt;td&gt;+38%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAX11 (ARM)&lt;/td&gt;
&lt;td&gt;€4.49&lt;/td&gt;
&lt;td&gt;€5.99&lt;/td&gt;
&lt;td&gt;+33%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPX22&lt;/td&gt;
&lt;td&gt;€7.99&lt;/td&gt;
&lt;td&gt;€19.49&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+144%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CCX13 (dedicated vCPU)&lt;/td&gt;
&lt;td&gt;€15.99&lt;/td&gt;
&lt;td&gt;€42.99&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+169%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The cheap shared-vCPU plans went up a little. The dedicated-vCPU plans almost tripled. If you remember Hetzner prices from before June, check the specific plan again before you budget with it. Sources: &lt;a href="https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/" rel="noopener noreferrer"&gt;Hetzner price adjustment notice&lt;/a&gt; (last changed 8 July 2026) and &lt;a href="https://docs.hetzner.com/general/others/ipv4-pricing/" rel="noopener noreferrer"&gt;Hetzner IPv4 pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is bare metal cheaper than AWS?
&lt;/h2&gt;

&lt;p&gt;For one container, no.&lt;/p&gt;

&lt;p&gt;A Hetzner AX42-1 dedicated server costs &lt;strong&gt;€97.30 per month plus a €49 one-time setup fee&lt;/strong&gt;, without IPv4 (&lt;a href="https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/" rel="noopener noreferrer"&gt;same price list&lt;/a&gt;). That is €112.24 in the first month and €97.30 after that. It costs more than the $69.50 AWS bill it is supposed to beat.&lt;/p&gt;

&lt;p&gt;Bare metal wins on density, not on price. The arithmetic is simple. At €97.30 against €5.99, a dedicated server has to replace about &lt;strong&gt;16 small cloud instances&lt;/strong&gt; before it breaks even. Below that number you pay for capacity you do not use.&lt;/p&gt;

&lt;p&gt;So the rule is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1 app:&lt;/strong&gt; use a VPS, or a platform that bills per app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A few apps:&lt;/strong&gt; still a VPS, maybe a bigger one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dozens of apps, or heavy steady load:&lt;/strong&gt; now bare metal is the cheap option, and the saving is large.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If someone tells you bare metal is cheaper without asking how many workloads you run, the number they give you is not useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Everything side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Monthly&lt;/th&gt;
&lt;th&gt;In USD&lt;/th&gt;
&lt;th&gt;What you manage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AWS Fargate, cheapest working setup&lt;/td&gt;
&lt;td&gt;€27.87&lt;/td&gt;
&lt;td&gt;$32.15&lt;/td&gt;
&lt;td&gt;IAM, task definitions, ALB, DNS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Fargate, default tutorial setup&lt;/td&gt;
&lt;td&gt;€60.25&lt;/td&gt;
&lt;td&gt;$69.50&lt;/td&gt;
&lt;td&gt;the same, plus a NAT gateway&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hetzner CX23 + IPv4&lt;/td&gt;
&lt;td&gt;€5.99&lt;/td&gt;
&lt;td&gt;$6.91&lt;/td&gt;
&lt;td&gt;the whole machine: OS, TLS, deploys, patching&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hetzner AX42-1 bare metal&lt;/td&gt;
&lt;td&gt;€97.30 (+€49 setup)&lt;/td&gt;
&lt;td&gt;$112.24 (+$56.53)&lt;/td&gt;
&lt;td&gt;the whole machine, plus hardware failure planning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; sa-1-1&lt;/td&gt;
&lt;td&gt;€2.50&lt;/td&gt;
&lt;td&gt;$2.88&lt;/td&gt;
&lt;td&gt;your container&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All prices exclude VAT.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is the AWS bill shaped like this?
&lt;/h2&gt;

&lt;p&gt;Because AWS sells you separate parts, and a working web app needs about six of them. Each part is cheap on its own and does a sensible job. The load balancer is a good load balancer. The NAT gateway solves a real problem. But hello world needs all six, and the five that are not compute do not get cheaper when your traffic is zero.&lt;/p&gt;

&lt;p&gt;That is the real lesson, and it applies no matter who you buy from. &lt;strong&gt;At small scale you are not paying for capacity. You are paying for fixed infrastructure.&lt;/strong&gt; To make a small deployment cheap, do not buy that infrastructure separately. Either put it all on one machine yourself, or use a platform that spreads the cost across all its customers.&lt;/p&gt;

&lt;p&gt;It also means the common advice to pick a smaller instance does not help here. Halving the Fargate task saves $4. Removing the NAT gateway saves $33.&lt;/p&gt;

&lt;p&gt;We looked at the version of this problem that shows up later, when the app is real, in &lt;a href="https://hostim.dev/blog/cloud-rent-in-action" rel="noopener noreferrer"&gt;Cloud Rent in Action: How €50 Turns Into €200+&lt;/a&gt; and &lt;a href="https://hostim.dev/blog/render-vs-railway-vs-fly-pricing" rel="noopener noreferrer"&gt;Render vs Railway vs Fly.io pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do AWS Savings Plans fix this?&lt;/strong&gt;&lt;br&gt;
They lower the Fargate line. They do not apply to the Application Load Balancer, the NAT gateway or Route 53, which together are 85% of the realistic bill. A three-year commitment changes the small number, not the big one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I avoid the NAT gateway?&lt;/strong&gt;&lt;br&gt;
Yes. Put the task in a public subnet with a public IP, which is the cheapest setup in the table above. It saves about $33 per month and is fine for a stateless container. It is not the default, and most tutorials will not do it for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the AWS free tier cover this?&lt;/strong&gt;&lt;br&gt;
Partly, and only for 12 months. New accounts get 750 hours of ALB and some Fargate allowance, so the first year is cheaper. The bill above is what you pay in month 13. That is the number to plan with.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What about Lambda instead of Fargate?&lt;/strong&gt;&lt;br&gt;
For workloads that are idle most of the time, Lambda with an HTTP API gateway avoids both the ALB and the NAT gateway, and a hello world can cost close to nothing. The trade-off is a different execution model: cold starts, a 15-minute limit, and rewriting your container as a handler. Good for small services with occasional traffic. It is not a drop-in replacement for a running app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is €2.50 real, or is there a metered surprise?&lt;/strong&gt;&lt;br&gt;
It is flat. Hostim bills per plan, not per request, per GB or per seat. The &lt;a href="https://hostim.dev/docs/billing/pricing-model" rel="noopener noreferrer"&gt;pricing model doc&lt;/a&gt; has the full tables. The honest trade-off is different: it is a small, founder-led platform, so weigh the track record and the support scale, not the feature list.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One hello world on AWS costs &lt;strong&gt;$32 to $69 per month&lt;/strong&gt;. &lt;strong&gt;74% to 85% of that is the load balancer and the NAT gateway&lt;/strong&gt;, not compute.&lt;/li&gt;
&lt;li&gt;The same thing on a €6 VPS is &lt;strong&gt;about 10 times cheaper&lt;/strong&gt;, and you manage the machine yourself.&lt;/li&gt;
&lt;li&gt;Bare metal costs &lt;strong&gt;€97.30 per month&lt;/strong&gt;. It is the wrong tool for one app and the right tool for sixteen.&lt;/li&gt;
&lt;li&gt;Hetzner's June 2026 price rise hit the dedicated-vCPU plans hardest (+144% to +169%). The cheap shared plans went up much less (+33% to +38%).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What does your hello world cost? If you have a real bill that contradicts any of these lines, I would like to see it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I run &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim.dev&lt;/a&gt;, a flat-price container hosting platform in the EU. This post was originally published &lt;a href="https://hostim.dev/blog/hello-world-cost-aws-vs-bare-metal" rel="noopener noreferrer"&gt;on our blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>docker</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>PostgreSQL Benchmark: AWS RDS vs Hostim vs Self-Hosted on Hetzner (2026)</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Tue, 07 Jul 2026 11:04:02 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/postgresql-benchmark-aws-rds-vs-hostim-vs-self-hosted-on-hetzner-2026-202</link>
      <guid>https://dev.to/pavel-hostim/postgresql-benchmark-aws-rds-vs-hostim-vs-self-hosted-on-hetzner-2026-202</guid>
      <description>&lt;p&gt;Short answer first: at the same size (2 vCPU / 4 GB, PostgreSQL 16), &lt;strong&gt;Hostim had the fastest writes&lt;/strong&gt;, about 2.5× the write throughput of AWS RDS &lt;code&gt;db.t4g.medium&lt;/code&gt; and 2.1× a default self-hosted Postgres on Hetzner. &lt;strong&gt;Hetzner had the fastest reads&lt;/strong&gt;, on raw per-core CPU speed. &lt;strong&gt;RDS was slowest or near-slowest on both&lt;/strong&gt;, and its listed price is the smallest part of the real bill.&lt;/p&gt;

&lt;p&gt;This post shows every number, the exact commands to reproduce them, and (because it changes the conclusion) what high availability actually costs on each platform.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Benchmarks run &lt;strong&gt;July 2026&lt;/strong&gt; on PostgreSQL 16, in a central-Europe region. Prices change often, so check each provider's live pricing page before you commit. The &lt;em&gt;shape&lt;/em&gt; of the result changes far less than the exact numbers.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What we compared
&lt;/h2&gt;

&lt;p&gt;Three ways to run a small production Postgres, all at &lt;strong&gt;2 vCPU / 4 GB RAM, PostgreSQL 16&lt;/strong&gt;, in a central-Europe region:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Offering&lt;/th&gt;
&lt;th&gt;Instance&lt;/th&gt;
&lt;th&gt;Listed price / month&lt;/th&gt;
&lt;th&gt;Replicated (failover)?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hostim managed Postgres&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;drp-50&lt;/code&gt; (2 vCPU / 4 GB)&lt;/td&gt;
&lt;td&gt;€50&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes, by default&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS RDS&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;db.t4g.medium&lt;/code&gt; (2 vCPU / 4 GB)&lt;/td&gt;
&lt;td&gt;~$48 (instance only)&lt;/td&gt;
&lt;td&gt;No (single-AZ)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-hosted&lt;/td&gt;
&lt;td&gt;Hetzner CPX22 (2 vCPU AMD / 4 GB, shared)&lt;/td&gt;
&lt;td&gt;€19.49&lt;/td&gt;
&lt;td&gt;No (single node)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The "replicated" column matters a lot for both price and performance. It gets its own section below.&lt;/p&gt;




&lt;h2&gt;
  
  
  Methodology
&lt;/h2&gt;

&lt;p&gt;The goal was a like-for-like test, not a flattering one. The rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Same DB size:&lt;/strong&gt; 2 vCPU / 4 GB on every target.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Same Postgres major version:&lt;/strong&gt; 16.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A separate load generator per target&lt;/strong&gt;, one network hop from the database, in the same region, never on the database box itself. Each client had 4 vCPU so the client was never the bottleneck (checked with &lt;code&gt;mpstat&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Same workload:&lt;/strong&gt; &lt;code&gt;pgbench&lt;/code&gt;, scale factor 50 (about 750 MB, which fits in RAM so the test measures CPU and the commit path, not cold disk reads), 300-second runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Client setup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-y&lt;/span&gt; postgresql-contrib nmap sysstat   &lt;span class="c"&gt;# pgbench + nping&lt;/span&gt;
pgbench &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The workload, run identically against each database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# initialise (~750 MB)&lt;/span&gt;
pgbench &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt; 50

&lt;span class="c"&gt;# write-heavy, TPC-B-like, 4 clients, 5 minutes&lt;/span&gt;
pgbench &lt;span class="nt"&gt;-c&lt;/span&gt; 4 &lt;span class="nt"&gt;-j&lt;/span&gt; 4 &lt;span class="nt"&gt;-T&lt;/span&gt; 300

&lt;span class="c"&gt;# read-only, 8 clients, 5 minutes&lt;/span&gt;
pgbench &lt;span class="nt"&gt;-c&lt;/span&gt; 8 &lt;span class="nt"&gt;-j&lt;/span&gt; 4 &lt;span class="nt"&gt;-T&lt;/span&gt; 300 &lt;span class="nt"&gt;-S&lt;/span&gt;

&lt;span class="c"&gt;# single connection, write, 1 minute (isolates commit/fsync latency)&lt;/span&gt;
pgbench &lt;span class="nt"&gt;-c&lt;/span&gt; 1 &lt;span class="nt"&gt;-T&lt;/span&gt; 60
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Network latency was measured with a TCP ping to port 5432 (&lt;code&gt;nping --tcp -p 5432&lt;/code&gt;) and a &lt;code&gt;SELECT 1&lt;/code&gt; round-trip, because ICMP is not open on every platform.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configuration parity, stated plainly:&lt;/strong&gt; the self-hosted Hetzner node ran &lt;strong&gt;stock Postgres defaults&lt;/strong&gt; (&lt;code&gt;shared_buffers&lt;/code&gt; 128 MB, no tuning). That is the realistic "install Postgres and go" baseline. RDS ran on its default parameter group, which AWS tunes for the instance size. Hostim runs its own managed tuning. In other words, the two managed options are tuned out of the box and the self-hosted default is not, and that difference is part of what you are comparing.&lt;/p&gt;




&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;All runs completed with &lt;strong&gt;zero failed transactions&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Write throughput (4 clients, TPC-B)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;TPS&lt;/th&gt;
&lt;th&gt;Avg latency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hostim &lt;code&gt;drp-50&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2,708&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.48 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hetzner (default)&lt;/td&gt;
&lt;td&gt;1,303&lt;/td&gt;
&lt;td&gt;3.07 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS RDS &lt;code&gt;t4g.medium&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1,080&lt;/td&gt;
&lt;td&gt;3.71 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Hostim did about &lt;strong&gt;2.5× the write throughput of RDS&lt;/strong&gt; and 2.1× the default Hetzner node.&lt;/p&gt;

&lt;h3&gt;
  
  
  Single-connection write latency (1 client)
&lt;/h3&gt;

&lt;p&gt;This isolates the commit path. Every transaction waits for a WAL flush (&lt;code&gt;synchronous_commit = on&lt;/code&gt; is the default), so it mostly measures storage fsync latency.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;TPS&lt;/th&gt;
&lt;th&gt;Avg latency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hostim &lt;code&gt;drp-50&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;871&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.15 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS RDS &lt;code&gt;t4g.medium&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;416&lt;/td&gt;
&lt;td&gt;2.41 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hetzner (default)&lt;/td&gt;
&lt;td&gt;276&lt;/td&gt;
&lt;td&gt;3.63 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both self-hosted and RDS pay for network-attached block storage on the commit path. This is the single biggest driver of the write-throughput gap.&lt;/p&gt;

&lt;h3&gt;
  
  
  Read throughput (8 clients, SELECT-only)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;TPS&lt;/th&gt;
&lt;th&gt;Avg latency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hetzner (default)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;20,068&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.40 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hostim &lt;code&gt;drp-50&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;14,333&lt;/td&gt;
&lt;td&gt;0.56 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS RDS &lt;code&gt;t4g.medium&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;13,261&lt;/td&gt;
&lt;td&gt;0.60 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Reads scale with CPU, and the Hetzner box took this one on raw per-core AMD speed with no orchestration layer in the path. Hostim and RDS were close, with RDS last. Note that &lt;code&gt;db.t4g.medium&lt;/code&gt; is a &lt;strong&gt;burstable&lt;/strong&gt; instance: over a sustained 300-second run it can drop to its CPU-credit baseline, which is what the ~$48 tier is designed to provide. A workload that needs sustained CPU would move to an &lt;code&gt;m&lt;/code&gt;-class RDS instance, which costs roughly twice as much.&lt;/p&gt;

&lt;h3&gt;
  
  
  Network latency
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;TCP RTT (avg)&lt;/th&gt;
&lt;th&gt;&lt;code&gt;SELECT 1&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hostim &lt;code&gt;drp-50&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;0.48 ms&lt;/td&gt;
&lt;td&gt;~0.29 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hetzner (default)&lt;/td&gt;
&lt;td&gt;0.71 ms&lt;/td&gt;
&lt;td&gt;~0.39 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS RDS &lt;code&gt;t4g.medium&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1.50 ms&lt;/td&gt;
&lt;td&gt;~0.58 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The price you actually pay
&lt;/h2&gt;

&lt;p&gt;This is where the listed numbers stop being useful.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS RDS: $48 is not the bill
&lt;/h3&gt;

&lt;p&gt;The ~$48 is the &lt;strong&gt;instance only&lt;/strong&gt;, single-AZ, on-demand. On top of that you pay, metered separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt;: gp3 is billed per GB-month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IOPS and throughput&lt;/strong&gt; above the gp3 baseline: billed if you provision more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backups&lt;/strong&gt;: retained backup storage beyond your volume size is billed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data transfer&lt;/strong&gt;: egress and cross-AZ traffic are billed per GB.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One storage dropdown makes this concrete. Pick &lt;strong&gt;Provisioned IOPS SSD&lt;/strong&gt; in the create-database wizard and RDS defaults to &lt;strong&gt;3000 provisioned IOPS&lt;/strong&gt;, billed per IOPS-month at about &lt;strong&gt;$300/month&lt;/strong&gt; (io1 ≈ $0.10/IOPS, io2 ≈ $0.125/IOPS) on top of the instance and the GB storage. The &lt;strong&gt;gp3&lt;/strong&gt; default includes the same 3000 IOPS and 125 MB/s free up to 400 GB, so there it costs nothing. Same database, ~$300/month apart, from one dropdown.&lt;/p&gt;

&lt;p&gt;A realistic single-AZ &lt;code&gt;db.t4g.medium&lt;/code&gt; with a modest volume and normal traffic lands well above the sticker once storage, IOPS, backups, and egress are counted, and the exact figure changes month to month. Treat $48 as a floor, not a price. (We wrote about this metered-bill pattern in &lt;a href="https://hostim.dev/blog/cloud-rent-in-action" rel="noopener noreferrer"&gt;Cloud Rent in Action&lt;/a&gt; and &lt;a href="https://hostim.dev/blog/usage-based-pricing-creep" rel="noopener noreferrer"&gt;Usage-Based Pricing&lt;/a&gt;.)&lt;/p&gt;

&lt;h3&gt;
  
  
  High availability changes the comparison
&lt;/h3&gt;

&lt;p&gt;The results above are &lt;strong&gt;not&lt;/strong&gt; apples-to-apples on resilience, and this is the important part.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hostim &lt;code&gt;drp-50&lt;/code&gt; is replicated by default.&lt;/strong&gt; The €50 includes a standby and automatic failover. Nothing to configure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS RDS&lt;/strong&gt; needs &lt;strong&gt;Multi-AZ&lt;/strong&gt; for a standby with failover. Multi-AZ runs a second instance and roughly &lt;strong&gt;doubles&lt;/strong&gt; the instance and storage cost. It also makes writes &lt;strong&gt;slower&lt;/strong&gt;, because commits wait on the synchronous standby, so a fair, HA-to-HA comparison would put RDS writes &lt;em&gt;below&lt;/em&gt; the single-AZ numbers measured above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosted Hetzner&lt;/strong&gt; has no failover at all on one node. To match Hostim you add a &lt;strong&gt;second VPS&lt;/strong&gt; (another €20) and then build and operate the replication and failover yourself (streaming replication plus a tool like Patroni or repmgr, plus a routing layer), and you own every incident.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Normalised to "replicated Postgres with automatic failover":&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Offering&lt;/th&gt;
&lt;th&gt;Roughly what HA costs / month&lt;/th&gt;
&lt;th&gt;Extra work&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hostim &lt;code&gt;drp-50&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;€50, included&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS RDS Multi-AZ&lt;/td&gt;
&lt;td&gt;~2× instance + storage, plus egress and backups&lt;/td&gt;
&lt;td&gt;None, but slower writes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hetzner, 2 nodes&lt;/td&gt;
&lt;td&gt;~€40 hardware&lt;/td&gt;
&lt;td&gt;You build and run failover yourself&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So the €50 Hostim number already includes the thing that doubles the AWS price and turns the Hetzner option into an operations project.&lt;/p&gt;




&lt;h2&gt;
  
  
  Caveats
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;db.t4g.medium&lt;/code&gt; is burstable ARM; sustained runs can hit the CPU-credit baseline. That is the behaviour of the price-matched tier, not a misconfiguration.&lt;/li&gt;
&lt;li&gt;The self-hosted node used stock Postgres defaults on purpose. Tuning &lt;code&gt;shared_buffers&lt;/code&gt; and friends would raise its numbers, but doing that is your job when you self-host.&lt;/li&gt;
&lt;li&gt;RDS was single-AZ for the raw benchmark; Multi-AZ is slower and dearer, as noted above.&lt;/li&gt;
&lt;li&gt;The dataset fit in RAM (scale 50), which isolates compute. A dataset larger than RAM would put more weight on storage and widen the write gaps, not close them.&lt;/li&gt;
&lt;li&gt;Architectures differ (RDS is ARM Graviton, the others x86). This is what each provider sells at this price, so it is reported as-is.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;For &lt;strong&gt;write-heavy&lt;/strong&gt; workloads at this size, Hostim was fastest by a clear margin, mostly due to storage fsync latency on the commit path.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;read-heavy&lt;/strong&gt; workloads, a self-hosted box had the raw per-core CPU edge, if you are willing to tune it and operate it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS RDS&lt;/strong&gt; at the price-matched tier was slowest or near-slowest on both, and its real cost (storage, IOPS, egress, and Multi-AZ for failover) is a multiple of the listed instance price.&lt;/li&gt;
&lt;li&gt;If you want &lt;strong&gt;replicated&lt;/strong&gt; Postgres without running it yourself, the flat, HA-included price is the number to compare against, not the single-node sticker.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every number above is reproducible with the commands in the methodology section. If you are still deciding between managed and self-hosted in the first place, see &lt;a href="https://hostim.dev/blog/self-host-postgres-vs-supabase" rel="noopener noreferrer"&gt;Self-Host Postgres or Use Supabase?&lt;/a&gt; and &lt;a href="https://hostim.dev/blog/database-showdown" rel="noopener noreferrer"&gt;Which Database Should You Self-Host?&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  A managed, replicated Postgres at a flat price
&lt;/h2&gt;

&lt;p&gt;If the parts you dislike are the climbing AWS bill and the operations work of running your own failover, that is exactly what &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; is built to avoid. Managed Postgres is &lt;strong&gt;replicated by default&lt;/strong&gt;, at a flat, predictable price: &lt;code&gt;drp-50&lt;/code&gt; is €50/month with the standby included. There is also a free database tier to test the fit, and new projects get a &lt;strong&gt;free 5-day trial&lt;/strong&gt; with no card.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://hostim.dev/dashboard?preview=1&amp;amp;modal=1&amp;amp;compose=1" rel="noopener noreferrer"&gt;Spin up a managed Postgres on Hostim, free tier, no card&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated: 2026-07-07. Benchmarks run 2026-07-07 on PostgreSQL 16, eu-central region.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>aws</category>
      <category>hetzner</category>
      <category>database</category>
    </item>
    <item>
      <title>Render vs Railway vs Fly.io: Pricing Compared (2026)</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Tue, 23 Jun 2026 05:03:13 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/render-vs-railway-vs-flyio-pricing-compared-2026-2e5p</link>
      <guid>https://dev.to/pavel-hostim/render-vs-railway-vs-flyio-pricing-compared-2026-2e5p</guid>
      <description>&lt;p&gt;Short answer first: the three platforms charge in three different shapes. &lt;strong&gt;Render&lt;/strong&gt; adds a workspace fee for teams on top of fixed instance prices. &lt;strong&gt;Railway&lt;/strong&gt; has no free tier and meters everything per second on top of a small plan fee. &lt;strong&gt;Fly.io&lt;/strong&gt; is pure pay-as-you-go per second, with no base plan fee at all. The right pick depends less on the headline price and more on which shape fits how you work.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Prices are accurate as of &lt;strong&gt;June 2026&lt;/strong&gt;. All three change pricing often — check the live page before you commit. The &lt;em&gt;shapes&lt;/em&gt; change far less than the numbers.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The three shapes in one line each
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Render&lt;/strong&gt; — pick an instance size at a fixed monthly price, plus a flat workspace fee for teams. Predictable, with a real free tier that sleeps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Railway&lt;/strong&gt; — no free tier. A small monthly plan fee, then per-second metering of CPU, RAM, volumes, and egress on top.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fly.io&lt;/strong&gt; — no free tier, no seat fee. You pay per second for each running machine and for what it uses. The most "raw cloud" of the three.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Is there a free tier?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Free tier?&lt;/th&gt;
&lt;th&gt;The catch&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Render&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Free web services &lt;strong&gt;spin down after ~15 min idle&lt;/strong&gt;, then cold-start. Fine for demos, not production.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Railway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;One-time &lt;strong&gt;$5 trial credit&lt;/strong&gt;, no card. Then you are on a paid plan.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Fly.io&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;New accounts have &lt;strong&gt;no free allowance&lt;/strong&gt;. You pay from the first running machine.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How usage metering works
&lt;/h2&gt;

&lt;p&gt;Render bills &lt;strong&gt;fixed instance prices&lt;/strong&gt; — choose a size (Starter ~$7/mo for 0.5 CPU/512 MB, Standard ~$25/mo for 1 CPU/2 GB) and pay it whether the app is busy or idle.&lt;/p&gt;

&lt;p&gt;Railway and Fly.io both bill &lt;strong&gt;per second of actual use&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Railway&lt;/strong&gt; meters memory, CPU, volumes, and egress on top of your plan fee. An always-on 1 GB service runs in the low tens of dollars/month past the included credit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fly.io&lt;/strong&gt; bills each machine by the second. The smallest &lt;code&gt;shared-cpu-1x&lt;/code&gt; / 256 MB is ~&lt;strong&gt;$2.02/mo&lt;/strong&gt; if left on; more RAM is ~&lt;strong&gt;$5/GB/mo&lt;/strong&gt;; egress in NA/EU is &lt;strong&gt;$0.02/GB&lt;/strong&gt;. Stopped machines cost only their disk.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Per-second billing is cheaper for spiky or scale-to-zero workloads and harder to predict, because the bill moves with traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Side-by-side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Factor&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Render&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Railway&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Fly.io&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free tier&lt;/td&gt;
&lt;td&gt;Yes (sleeps ~15 min)&lt;/td&gt;
&lt;td&gt;No ($5 trial credit)&lt;/td&gt;
&lt;td&gt;No (new accounts)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Billing model&lt;/td&gt;
&lt;td&gt;Fixed instance price&lt;/td&gt;
&lt;td&gt;Per-second usage + plan&lt;/td&gt;
&lt;td&gt;Per-second usage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Workspace / team fee&lt;/td&gt;
&lt;td&gt;$25/mo flat (Pro)&lt;/td&gt;
&lt;td&gt;$20/mo flat (Pro)&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entry cost (solo)&lt;/td&gt;
&lt;td&gt;Free or ~$7/mo&lt;/td&gt;
&lt;td&gt;~$5–15/mo&lt;/td&gt;
&lt;td&gt;~$2–7/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best for spiky traffic&lt;/td&gt;
&lt;td&gt;Weak (fixed size)&lt;/td&gt;
&lt;td&gt;Good&lt;/td&gt;
&lt;td&gt;Good&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost predictability&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Low–medium&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  When each wins
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Render&lt;/strong&gt; — predictable, fixed bills you can budget; a real free tier for demos (if you accept cold starts); simple over tunable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Railway&lt;/strong&gt; — clean DX with per-second billing that scales down when idle; great for spiky traffic; small enough team that the plan fee stays small.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fly.io&lt;/strong&gt; — lowest raw compute cost, no seat fees, multi-region or scale-to-zero, and you are fine with more configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The pattern behind all three
&lt;/h2&gt;

&lt;p&gt;All three start cheap and grow with usage, plan tier, or both. That is the normal SaaS shape — convenience now, a bill that climbs as you succeed. Worth paying &lt;strong&gt;if you use what you pay for&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If the part you dislike is the &lt;em&gt;climbing&lt;/em&gt; bill, that is what we are building &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt; to avoid: deploy a container or git repo, pay a flat predictable price for the resources you pick. New projects get a &lt;strong&gt;free 5-day trial&lt;/strong&gt; (no card), and managed Postgres/MySQL/Redis have a free tier of their own.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're building Hostim.dev to make this simpler — happy to answer any questions.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>pricing</category>
      <category>devops</category>
      <category>cloud</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Self-Host Postgres or Use Supabase? Here's How to Decide</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Mon, 08 Jun 2026 15:36:52 +0000</pubDate>
      <link>https://dev.to/pavel-hostim/self-host-postgres-or-use-supabase-heres-how-to-decide-2d1h</link>
      <guid>https://dev.to/pavel-hostim/self-host-postgres-or-use-supabase-heres-how-to-decide-2d1h</guid>
      <description>&lt;p&gt;Short answer first: use &lt;strong&gt;Supabase&lt;/strong&gt; if you want Postgres plus auth, realtime, storage, and a dashboard as one managed bundle. Self-host Postgres – or use a managed Postgres – if you mostly need a database and your app already handles its own auth and logic.&lt;/p&gt;

&lt;p&gt;The choice is not really "Postgres vs Supabase". It's whether you need the extra layers Supabase puts on top of Postgres.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supabase is not a database
&lt;/h2&gt;

&lt;p&gt;Supabase &lt;strong&gt;runs&lt;/strong&gt; on PostgreSQL, but it's a stack of services around it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Postgres&lt;/strong&gt; – the actual database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth&lt;/strong&gt; – user signup, login, JWT tokens&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Realtime&lt;/strong&gt; – live updates over websockets&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt; – an S3-style file store&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edge Functions&lt;/strong&gt; – serverless functions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt; – dashboard + auto-generated REST/GraphQL API&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So "self-host Postgres or use Supabase" compares a plain database to a full backend. The honest question: &lt;strong&gt;do you need those extra layers, or just the database underneath them?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A quick test:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You use Supabase Auth, Storage, &lt;strong&gt;and&lt;/strong&gt; Realtime → Supabase earns its place.&lt;/li&gt;
&lt;li&gt;You use one of them → it's replaceable.&lt;/li&gt;
&lt;li&gt;You use none and treat it as "Postgres with a nice dashboard" → you want plain Postgres.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Side-by-side comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Factor&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Supabase (managed)&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Self-hosted Supabase&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Plain Postgres (managed or self-hosted)&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Database engine&lt;/td&gt;
&lt;td&gt;PostgreSQL&lt;/td&gt;
&lt;td&gt;PostgreSQL&lt;/td&gt;
&lt;td&gt;PostgreSQL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Built-in auth&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No (bring your own)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Realtime / websockets&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;File storage&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dashboard + auto API&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No (use any SQL client)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backups&lt;/td&gt;
&lt;td&gt;Managed (limits by plan)&lt;/td&gt;
&lt;td&gt;You manage&lt;/td&gt;
&lt;td&gt;Managed or you manage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost shape&lt;/td&gt;
&lt;td&gt;Metered, grows with usage&lt;/td&gt;
&lt;td&gt;Server cost + your time&lt;/td&gt;
&lt;td&gt;Database only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-host effort&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;High (many containers)&lt;/td&gt;
&lt;td&gt;Low–medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lock-in&lt;/td&gt;
&lt;td&gt;Medium–high&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Very low&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lock-in point decides it for many teams. Your &lt;strong&gt;data&lt;/strong&gt; is standard Postgres in every option (&lt;code&gt;pg_dump&lt;/code&gt; portable). The &lt;strong&gt;lock-in&lt;/strong&gt; is everything else: Auth tokens, Storage paths, Supabase-specific RLS policies, Edge Function code. The more Supabase-specific features you adopt, the harder the exit.&lt;/p&gt;

&lt;h2&gt;
  
  
  When each option wins
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Pick managed Supabase when:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You're starting a new app and want auth, storage, and realtime working today.&lt;/li&gt;
&lt;li&gt;You'll genuinely use at least two of those features.&lt;/li&gt;
&lt;li&gt;You prefer to pay for convenience and not run infrastructure.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Pick self-hosted Supabase when:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You want the Supabase feature set but need full data ownership or on-prem.&lt;/li&gt;
&lt;li&gt;You're ready to run and update a multi-container stack.&lt;/li&gt;
&lt;li&gt;Compliance or cost at scale justifies the extra ops work.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Pick plain Postgres (managed or self-hosted) when:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You mainly need a reliable database, and your app already handles auth and logic.&lt;/li&gt;
&lt;li&gt;You want minimal lock-in and a simple, predictable cost.&lt;/li&gt;
&lt;li&gt;You value boring, standard Postgres you can move anywhere.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The honest summary
&lt;/h2&gt;

&lt;p&gt;Supabase is a strong choice when you use its full stack. The moment you only want the database underneath it, you're paying in cost and lock-in for layers you don't run.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Need a backend → &lt;strong&gt;Supabase&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Need a backend you fully own → &lt;strong&gt;self-hosted Supabase&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Need a database → &lt;strong&gt;plain Postgres&lt;/strong&gt;, managed or self-hosted.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;I write about this stuff while building &lt;a href="https://hostim.dev" rel="noopener noreferrer"&gt;Hostim&lt;/a&gt;, a platform with managed Postgres built in. The full version of this post – with Docker Compose config and backup commands – is on the &lt;a href="https://hostim.dev/blog/self-host-postgres-vs-supabase" rel="noopener noreferrer"&gt;Hostim blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>supabase</category>
      <category>database</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
