Skip to content

Category

Database Applications

Database design and performance: designing tables before the backend, PostgreSQL query optimization, indexing and keeping business data safe.

Redis Pub/Sub vs Redis Streams: Key Differences

10/24/2026

Redis Pub/Sub vs Redis Streams: Key Differences

Redis Pub/Sub drops messages when subscribers are offline; Streams store them with consumer groups and acknowledgements. Learn the key differences, real commands and how to move critical events to Streams.

By Muhammad Wilayat Shah

Read
Four steps to fix Redis connection refused: check whether Redis is listening with ss and redis-cli ping, check whether it is running in service or container logs, check bind address, port and protected mode, then fix the client host such as the Docker service name

10/24/2026

How to Fix Redis Connection Refused Errors

After a server move our fleet system logged Connection refused [tcp://127.0.0.1:6379]. Check what Redis listens on, read its startup errors, fix bind, port, password and Docker host names. Real Redis 8 output from redis-cli, Node, Python and Laravel.

By Muhammad Wilayat Shah

Read
Four steps to fix PostgreSQL peer authentication failed: read which pg_hba.conf line matched, match the Linux user with sudo -u postgres psql, use a password over TCP with -h 127.0.0.1 or a scram-sha-256 line, then reload with pg_reload_conf and test again

10/22/2026

How to Fix PostgreSQL Peer Authentication Failed

Peer authentication failed means PostgreSQL compared your Linux user with the role and never checked the password. Here are the fixes by cause, each reproduced on PostgreSQL 17: TCP logins, pg_hba.conf order, reloads and pg_ident maps.

By Muhammad Wilayat Shah

Read

Page 1 of 2