01 / 08 · Service · Mayank Rawat

Backend architecture and API development in NestJS and Node.js

Scalable services, REST and GraphQL APIs and data models designed to stay fast as traffic grows. Available for freelance projects and full-time roles.

  • NestJS
  • Node.js
  • REST / GraphQL
  • BullMQ
01

Overview

I design and build the server side of products: the API, the data model, the background jobs and the rules about who may do what. Most of it is TypeScript on NestJS and Node.js, with PostgreSQL and Redis underneath.

For PAISAPAID I built a 751-route API where every route declares an access policy, and a test fails if one doesn't. That's the standard I bring to new work: rules the code enforces, not rules people have to remember.

02

What's included

  • API design in REST or GraphQL, with input validated at the edge
  • Data models and migrations in PostgreSQL with Prisma
  • Sign-in and permissions: sessions, JWT, rotating refresh tokens, API keys, roles
  • Background jobs on BullMQ with retries, backoff and idempotency keys
  • Nx monorepos that keep API, workers and frontends in one place
  • Integrations with payment, email, storage and partner APIs
  • Integration tests against real PostgreSQL and Redis
03

How I work

  1. 01

    Start from the data

    The schema and its constraints come first. Foreign keys, unique indexes and checks catch the bugs application code misses.

  2. 02

    Make the safe path the default

    Access checks, tenant scoping and validation live in shared layers, so a new endpoint is safe without extra effort.

  3. 03

    Split only when it pays

    A well-structured monolith is easier to run than five services. Workers, gateways or separate services come out when load or ownership calls for it.

04

Shipped proof

05

Questions

Do you work on existing codebases, or only new ones?
Both. On an existing Node.js backend I read the code and the schema first, then fix the riskiest parts: missing access checks, unvalidated input, unindexed queries and fragile deploys.
REST or GraphQL?
REST for most products, because it's simpler to cache, secure and monitor. GraphQL when many clients need different shapes of the same data. NovaGate supports both, including GraphQL depth and complexity limits.
Does it have to be NestJS?
No. NestJS is my default for larger APIs because its modules and guards keep the structure as the code grows, but the same principles apply to an Express codebase.

Other services

Need a hand with Backend Architecture?

Tell me what you're building and where you're stuck. I'll reply within a day.

Let's talk