SaaS architecture
The managed SaaS deployment runs entirely on AWS in MergeWatch’s account.SaaS component table
SaaS latency breakdown
Self-hosted architecture
The self-hosted deployment runs as a Docker container on your own infrastructure.Self-hosted component table
Self-hosted latency breakdown
Self-hosted latency depends heavily on your LLM provider. Local models via Ollama are fastest for small diffs. Cloud providers like Anthropic or Bedrock add network round-trip time but handle large diffs more reliably.
Concurrency model
Both architectures run the eight review agents — security, bugs, style, error handling, test coverage, comment accuracy, summary, and diagram — in parallel viaPromise.all().
- SaaS: WebhookHandler invokes ReviewAgent asynchronously via the AWS Lambda Invoke API (
InvocationType.Event). There is no queue between the two functions and no per-PR serialization. Two rapid pushes to the same PR each trigger a separate ReviewAgent invocation that runs concurrently. - Self-hosted: The Express server handles each webhook request in a single async function. Concurrent PRs are handled by Node.js’s event loop. For high-volume organizations, scale horizontally by running multiple container replicas behind a load balancer.
Next steps
Deployment Models
Compare self-hosted and managed SaaS side by side.
SAM Template Reference
Explore the SAM template parameters, resources, and outputs (SaaS only).
Self-Hosting Install
Deploy MergeWatch on your own infrastructure with Docker.
SaaS Getting Started
Install the GitHub App and start reviewing PRs in minutes.