You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sidecar is a single-machine service. SQLite at /var/lib/seo-sidecar/schemas.db is fast (sub-ms writes), durable (WAL mode), and zero-config.
Postgres adds an external dependency. The sidecar would have to handle Postgres connection lifecycle, retries, failover. Schemas are small (a few KB each), update rates are low (push when content changes — minutes, not milliseconds), so the throughput advantage of Postgres doesn't matter here.
Redis adds another external dependency AND doesn't give you durable persistence by default. Schemas should survive a reboot without manual replay.
If you have 50+ nginx hosts and want a centralized schema store, swap SQLite for Postgres in sidecar.py — it's ~20 lines of code. The endpoint shape doesn't change.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The sidecar is a single-machine service. SQLite at
/var/lib/seo-sidecar/schemas.dbis fast (sub-ms writes), durable (WAL mode), and zero-config.Postgres adds an external dependency. The sidecar would have to handle Postgres connection lifecycle, retries, failover. Schemas are small (a few KB each), update rates are low (push when content changes — minutes, not milliseconds), so the throughput advantage of Postgres doesn't matter here.
Redis adds another external dependency AND doesn't give you durable persistence by default. Schemas should survive a reboot without manual replay.
If you have 50+ nginx hosts and want a centralized schema store, swap SQLite for Postgres in
sidecar.py— it's ~20 lines of code. The endpoint shape doesn't change.Beta Was this translation helpful? Give feedback.
All reactions