Skip to content

Category

software development

Practical software engineering from a team lead: clean code, SOLID, refactoring, debugging, backend design and system architecture with Laravel and React.

Diagram of ERR_CONNECTION_TIMED_OUT: Chrome sends a TCP SYN to port 443, no SYN-ACK comes back because packets were dropped, and Chrome shows a connection timed out error

10/25/2026

How to Fix ERR_CONNECTION_TIMED_OUT in Chrome

Chrome shows ERR_CONNECTION_TIMED_OUT when a SYN never comes back. Here is how I tell that apart from a reset, test the port with nc, and open the hop that dropped the packet.

By Muhammad Wilayat Shah

Read
Four steps of inventory management database design: model items, warehouses and stock levels, record every change in a stock movement ledger, handle concurrency with an atomic UPDATE, a CHECK constraint and a fixed lock order, then operate with reservations, reconciliation and an index on the ledger

10/25/2026

Inventory Management Database Design: A Practical Guide

A pharmacy oversell in our HMS showed 4 strips on screen and none on the shelf. Here is the inventory management database design I use now, tested on PostgreSQL 17: atomic stock updates, a movement ledger, reservations and reconciliation.

By Muhammad Wilayat Shah

Read
WebSocket Reconnect: How to Handle Reconnection Automatically

10/25/2026

WebSocket Reconnect: How to Handle Reconnection Automatically

Learn how to handle WebSocket reconnect automatically: read close codes, retry with exponential backoff and jitter, add a heartbeat, resubscribe after reconnecting and recover missed messages in React, Socket.IO and Laravel Echo.

By Muhammad Wilayat Shah

Read
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
How to Build an Approval Workflow in Laravel

10/24/2026

How to Build an Approval Workflow in Laravel

Build a multi-level approval workflow in Laravel that doesn't break: table-driven flows and steps, row locks against double approvals, policies for the current approver and a full audit trail.

By Muhammad Wilayat Shah

Read