Journal
Writing
Opinionated engineering notes—security, scalability, correctness, and the interfaces between humans and machines. No listicles—just explanations you can reuse in prod and in interviews.
Filter
Matching posts
Showing 9 of 35. Clear filters
- PerformanceAugust 12, 20266 min read
Cache-Aside Pattern with Node.js and Redis
Implement cache hits, database fallback, TTLs, invalidation, tenant-safe keys, and graceful Redis failure handling in Node.js.
RedisNode.jscachingdata consistency - InfrastructureAugust 12, 20267 min read
Deploy a Node.js Application on DirectAdmin or cPanel Shared Hosting
Evaluate shared-hosting Node.js support and deploy through cPanel Passenger or DirectAdmin Nginx Unit with realistic platform limits.
Node.jscPanelDirectAdminshared hosting - InfrastructureAugust 12, 20266 min read
Deploy a Node.js Application with PM2 and Nginx
Build and run a Node.js application with PM2, proxy it through Nginx, preserve client headers, and verify the deployment safely.
Node.jsPM2Nginxdeployment - DatabaseAugust 12, 20267 min read
Handle Dates and Time Zones in Node.js and PostgreSQL
Model instants, local schedules, Nepal Time, date-only values, and API timestamps without server-time-zone surprises.
Node.jsPostgreSQLtime zonesdate handling - InfrastructureAugust 12, 20268 min read
Store and Serve User-Uploaded Images in Node.js
Accept, validate, store, serve, replace, and back up public images without exposing private documents or trusting upload metadata.
Node.jsExpressMulterfile uploads - SecurityAugust 8, 20269 min read
Fix Nodemailer TLS Certificate Hostname Errors
What ERR_TLS_CERT_ALTNAME_INVALID means when Nodemailer connects to an SMTP server, why it happens, and how to fix it without disabling certificate verification.
NodemailerTLSSMTPNode.js - DatabaseAugust 8, 20269 min read
PostgreSQL Connection Pooling: Direct Connection vs Pooler
Compare direct PostgreSQL connections, application-side pools, and external poolers for persistent Node.js, serverless, Prisma, and migration workloads.
PostgreSQLPrismaNode.jsconnection pooling - DatabaseAugust 8, 20267 min read
PostgreSQL SSL Modes Explained for Node.js and Prisma
Understand PostgreSQL sslmode choices, certificate and hostname verification, and the differences between libpq, node-postgres, Prisma, and hosted providers.
PostgreSQLPrismaNode.jsTLS - DatabaseAugust 8, 20266 min read
How to URL-Encode Special Characters in PostgreSQL Connection Strings
Encode PostgreSQL usernames and passwords safely without breaking the scheme, host, port, database name, or query parameters.
PostgreSQLPrismaNode.jsdatabase connection