Task management and document management
The first two systems on the multi-tenant base: one for IT and other teams to handle internal requests, and one to document and control internal files, connected to the ERP.
- Company
- ENDE Transmisión
- Role
- Design and development, solo
- Period
- Apr – Jun 2026
- Status
- In production
Architecture
- 01 · RequestsEvery request, to its teamStaff log requests that IT and the other teams handle; documents are stored in MinIO.
- 02 · Real timeInstant updatesCentrifugo delivers notifications and progress to the web dashboard and the mobile app without a reload.
- 03 · CacheFast responsesRedis caches frequently read data and serves as the Celery queue.
- 04 · BackgroundERP and heavy jobs, non-blockingCelery syncs with the legacy ERP and processes heavy jobs; progress reaches the dashboard through Centrifugo channels.
A component-level reconstruction of the architecture, with no code or internal company details.
Context
The company decided to have its own system so that IT and other teams could handle internal staff requests, including technical support and support for production systems.
Document management answers the same problem as the rest of the modernisation: the ERP is legacy and cannot be exposed to the internet, so the new system connects to it over a REST API.
Both systems, each with a web dashboard and a mobile app, were built on the same multi-tenant base that the substation SaaS later reused.
Architecture decisions
- A reusable multi-tenant base
RBAC, Row Level Security isolation and real time were solved once for every system.The substation SaaS started from this base and only added PowerSync.
- Connect instead of replace
Celery syncs document management with the ERP over a REST API, in the background.The legacy ERP is still never exposed to the internet.
- Heavy work outside the request
Celery runs heavy jobs and publishes their progress to Centrifugo channels.Users see live progress instead of waiting for the job to finish.
In detail
Request handling
Real time
Stack
Backend
- FastAPI
- SQLAlchemy async
- Alembic
- Celery
- Multi-tenant RBAC
Web
- React 19
- TypeScript · Vite
- TanStack · React Query
Mobile
- Flutter
Infrastructure
- PostgreSQL · RLS
- Centrifugo
- Redis · MinIO
- Docker Compose