Description
Agricultural management SaaS I work on at OMD do Brasil. I wrote the backend from the ground up in NestJS, Prisma and PostgreSQL, with a layered architecture of domain, use cases and repositories that the team adopted as its standard. I also containerized the application and wrote the deploy pipeline, which is what let us move the platform off Google App Engine.
Features
- Layered backend in NestJS: domain, use cases and repositories
- Session auth, tenant context resolution and RBAC through middleware
- Device data ingestion over MQTT, feeding live tracking and notifications
- Interactive map with the Google Maps API, route history and live data
- Docker Compose for production, development and database, with deploy on GitHub Actions
Challenges
- Holding response times steady on the highest-volume routes as the dataset grew
- Containerizing an application that had been deployed straight to Google App Engine
- Getting the team to adopt a new architecture without stalling delivery
Learnings
- How MQTT ingestion behaves once device volume stops being a demo
- Where Redis caching pays off, and where it only hides a bad query
- That an architecture becomes the standard only if the team can follow it without me