State machines for AI agents: when should you use one?
4 signs your AI agent needs explicit states. Model TypeScript transitions, limit tools, and test the flow without treating the model as deterministic.
Accepting new clients
You run the business.
I handle the software.
I'm Samuel Fajreldines, a senior software engineer. Growing U.S. businesses hire my team to become their software department, not a vendor they rehire every quarter. I set the technical direction, my team builds and ships, and I stay accountable for everything that goes out.
8 articles · practical guides & tutorials by Samuel Fajreldines
In-depth Software Architecture articles, hands-on guides and tutorials by Samuel Fajreldines — 8 expert posts on Software Architecture for software engineers.
4 signs your AI agent needs explicit states. Model TypeScript transitions, limit tools, and test the flow without treating the model as deterministic.
Learn when AI agents need durable execution, checkpoints, queues, or workflows to resume safely after failures and retries in production with clear trade-offs.
Build multi-agent orchestration in TypeScript and PostgreSQL with durable state, leases, retries, and verification for Codex and Claude Code workflows.
A comprehensive guide on structuring services in an MSC (Model-Service-Controller) architecture using TypeScript, exploring whether to align services by model,…
Explore best practices for implementing transactions across Node.js, PHP, and Cloud environments.
Learn how to implement an event-driven architecture using AWS services and Node.js to build scalable and efficient applications.
A comprehensive guide to designing scalable and maintainable backend systems in TypeScript using the Model-Controller-Service architecture pattern.
Learn how to optimize your application architecture by effectively using controllers, models, services, and other key components.