Introduction
Taking the Solve Intelligence patent reviewer from Docker Compose to production-ready infrastructure.
Solve Intelligence builds AI software that helps patent attorneys draft and review patents. The product is an in-browser document editor with AI suggestions.
This challenge starts from a working patent reviewer that runs locally with Docker Compose. The business is growing fast, and the app needs production-ready infrastructure that can grow with it. Nothing has to be deployed to a real cloud account. Syntactically correct Terraform, CI configuration and config files are enough.
The application
Client
React editor built with Vite. Suggestions arrive over a WebSocket.
Server
FastAPI on port 8000. It loads and saves documents and asks OpenAI to review them.
Database
In-memory SQLite, seeded with two patents at start-up.
To run it locally, create a .env file in server/ with the OpenAI API key, then:
docker-compose up --build
# Open http://localhost:5173
To run it with the telemetry stack (OpenTelemetry Collector, Prometheus, Jaeger, Grafana on http://localhost:3001), switch it on with two variables:
COMPOSE_PROFILES=observability \
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318 \
docker compose up --build
The tasks
Production infrastructure
Done Infrastructure that the engineering team can deploy to safely and reliably.
| Business requirements | Constraints |
|---|---|
| 1,000+ concurrent users at first, scaling to 10,000+ | A small team, so operational overhead stays low |
| A 99.9% uptime SLA with customers | The OpenAI integration must stay secure |
| A global user base (US, Europe, Asia) | Document data is sensitive and needs protection |
| SOC 2 compliance (data security, access controls) | |
| Engineers deploy several times a day |
Deliverable: Infrastructure as code that could be terraform plan-ed, an architecture diagram, and a short README on how to deploy it and why it is designed this way.
Deployment and automation
Done Let the team ship code quickly and safely. Today, deploys are manual and error-prone.
| Business requirements | Current pain points |
|---|---|
| Zero-downtime deployments | A manual deploy takes more than 30 minutes |
| Fast rollback when something goes wrong | No visibility into deployment status |
| Separate dev, staging and production environments | Deploys are hard to coordinate across the team |
| Code quality gates that stop bugs before production | Changes cannot be tested before they go live |
Deliverable: CI/CD pipeline configuration that builds, tests and deploys the app, and documentation of the deployment strategy and how rollbacks work.
Observability
Done See the health of the system, and respond quickly when something breaks.
| Business requirements | Current gaps |
|---|---|
| Detect and resolve issues before customers notice | No visibility into application performance |
| Understand system performance and user behaviour | No way to tell when users are having problems |
| Meet security and compliance requirements | No audit trail for compliance |
| Help the team debug issues quickly | Problems are hard to troubleshoot |
Deliverable: One working example of monitoring or alerting, and a short README on how to approach logging, security and incident response in production.
How it is judged
| Area | What is assessed |
|---|---|
| Problem-solving approach | How infrastructure challenges are broken down and tackled |
| Technical judgment | Technology choices that fit this scale and these requirements |
| Security mindset | How sensitive data and access controls are handled |
| Operational thinking | Monitoring, debugging and maintenance |
| Communication | Clear documentation of decisions and trade-offs |
Constraints
| Time | About 3 to 4 hours in total |
| Focus | The most critical parts. Anything left out is written down as what would come with more time. |
| Tools | Any tools or platforms. Where something cannot be implemented fully, describe the approach. |
| Realism | What a small startup would actually run, not an enterprise-scale solution |
The submission covers the implementation (code, configuration, diagrams) and documentation of the approach, the key decisions, and how the solution would evolve as the company grows. A follow-up interview goes through scaling and operational scenarios.