Skip to content

Production architecture

Shepherd runs entirely on Amazon Web Services. Production lives in the US East (Ohio) region, spread across multiple availability zones, with a disaster-recovery copy in US West (Oregon). The diagram below follows a request from a clinic or a partner integration through to the data it touches.

Open the diagram full screen Pan, zoom, trace routes, and export it as an image.
  • Clinic teams and pet owners reach the web apps through Amazon CloudFront and AWS WAF. CloudFront terminates TLS at the edge; WAF filters traffic before it reaches an application server.
  • Partner integrations use the Open API at open-api.shepherd.vet, which has its own load balancer, its own WAF rules, and its own server fleet. Every request carries an integration key and names one clinic; see Authentication.
  • Web app and API servers run .NET on Amazon EC2. Releases are blue/green: the new version is brought up beside the old one and takes traffic only once it is healthy. Load balancers route around any unhealthy server, and the fleet scales out and in automatically.
  • AI services run as containers on Amazon ECS (Fargate) and call AI model providers for transcription and summarization. They run beside the request path, so AI work doesn’t hold up ordinary clinic requests.
  • Background services handle queued and scheduled work: reports and messaging events arrive through Amazon SQS, integration syncs exchange results with labs and other partners, and a real-time push hub keeps open screens current.
  • PostgreSQL 16 on Amazon RDS holds clinical and business records. Clinic data is sharded across database clusters, each a Multi-AZ primary with read replicas. Production databases accept encrypted connections only and have no public endpoint.
  • Amazon ElastiCache (Valkey) holds sessions and fans out real-time updates, encrypted in transit and at rest.
  • Amazon S3 stores attachments and documents, encrypted at rest.
  • An analytics warehouse in a separate AWS account receives a copy of the data, so large analytical queries run against the copy rather than the production databases.
  • Databases are backed up continuously and can be restored to any point in the last 30 days.
  • Every production database has a cross-region replica in Oregon, and production files are replicated there as they are written.
  • If the primary application is unavailable, clinics can keep working from a read-only fallback environment; see the Help Center’s Read-Only Mode and Emergency Kit.

This is a simplified view for developers and evaluators. It deliberately omits non-production environments, internal tooling, network addresses and segmentation, and smaller supporting services (DNS, certificates, monitoring, and the serverless functions that render PDFs and images). For security questions the diagram doesn’t answer, see Security & trust.