InvesteRei combines algorithmic decision support with a strict human-approval execution model. The architecture separates proposal intelligence from execution rails so automation can scale without removing user control.
Problem
Many automated investing products optimize speed but hide execution logic and risk controls from users.
Constraints
- Any trade execution required explicit user approval to preserve trust and compliance posture.
- Portfolio and risk calculations had to remain explainable across web and mobile surfaces.
- Broker integrations needed a modular design to support multiple providers and market-data sources.
Architecture
- Microservice split for auth, portfolio, simulation, AI forecasting, and execution orchestration.
- Spring Cloud gateway with JWT validation and Redis-backed rate limiting.
- Evented workflows for notification delivery, simulation jobs, and execution intent lifecycle.
- Shared domain contracts across Angular and Flutter clients for consistent product behavior.
Tradeoffs and Failures
- Service decomposition improved scalability but introduced distributed tracing and orchestration complexity.
- Human approval checkpoints reduced operational risk but added latency to rapid-trade scenarios.
- Broker integration breadth increased product value while raising adapter maintenance cost.
Engineering Impact
- Built a full proposal-to-execution chain with auditable approval events.
- Unified risk, simulation, and order-intent workflows in a consistent architecture.
- Delivered enterprise-style modules (watchlists, alerts, statements, research) over shared service foundations.
Outcomes
- Repeatable local stack and service-level separation for feature growth.
- Stronger user-control guarantees through explicit approve or decline decision gates.
- Higher architecture readiness for production concerns: audits, retries, quotas, and provider failover.
What Made This Approach Different
Instead of “fully automatic trading,” the platform is “automation with controlled execution.” That design choice shaped every technical decision from API contracts to UX and audit trails.