Comparisons · Push Notifications · 2026-12-05
ntfy vs Gotify: Measured RAM (18.8 vs 9.9 MB)
ntfy uses 18.8 MB idle RAM, Gotify 9.9 MB — a 1.9× gap of 8.9 MB. Compare containers, startup, volumes, and VPS sizing for self-hosted push.
ntfy and Gotify both ship as single Go containers that push messages over WebSocket, but their measured idle footprints differ. In our verified runs ntfy idled at 18.8 MB and Gotify at 9.9 MB — a 1.9× ratio and an 8.9 MB difference. That gap is small in absolute terms, so on a 1 GB VPS neither will be the reason you run out of memory; the decision comes down to workflow and state layout.
Both stacks expose a single HTTP port (8080 on the host, 80 inside the container), both returned HTTP 200 on the health check, and both persist state in a named volume. The real divergence is in what they store and how you publish messages: ntfy is topic-based pub-sub with an on-disk message cache, while Gotify is a user/application model backed by SQLite.
Why the RAM gap exists
The container breakdowns are simple — one container each — so the entire measured difference sits in the application process itself.
- ntfy —
ntfy(binwiederhier/ntfy:latest): 18.8 MB - Gotify —
gotify(gotify/server:latest): 9.9 MB
ntfy carries a message cache (NTFY_CACHE_FILE at /var/cache/ntfy/cache.db), an attachment cache directory, and a user database (NTFY_AUTH_FILE), all wired up at boot. It also serves a web UI plus JSON/SSE/WebSocket APIs from the same process. Gotify keeps a single SQLite database under /app/data and a smaller runtime surface. The extra ~9 MB in ntfy is the cost of the cache and attachment plumbing being resident even when idle. Neither figure includes load from active WebSocket subscribers; both grow with concurrent connections.
Day-2 operations: secrets, volumes, and failure modes
| Aspect | ntfy | Gotify |
|---|---|---|
| Containers | 1 (ntfy) |
1 (gotify) |
| Idle RAM | 18.8 MB | 9.9 MB |
| Startup time | 44.8 s | 52.2 s |
| Host port | 127.0.0.1:8080 → 80 | 127.0.0.1:8080 → 80 |
| Database / sidecars | None; on-disk cache + user DB | SQLite under /app/data |
| Volumes | ntfy-cache → /var/cache/ntfy, ntfy-etc → /etc/ntfy |
gotify_data → /app/data |
| Required secrets | NTFY_BASE_URL (must match public URL); admin password generated out-of-band |
GOTIFY_DEFAULTUSER_PASS (first boot only) |
| Backup workflow | Snapshot both volumes; cache holds user DB and attachments | Snapshot gotify_data; holds SQLite DB and uploads |
| Operational gotchas | NTFY_BASE_URL mismatch breaks health; mobile push needs valid TLS; container runs non-root, so bind mounts need chown |
Container runs as UID 1234; bind mounts need chown -R 1234:1234; GOTIFY_DEFAULTUSER_PASS only read on first boot |
Both stacks bind to loopback so a reverse proxy terminates TLS. ntfy’s health endpoint (/v1/health) is a quick readiness check; Gotify logs that it is listening on :80. Startup times are close (44.8 s vs 52.2 s) and dominated by image pull and process init, not by application logic.
Product scope and workflow trade-offs
ntfy is a pub-sub server. You publish to a topic with a plain HTTP PUT or POST, and every subscriber — phone app, browser, CLI — receives it. There are no accounts required to publish, which makes it easy to wire into scripts and cron jobs. The trade-off is that access control is configured through NTFY_AUTH_DEFAULT_ACCESS (default deny-all) and NTFY_ENABLE_SIGNUP (default false), so you must think about topic permissions up front. Attachments are supported via NTFY_ATTACHMENT_CACHE_DIR.
Gotify is a user-and-application model. You create applications in the web UI, each with a token, and POST to the REST API. It manages users, applications, and clients from the built-in UI and supports plugins. The trade-off is more UI-driven setup and a SQLite database you must back up, but the mental model is closer to a traditional notification service. See the Gotify self-hosting guide for the full walkthrough.
VPS sizing and co-hosting impact
At 18.8 MB and 9.9 MB idle, both fit comfortably on a 1 GB VPS alongside a reverse proxy and a handful of other small services. The 8.9 MB difference is noise on a 1 GB box; it only matters if you are packing many containers onto a 2 GB VPS or a 4 GB VPS and counting every megabyte. Memory growth under load comes from concurrent WebSocket subscribers, not from the idle baseline, so size for subscriber count rather than the measured idle figure. Compare both against other services on the benchmarks leaderboard.
Which one should you self-host?
- Choose ntfy if you want topic-based pub-sub with no-account publishing, need attachments, and are comfortable configuring topic permissions through environment variables. Start with the ntfy Docker guide.
- Choose Gotify if you want the leanest idle footprint (9.9 MB vs 18.8 MB), a built-in UI for managing users and applications, and a single SQLite volume to back up. Start with the Gotify Docker guide.