Skip to main content

⌘K quick nav

Back to portfolioBack
Case studiesBlogContact
Arman Hazrati

Technical Articles

Insights, tutorials, and deep dives into full-stack development, system architecture, and engineering best practices

  1. Home
  2. /Blog
NestJSRBACArchitecture

Northstar: When Authorization Logic Split Across Two Layers

A postmortem-style writeup from building Northstar — mixed RBAC surfaces, workflow rules in services, and moving notifications off the request path.

Jun 1, 2026
3 min read
TypeScriptBest PracticesType Safety

TypeScript Best Practices: Writing Maintainable and Type-Safe Code

A comprehensive guide to TypeScript best practices, covering patterns, techniques, and strategies for writing maintainable, type-safe, and scalable TypeScript code in production applications.

Dec 1, 2024
7 min read
PerformanceFrontendNext.js

Frontend Performance Optimization: Achieving Lighthouse 95+ Scores

A comprehensive guide to frontend performance optimization, covering techniques for achieving Lighthouse scores of 95+ and improving Core Web Vitals in production applications.

Oct 5, 2024
6 min read
WebSocketsScalabilityArchitecture

Scaling WebSocket Infrastructure: How to Design for Massive Concurrency

A deep dive into the architecture patterns, challenges, and tradeoffs involved in scaling WebSocket infrastructure to hundreds of thousands of concurrent connections with low latency.

Aug 10, 2024
6 min read
AllArchitectureBackendBest PracticesCode QualityDevelopmentFrontendNestJSNext.jsNorthstarOptimizationPerformancePostmortemRBACReal-TimeScalabilityType SafetyTypeScriptWeb VitalsWebSockets