Skip to main content
MergeWatch can run as a fully managed SaaS service or as a self-hosted Docker deployment. Both architectures follow the same review pipeline — the difference is where the components run and which LLM provider handles inference.

SaaS architecture

The managed SaaS deployment runs entirely on AWS in MergeWatch’s account.

SaaS component table

SaaS latency breakdown

Cold starts only affect the first invocation after a period of inactivity. Once the Lambda is warm, subsequent reviews skip the 5–10s startup penalty. Under steady load, most reviews complete in under 30 seconds.

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 via Promise.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.
In both modes, if two invocations overlap on the same PR, the last one to finish overwrites the summary comment (last write wins). Inline review comments are additive and not affected by concurrency.

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.