Decision summary
The existing app is already packaged as Docker containers, so a cloud target should run the containers rather than try to turn CloudFront into a server. CloudFront distributes content and forwards requests to origins; the application, database, and model still need compute and storage behind it.
Container services with managed Postgres, S3 media, and CloudFront at the edge.
Less infrastructure assembly; still replace or persist the local media service and source LLM inference separately.
Confirm root access, Docker, persistent disk, resources, and unrestricted long-running Node processes first.
Start with one isolated demo/staging environment, not production. Use AWS ECS Fargate for the Next.js and Express containers; use managed PostgreSQL and S3-compatible durable media; put CloudFront/WAF in front; keep the API, database, and any self-hosted inference private. Disable LLM inference at first if it is not essential—the app has a guided fallback. This exercises the AWS path while avoiding EKS and avoiding a GPU bill during a simple review.
If “get online” means the absolute shortest path and you are comfortable migrating the demo later, use Render’s Docker-capable web services and managed Postgres. Do not spend time on a full production platform for a short demonstration. If your HostGator plan includes a managed or shared cPanel environment, treat it as unverified until the provider confirms the runtime requirements below.
What is actually running in BreezRx
The local Compose file defines four containers. LLM inference is not one of those containers: the API calls an operator-configured OpenAI-compatible endpoint. For this remote demo, a working inference endpoint is required; the deterministic guided flow is a resilience fallback, not a substitute for the requested live-model demonstration.
| Component | Current implementation | Cloud implication |
|---|---|---|
| Web | Next.js 16 / React 19, App Router, built as a standalone Node server. Same-origin /api/* requests are rewritten to the Express API. | Needs a Node/container runtime for the current build. CloudFront can cache static assets, but cannot execute this Next.js server. |
| API | Node 22 / Express 5; REST commerce API plus read-only GraphQL. Runs PostgreSQL migrations and catalog seed on startup. Runs an in-process subscription renewal scheduler. | Deploy as a container service, reachable from the web service but not directly exposed as a public database-like origin. Health endpoint is /api/health. |
| Database | PostgreSQL 16, local named volume. User, session, cart, order, evaluation, subscription, payment-event, audit, and mock-gateway records are persisted. | Use managed PostgreSQL for durability and backups. Never expose port 5432 to the internet. Use a separate database for cloud demo data. |
| Media | A separate mock HTTP service writes uploaded PNG/JPEG/WebP files to a local filesystem volume. | Container-local disk is not durable across many cloud deploy patterns. Replace the storage adapter with S3/object storage, or deliberately use a supported persistent disk for a single-instance demo. |
| Assistant inference | Separate vLLM/OpenAI-compatible endpoint configured by ASSISTANT_BASE_URL, model ID and optional server-side key. Typed responses are validated; the model is not a clinician. | Provision a managed model endpoint or private GPU service and keep credentials server-side. Never expose a local GPU-manager or inference port publicly. |
| Sandbox integrations | Payment gateway, clinical review, fulfillment and tax are mock providers behind interfaces. | Great for a demo; not real checkout, prescribing, pharmacy operations, shipping, or production integrations. |
The database is not just disposable seed content: it stores accounts and the orders/subscriptions a visitor creates. Use fabricated identities and test data only. The project README expressly warns against public exposure and real personal or medical data. This report recommends adding an access gate before sharing a link with a limited set of reviewers.
Current request and data flow
/api proxy patternThis is the recommended shape, not infrastructure that exists today. The existing cloud deployment report also marks AWS environments as not deployed.
Hosting options, assessed for this codebase
| Option | Fit now | Upside | Trade-off / watch item | Recommendation |
|---|---|---|---|---|
| CloudFront alone | Not a host | Good edge network for static assets and a front door to application origins. | Does not run Next.js/Express containers, Postgres, filesystem storage, or GPU inference. Requires origins. | Keep as edge |
| HostGator shared / cPanel plan | Unverified | You already pay for it; it may serve a static site or support a specific Node application workflow. | Do not assume it supports Docker Compose, a long-running Next.js process, Postgres server, private networking, background scheduler, or persistent writable media. Confirm against your exact plan. | Use only if confirmed |
| HostGator VPS / dedicated server | Possible | Can preserve the Compose topology if you have root/admin access and the plan permits Docker and persistent storage. | You own OS and Docker patching, reverse proxy/TLS, firewall, backups, restores, monitoring and single-host failure risk. Scaling and recovery remain your work. | Short-lived preview only |
| Render or similar app platform | Strong for speed | Managed deploys for Node/Express and Docker; managed Postgres and service-to-service networking reduce setup work. | Media must move to object storage or a persistent disk; the latter couples writes to a service instance and is a poor long-term shared-media design. LLM still needs a separate endpoint. AWS migration is a later task. | Best quick alternative |
| AWS ECS on Fargate | Best continuity | Runs your existing containers without managing a Kubernetes cluster; pairs naturally with RDS, S3, CloudFront, WAF, ECR, Secrets Manager and CloudWatch. | More AWS setup and billable infrastructure than an app platform. Fargate is not the place to run a GPU model; use a separate inference option. Media needs an S3 adapter or a deliberately persistent storage solution. | Recommended |
| EKS / Kubernetes | Too much for this phase | Powerful orchestration and control for mature platform teams, GPU pools and complex service boundaries. | Cluster lifecycle, upgrades, node capacity, policy, networking and observability become ongoing work. Your existing plan itself calls out the operational burden. | Revisit with need/team |
| Single VM + Docker Compose (any provider) | Good for a controlled demo | Closest lift-and-shift from local; lowest architecture change, usually one billable machine. | One machine is a failure domain; database and uploads require deliberate backups; you manage patching and observability. Not a horizontal scale strategy. | Fallback for time/budget |
HostGator: make the plan type the first decision
“HostGator” is a provider, not a runtime specification. Before using it, identify the product name and verify: SSH/root privileges, supported Node version, whether Docker Engine and Compose are allowed, persistent volumes, process lifetime/restarts, inbound 80/443, outbound database/model access, memory/CPU limits, backups, and support for reverse proxying to app containers.
If any of those are unavailable, don't try to wedge this four-container system into a shared web-hosting account. A VPS with Docker can run a short-term demo, but the managed app-platform or AWS path reduces the chance that the demo's data and availability depend on one manually maintained box.
The AWS deployment I would build first
Use a deliberately small, coarse-grained deployment that maps to today's app. Keep the web and API as separate containers because the repository already builds and configures them independently; do not split the API's domain modules into microservices for this dry run.
| Layer | Initial service | Initial configuration / reason |
|---|---|---|
| DNS and edge | Your domain → CloudFront + AWS WAF | Use one HTTPS hostname. Cache versioned Next static assets; set cache TTL to zero for /api/* and authenticated content, and forward the cookies/headers the app requires. CloudFront is the edge, not the origin runtime. |
| Ingress | Application Load Balancer (ALB) | Route to the Next.js service. For an AWS-native private origin, evaluate CloudFront VPC origins; otherwise tightly restrict direct access to the origin and ensure all public traffic traverses the intended edge controls. |
| Web runtime | ECS service on Fargate | Deploy the existing standalone Next.js image. Set API_INTERNAL_URL to the private API service address. Configure health checks and a safe rolling deployment. |
| API runtime | ECS service on Fargate | Deploy the Express image with DEMO_MODE=true, NODE_ENV=production, COOKIE_SECURE=true, a managed Postgres URL and secrets injected at runtime. Keep port 4000 private. |
| Data | Amazon RDS for PostgreSQL | Use a separate empty demo database, private subnets/security groups, automated backups and a tested restore. Begin with the smallest acceptable class; choose Multi-AZ when availability requirements justify the cost. |
| Uploads | Private S3 bucket | Implement an S3-backed MediaStorage adapter (the current service speaks to a filesystem-backed HTTP mock). Block public bucket access; serve approved images using a controlled API or CloudFront origin path. |
| Secrets | AWS Secrets Manager / task roles | Keep database passwords, model keys and any gate credentials out of Git, Docker images and browser code. Use least-privilege task roles. |
| Logs and alarms | CloudWatch | Collect container logs and health metrics; alert on unhealthy tasks, database pressure, error rate and spend. Do not log request bodies, chat text, or secrets. |
| Inference | Required, separate service/provider | Configure a compatible hosted model endpoint or private GPU service, server-side credentials, a spend limit and latency monitoring. Keep guided mode only as the documented outage fallback. |
ECS is a managed container scheduler; Fargate runs tasks without you provisioning worker nodes. AWS charges for the requested Fargate resources and related services, not a separate ECS orchestration fee. EKS is appropriate when you need Kubernetes and have the people to operate it. The current cloud plan describes EKS as its future target but explicitly notes the upgrade, add-on, policy and GitOps burden, with ECS Fargate as the simpler fallback. For a small team and one demo environment, I would choose that fallback now.
App-specific deployment settings to verify
DEMO_MODE=trueis a hard startup requirement in this codebase; keep it true in the remote demo.COOKIE_SECURE=trueis not the current config default. Set it for HTTPS so session cookies are marked Secure.API_INTERNAL_URLmust resolve from Next.js to Express in the container network. The browser continues to call same-origin/api.- Use PostgreSQL, not the Compose development password. No database or media port should be open to the public internet.
- Leave
IDEA_LAB_URLunset unless the trusted internal media-factory integration is intentionally deployed. It is a local-development integration, not a public service. - Run CI tests and build both images from the same commit, scan and tag images immutably, and deploy to a separate demo/stage environment.
LLM inference: required for this dry run
The concierge is intentionally narrow: it extracts typed shopping preferences and FAQ topics, while product facts, prices, clinical routing and pack rules stay server-controlled. Medical questions are directed to the deterministic clinical-safe response. Chat transcripts are not stored by the assistant implementation. Configure and test a live inference endpoint before inviting the reviewer; the guided flow is an outage fallback, not the planned demo mode.
| Choice | How it fits | What to decide |
|---|---|---|
| Managed model API | Recommended starting point. Use a token-priced provider with a Qwen3-14B-class model through a compatible endpoint or a small request adapter. | Check data handling/retention, key management, model terms, schema compliance, latency, request cost and rate limits. A 14B model is a quality candidate to benchmark against the current 35B configuration, not a guaranteed equivalent. |
| Self-hosted vLLM | Run a GPU-backed machine/container privately; allow API-service access only. Keep the model manager and inference endpoint off the public internet. | A 24 GB L4 is a plausible 4-bit 14B starting point; a 48 GB L40S gives more room for a compatible 35B-class quantization, context and runtime overhead. Verify that the current NVFP4 artifact/runtime supports the selected GPU, or use a compatible quantization. Benchmark quality, schema validity, concurrency, timeout and cold-start behavior before inviting reviewers. |
| Guided mode | Retain the deterministic one-question-at-a-time flow as a controlled fallback if the model endpoint is unavailable. | Do not leave inference unconfigured or treat guided mode alone as completion of the requested live-model demo. |
The example local model endpoint is a private-network address. A cloud service cannot reach your laptop or LAN address. Do not port-forward the model manager or vLLM port to the internet. Use a securely hosted compatible provider or place the GPU service in a private network reachable only from the API.
The API currently sends chat_template_kwargs, a vLLM-oriented request field that a hosted OpenAI-compatible provider may reject or ignore. Before selecting a model, test the real request and response shape, model ID, structured output validation, stop reason, p95 latency and timeout behavior. If needed, add a narrow provider adapter or remove/translate that field; do not assume that “OpenAI-compatible” means identical support for every extension.
Before sharing the URL with a remote reviewer
Compose binds the web port to loopback for local development; it does not provide production TLS, an external access policy, managed backups, or durable cloud media storage. The repository warns not to expose the demo publicly. A remote sandbox should be deliberately gated and contain synthetic-only data.
Minimum safe remote-demo checklist
- Limit who can reach it. Use an identity-aware access gate/allowlist or a WAF rule if reviewers have fixed IPs. CloudFront is not an authentication system. Do not rely on an unlisted URL as access control.
- Prove the live model path. Verify the deployed endpoint, credentials, response schema, timeout, rate limit and spend alert using synthetic prompts. Keep the guided fallback visible as a fallback, and do not send real health or personal data to a model provider.
- Keep signup intentional. The customer signup flow is open by design. With a private access gate, only invited reviewers can reach it; use fabricated names and disposable test email addresses. Remove demo accounts and database contents after the review if appropriate.
- Keep staff separate. Admin uses a distinct session and requires the staff role. Create one controlled demo staff account through a trusted process; never expose database credentials or share the admin account broadly.
- Require HTTPS. Use a valid certificate and set
COOKIE_SECURE=true. Verify both storefront and separate admin cookies survive the CloudFront/ALB/Next.js request path. - Do not cache private data. The API sets
Cache-Control: no-store. Configure CloudFront behavior so API, login, account, checkout and admin traffic is not cached; forward required cookies and the CSRF header. - Check rate-limit identity before invite. The Express app currently sets
trust proxy=falseand applies per-process in-memory rate limits. Since browser API calls pass through the Next.js rewrite, the API may see the web proxy address rather than each viewer; validate this so reviewers do not share one accidental rate-limit bucket. Trust only the known proxy chain and use a shared limiter if the service is replicated. - Do not expose internal services. Only the intended web entry should be public. API, PostgreSQL, media write endpoint, deployment control plane and model runtime should be private or protected by strict network policy.
- Keep test payments visibly test-only. Use the documented sandbox card numbers only; never input real card numbers or CVCs. No real payment processor is wired into the demo.
- Back up and restore once. Verify database backup configuration and perform a restore test before relying on any reviewer-created data. Keep uploads in durable storage, not a task's ephemeral filesystem.
- Set spending guardrails. Configure budget alerts, especially before enabling a GPU or a continuously running database and network egress.
Deployment hazards specific to the current architecture
- The renewal scheduler is started inside every API process. Database row locking with
FOR UPDATE SKIP LOCKEDis designed to avoid duplicate claims across replicas, but the scheduler still creates background database activity. For the dry run, use one API task and disable or closely monitor renewals unless they are part of the walkthrough. - The assistant concurrency limit and circuit breaker are per API replica. They are not a global inference quota; add shared admission control before running multiple API tasks with paid inference.
- In-memory Express rate limiting is not shared across API tasks and must be considered together with the trusted-proxy configuration.
- The API applies migrations and seeds the catalog at startup. The existing deployment plan says migrations are advisory-lock guarded; still test one-task rollout and rollback with the target database before scaling services.
- The local media container's filesystem and the database volume are persistent only because Compose gives them volumes. A typical container task's writable layer is not a backup strategy.
Scale path: preserve the seams, add operations only when needed
The current architecture is a modular monolith, not a collection of microservices. That is appropriate for the sandbox and a first small launch. Scale each boundary based on evidence rather than splitting everything up in advance.
One environment, coarse workloads
One web task, one API task, managed Postgres, object storage, explicit access gate, logs/alerts, and no public GPU. Use a separate demo database and synthetic-only records.
Prove capacity and shared controls
Measure real page/API traffic, pool use, image bandwidth, assistant latency and error rates. Add API replicas only after checking proxy-aware/global rate limiting and per-replica inference limits. Scale the database and app independently; remember the default PostgreSQL pool allows up to 10 connections per API process.
Make data and workflows durable
Use private multi-AZ database networking, tested point-in-time recovery, managed secrets, centralized logs/alerts, durable object storage, reviewed migration workflow, and reliable asynchronous handling for payment/clinical/pharmacy side effects. Add a shared cache/limiter only when the use case requires it.
Separate components only for a reason
Scale Next.js, API, database reads, media delivery and GPU inference on their distinct demand curves. Consider read replicas or connection pooling for database pressure, a dedicated worker/queue for durable background jobs, and EKS only if Kubernetes capabilities and an operating team justify the overhead.
The web/API are distinct container builds; API domain logic is separated into services; PostgreSQL transactions use row locks and idempotency for important commerce operations; media is behind a MediaStorage interface; payment and clinical/fulfillment/tax concerns have provider seams. Those are useful migration points. They do not replace production identity, compliance, operational controls, or provider integrations.
Recommended deployment sequence
- Confirm the destination and who can access it. Identify the exact HostGator product, CloudFront distribution/domain status, AWS account/region, and whether reviewers can use an identity gate or fixed-IP allowlist.
- Choose AWS unless demo speed outweighs continuity. For AWS, create a dedicated demo/stage environment and use ECS Fargate + RDS PostgreSQL + S3 + CloudFront/WAF. For fastest setup, choose Render and keep the same Docker images where practical.
- Make a clean cloud data store. Start with an empty database and the existing migrations/catalog seed. Avoid exporting real or unnecessary local data. If a data move is needed, use a sanitized
pg_dumpand verify the restored data. - Resolve the media persistence gap. Implement an S3-backed version of the existing storage interface before horizontally scaling, or explicitly configure and back up a persistent disk for a single instance.
- Deploy the web and API separately. Build from the repository's Dockerfiles, configure internal API routing, health checks, secrets and
COOKIE_SECURE=true; keep database and API endpoints private. - Provision inference explicitly. Set the server-side model URL, model ID and key; test the provider's wire-format compatibility and schema behavior; configure a usage budget, rate/concurrency limits and latency alert. Use the guided flow only if the endpoint is temporarily unavailable.
- Apply the access gate and edge rules. Add TLS, WAF/access policy, no-cache rules for private routes, request forwarding, origin restrictions and budget alerts.
- Run the demo script against the cloud URL. Check health, account creation/login/logout, shopping, checkout with sandbox cards, an evaluation and staff review if shown, account isolation, uploads, responsive mobile behavior, browser console, logs, throttling, and a restore/rollback procedure.
- Invite the reviewer with boundaries. State clearly that it is simulated; share the access instructions and test account/cards; ask them not to enter real information; set an expiry/removal date for access and demo data.
A successful demo proves deployment and review workflows. It does not certify performance, security, availability, clinical safety, payment underwriting, regulatory compliance, or readiness for real patients.
Cost and operational ownership
A precise monthly estimate needs region, task sizes, uptime, traffic, database storage/availability, image volume, egress, log retention and inference model/concurrency. A low-traffic sandbox can still incur always-on baseline charges. The next section gives explicit planning scenarios; use the AWS Pricing Calculator rather than treating any internet price example as a quote.
| Cost driver | Relative impact | What changes it |
|---|---|---|
| Fargate web/API tasks | Low to medium for a small demo | Tasks run while desired count is nonzero; CPU/memory, replicas and uptime drive spend. ECS orchestration itself has no extra fee, but compute and adjacent resources do. |
| ALB, networking and NAT | Can be a meaningful fixed baseline | Load balancer hours, public IPv4, NAT gateway hours/data processing, and VPC endpoints. Choose a simple but secure network design and inspect the bill. |
| RDS PostgreSQL | Medium; often the demo's core baseline | Instance class, storage, backup retention, Multi-AZ and data transfer. Single-AZ lowers cost but reduces availability; set recovery expectations honestly. |
| S3 and CloudFront | Usually modest for a demo, but plan-dependent | Object size, request volume, image delivery/egress, invalidations and logs. CloudFront offers flat-rate plans (including Free and Pro) as well as pay-as-you-go; an existing distribution may still have an ongoing plan or usage charge. |
| Managed LLM API | Variable | Input/output tokens, model, request volume, reserved capacity, retries and routing. Add a quota and alert. |
| Self-hosted GPU inference | Potentially the largest line item | GPU type, hours powered on, replica count, storage, egress and utilization. A 24/7 GPU for sporadic demos can be poor value; start with token-priced hosted inference or schedule an on-demand compatible GPU around review hours. |
| Managed app platform | Lower setup effort; predictable plan-based baseline | Service instance sizes, Postgres plan, persistent disk, outbound traffic and uptime. Validate plan-level sleeping/availability limits against a scheduled reviewer session. |
Cost controls I would set on day one: monthly budget and anomaly alert; one task per service; token/API quota and per-user rate limit; no self-hosted GPU until measured model quality or control needs justify it; short log retention; RDS backup retention appropriate to demo data; no oversized NAT/HA design without a requirement; and an explicit teardown date for unused test infrastructure.
Detailed monthly budget scenarios
These are planning estimates, not quotes or deployed configurations. They are in USD, use a 730-hour month, and assume a small synthetic-data sandbox with one web task, one API task, a small single-AZ database, modest media/log usage and no high-availability replicas. Regional rates, taxes, egress, storage growth, provider minimums and account-specific discounts can change the total.
Low: prove remote access on a compatible existing HostGator VPS or a small Render stack, with live token-priced inference. Medium: move the app to AWS Fargate/RDS/S3 and keep inference token-priced. High: pay for a dedicated GPU only after model evaluation shows that self-hosting is worth its always-on cost. Keep CloudFront at the edge in every option; it does not host the containers, database or model.
Inference cost model used in the estimates
The following example uses the listed OpenRouter rate for Qwen3-14B through DeepInfra: $0.096 per million input tokens and $0.192 per million output tokens, plus the 5.5% Standard platform fee on purchased credits. It assumes 1,500 input tokens and 100 output tokens per assistant turn. The actual prompt, provider route, retries and pricing can differ; measure real usage before setting the budget.
| Assistant turns / month | Input / output tokens | Base model charge | With 5.5% platform fee |
|---|---|---|---|
| 5,000 | 7.5M / 0.5M | $0.82 | $0.86 |
| 25,000 | 37.5M / 2.5M | $4.08 | $4.30 |
| 100,000 | 150M / 10M | $16.32 | $17.22 |
These are inference charges, not the complete OpenRouter account cost; credit purchase rules, provider routing, taxes and any provider price changes must be checked at purchase time. Do not send real patient or payment data to a third-party model endpoint in this sandbox.
Low budget: reuse what is already paid for
| Option | Monthly estimate | Included / assumed | Trade-off |
|---|---|---|---|
| HostGator VPS + token-priced model API | Existing HostGator bill + about $1–$5 for 5k–25k model turns | Incremental hosting may be near $0 if the current plan is already paid and has sufficient CPU/RAM, Docker, persistent disk, supported Node and Postgres access. Keep the model off-host on a compatible API. | Not suitable for shared/cPanel hosting unless the exact plan supports this runtime. Single-server patching, backups, TLS and recovery remain your responsibility. Treat the current invoice as the hosting cost; no plan was supplied to price. |
| Render app + managed Postgres + token-priced model API | About $59–$99/month for app hosting and listed plan options; with 5k–25k model turns, about $60–$104/month, before unusual egress or overages | Illustrative base: web 1 CPU/2 GB $25 + API small instance $7 + media service $7 + Postgres $19 + 5 GB disk $1.25 = $59.25. The range allows for a $0–$25 workspace plan and $0–$15 CloudFront flat-rate plan. If using pay-as-you-go CloudFront, add usage and any separately billed WAF charges. | Fastest managed route, but persistent media must be addressed and plan sleep/availability checked. CloudFront Free/Pro pricing assumes those flat-rate plans; pay-as-you-go is usage-based. Confirm current Render limits and whether a paid workspace is required for your setup. |
Medium budget: managed AWS app, hosted inference
| Line item | Planning amount / month | Basis and limitation |
|---|---|---|
| Two Fargate tasks | $72.08 | Two continuously running 1 vCPU / 2 GB Linux/x86 tasks in us-east-1, 730 hours each, calculated from published per-vCPU-second and per-GB-second rates. |
| Application Load Balancer | $20–$35 | Budget estimate for a small always-on ALB and light usage; actual hourly, LCU, public IPv4 and region charges vary. |
| NAT gateway | $32.85 base, plus usage | One gateway at $0.045/hour × 730 hours. Data processing, transfer and related network charges are additional. A single gateway is a cost-minimizing demo topology, not an availability design. |
| Small RDS PostgreSQL, single-AZ | $20–$60 | Planning range for a small instance, modest storage and backup. Confirm exact engine, class, storage and region in AWS Pricing Calculator; Multi-AZ raises cost. |
| S3, logs, transfer and small usage buffer | $10–$40 | Scenario allowance, sensitive to uploads, retention, request volume, egress and public IPv4 usage. |
| CloudFront | $0–$15 flat-rate plan, or usage-based | Free/Pro flat-rate plan examples; use the actual plan already attached to your account, or estimate pay-as-you-go traffic separately. |
| Hosted LLM API | $0.86–$17.22 for 5k–100k turns | Qwen3-14B token model above. Cost scales with actual tokens and provider routing, not Fargate task hours. |
Recommended planning envelope: $160–$300/month for this small AWS application stack with token-priced inference and modest traffic. This assumes a CloudFront Free/Pro flat-rate option for edge/WAF features or includes an already-paid plan; if you use pay-as-you-go CloudFront, add usage and separately billed AWS WAF. NAT/data transfer, higher database availability, logs, public IPv4 and traffic spikes can also push the total higher. Set AWS Budgets and a model-provider quota before sharing the URL.
Medium-cost alternative: Render at roughly $60–$105 for the app stack, plus a RunPod Serverless L4 endpoint at $0.75 per active GPU hour. If it is actively warm 8 hours/day for 30 days, that is about $180/month for inference compute, before storage/network charges. Budget roughly $250–$325/month total. This is only suitable if reviewer hours can be scheduled: scale-to-zero cold starts may exceed BreezRx's current six-second assistant timeout, so keep a worker warm for the session and test latency in advance.
High budget: dedicated GPU inference
| Inference target | GPU compute / month | Approximate all-in envelope | Use when |
|---|---|---|---|
| 24 GB NVIDIA L4, quantized 14B model | $0.69/hour × 730 = $503.70, plus storage/network | About $700–$1,000/month including the medium AWS app stack and a modest storage/network allowance | You need predictable, continuously warm inference or more control than a token API; one GPU is a single point of failure. |
| 48 GB NVIDIA L40S, compatible quantized 35B-class model | $1.09/hour × 730 = $795.70, plus storage/network | About $1,000–$1,350/month including the medium AWS app stack and a modest storage/network allowance | You benchmark the larger model as materially better and need memory headroom for quantization, context and serving overhead. |
The GPU examples use the listed RunPod Secure Cloud Pod rates. They are cross-provider estimates: secure the endpoint with TLS and strong service authentication, restrict its inbound access, and assess the provider's data-handling terms. For inference inside the AWS VPC, evaluate EC2 G6 (L4/24 GB) or G6e (L40S/48 GB) in the AWS Pricing Calculator instead; AWS GPU prices are region/instance-specific and are not represented by the RunPod amounts above. A second GPU for availability roughly adds another GPU's hourly cost; storage, egress, monitoring and operational work also grow.
Quality-first downsize plan
- Keep the current Qwen3.6-35B-A3B-NVFP4 configuration as the quality baseline. Compare it with Qwen3-14B on a fixed set of synthetic preference extraction, FAQ routing, clinical-safe escalation and malformed/ambiguous prompts.
- Score exact structured-output validity, correct preference extraction, safe routing, p50/p95 latency and cost per successful turn. A smaller model is acceptable only if it meets the agreed task-quality threshold; parameter count alone does not establish equivalence.
- Start with the hosted 14B API in the low/medium scenarios because the example token cost is small. If the quality gap is unacceptable, test a 4-bit 14B/stronger model on an L4, then compare a GPU-compatible quantization of the current 35B-class model on a 48 GB GPU.
- Only reserve a 24/7 GPU after measuring actual demand. For a scheduled demo, use a warm window; for unpredictable reviewer access, choose a warm endpoint or increase the current six-second timeout only after testing user experience and retries.
All totals exclude taxes, engineering labor, domain registration, unusual data transfer, production-grade multi-AZ/HA, backups beyond the small-demo assumption and paid security/compliance services. Do not infer a production budget from these sandbox figures. Re-price every selected service in the target region immediately before provisioning.
A real launch is a separate readiness gate
The repository is explicit that this is a synthetic investor demo. Payment, clinical, fulfillment and tax are mocks; production authentication/MFA, the licensed pharmacy and prescriber relationships, launch geography, payment processor approval and compliance decisions are still open. The interfaces make replacement possible, but the replacement implementations and operational evidence do not yet exist.
| Sandbox demonstration | Before handling real customer or health data |
|---|---|
| Mock card gateway and synthetic test cards | Approved real payment provider, hosted/tokenized fields, reconciliation, refunds/disputes and applicable underwriting. |
| Rule-based clinical mock and staff console | Licensed operator, qualified clinical partners, secure staff identity/MFA/RBAC, review protocols, audit and legal approvals. |
| Mock fulfillment, tax and shipment tracking | Production integrations, tax/legal decisions, shipping and pharmacy workflows, idempotency/retry and operational ownership. |
| Demo accounts, single environment, local-style operations | Separate dev/stage/prod, incident response, access reviews, security testing, backups/restore drills, retention policy, vendor review and jurisdiction-specific compliance work. |
| Shopping preference interpretation only | Model/vendor review, license review, data handling controls and explicit clinical/legal approval. The model must not become the prescribing authority. |
This report is a hosting recommendation, not a compliance determination, security certification or approval to operate a pharmacy or medical service. Consult qualified counsel, privacy/security professionals and the relevant licensed operators before any real-data launch.
Sources and assumptions
This assessment is grounded in the local repository's compose.yaml, README, Next.js and API Dockerfiles/configuration, assistant and provider implementations, media service, technical-design report, and existing cloud-deployment plan. It reflects the code as inspected on 26 November 2026. No cloud deployment, HostGator plan details, AWS bill, traffic target, domain configuration or model-quality benchmark was available for verification. Prices are vendor-page snapshots/planning assumptions, not an AWS Calculator quote.
Vendor capabilities and pricing change. These primary sources explain the service roles; confirm current region/plan limits and build a workload-specific estimate before provisioning.
- Amazon CloudFront Developer Guide — What CloudFront is and how origins workCloudFront distributes static/dynamic content from configured origins; it does not replace the origin application.
- Amazon CloudFront Developer Guide — VPC originsPrivate-subnet ALB/NLB/EC2 origin options and networking prerequisites.
- Amazon ECS Developer GuideManaged container orchestration, Fargate/EC2 capacity choices and service scaling.
- Amazon ECS pricingECS orchestration has no separate charge; underlying compute and related resources are billed.
- AWS Fargate pricingPublished Linux/x86 us-east-1 rates used to calculate the two-task example; prices vary by region and operating system/architecture.
- Amazon VPC pricingNAT gateway hourly/data-processing charges and other network cost dimensions.
- Amazon CloudFront pricingFlat-rate Free/Pro/Business/Premium options and pay-as-you-go pricing; check the plan on the existing distribution/account.
- Amazon RDS for PostgreSQL pricingInstance, deployment/availability, storage and backup cost dimensions.
- Amazon S3 pricingStorage, requests, data retrieval, transfer and optional management features.
- AWS Pricing CalculatorBuild a region- and usage-specific estimate for the proposed deployment.
- Amazon EC2 G6 instancesNVIDIA L4 GPU family; use an AWS Calculator estimate for a same-VPC deployment.
- Amazon EC2 G6e instancesNVIDIA L40S GPUs with 48 GB GPU memory per GPU; instance prices vary by region and size.
- Amazon Bedrock pricingModel- and service-tier-dependent pricing; Bedrock is not assumed to be a drop-in vLLM-compatible endpoint.
- Render — Deploy a Node/Express appManaged Node service workflow and automatic deployment from a connected repository.
- Render Postgres docsManaged PostgreSQL documentation, including recovery, replicas and high-availability topics.
- Render persistent disksLocal filesystem changes are ephemeral by default; disk persistence has mount and service constraints.
- Render pricingService, workspace, Postgres and persistent disk list prices used in the low-budget scenario; verify current plan limits.
- RunPod pricingPod L4/L40S and Serverless L4 hourly examples; storage, network and usage conditions are additional.
- OpenRouter Qwen3-14B model pageListed provider token rates used for the inference-only cost scenarios; provider route and rate may change.
- OpenRouter API parametersCheck supported request fields against BreezRx's current vLLM-oriented request payload before integration.
- OpenRouter pricing and feesPlatform/credit fees used as an explicit assumption in the token-cost example.
- HostGator hosting plans and supportExact support depends on the product/plan. Verify Docker, root/SSH, Node runtime and persistence with HostGator for your account.
Which HostGator plan do you own? Is CloudFront already serving a custom domain, and which plan/billing mode is attached? What model-quality threshold, monthly spend ceiling, expected concurrent reviewers and availability window do you need? Live inference is a requirement for this demo; guided mode is only a fallback. Until the remaining details are known, these budget ranges are planning scenarios, not a priced bill of materials.