
Frontend Architecture That Survives Time
Frontend codebases decay through unmanaged coupling. Vertical slices with validated services, typed errors and enforced boundaries keep them changeable.
Notes from building and running production systems.

Frontend codebases decay through unmanaged coupling. Vertical slices with validated services, typed errors and enforced boundaries keep them changeable.

Moving a Lambda system from CloudWatch log streams to structured JSON logs with LogLayer and Datadog, so any user, tenant or request can be traced in one query.

How AWS Lambda behaves in production: the Init/Invoke/Shutdown lifecycle, concurrency limits, Hyperplane ENIs, NAT cost, RDS Proxy, and when to move to ECS.

AWS flat-rate CloudFront plans bundle WAF, DDoS protection and DNS at a fixed price. What the allowance means, the fine print, and when pay-as-you-go wins.

Unit testing React with Jest and React Testing Library: a makeSut helper, behavior-first tests with user-event, waiting for async state without act warnings, and renderHook for hooks.

Inversion of control in React: a typed provider contract, a dumb checkout and a factory, so swapping PayPal for Stripe never touches the checkout.

Mock a GraphQL API from its real schema: introspect with GraphQL Codegen, serve fake data with GraphQL Faker, shape it with @fake, @examples, @listLength.