Latest Updates

Documenting code, one commit at a time.

Refactoring for Scalability: From Single Route to Robust Mailing Service

Imagine deploying a new feature, only to find your application struggling under the load. That's what happened when we integrated a new mailing service into our FNSM portal backend.

This is the story of how we refactored a seemingly simple feature to handle increased load and ensure maintainability.

The Initial Implementation

Our initial approach was straightforward: when a business

Read more

Streamlining Business Logic with DTOs and Zod Validation in Our Portal Backend

Introduction

We've been working on the backend for our FNSM Portal, focusing on solidifying the business logic layer. A key part of this has involved defining robust Data Transfer Objects (DTOs) and implementing validation using Zod. This ensures data consistency and reduces errors throughout the application.

Business Model and DTOs

Our approach begins with a well-defined business model

Read more