Saeed Ghofrani
RecruitersLive DemosArchitectureCase StudiesProjectsExperienceSkillsBlogContact
Hire / Contact
RecruitersLive DemosArchitectureCase StudiesProjectsExperienceSkillsBlogContact

Saeed Ghofrani Ivari

Backend systems, real-time platforms, and engineering leadership.

Focus

NestJS, PostgreSQL, Redis, RabbitMQ, Docker, Kubernetes, performance.

Contact

sa.ghofraniivari@gmail.comTelegram
GitHubLinkedInStack OverflowDev.toRecruiter briefLive demos

Article

Building Scalable Microservices with NestJS and Kafka

Patterns for resilient service boundaries, message contracts, and operationally useful NestJS microservices.

Microservices become useful when boundaries map to ownership and failure modes. Message contracts, idempotent consumers, retry behavior, and observability matter more than the transport itself.

Consumers should be idempotent and explicit about retryable work.
@MessagePattern("invoice.created")
async handleInvoiceCreated(event: InvoiceCreatedEvent) {
  const exists = await this.inbox.seen(event.id);
  if (exists) return;

  await this.billing.applyInvoice(event);
  await this.inbox.markSeen(event.id);
}
nestjsmicroserviceskafkaarchitecture