page:recipes:ai chat application:asp net core:response streaming

Host AI Chat Application with ASP.NET Core: Streamed Responses

Deploy an AI chat application built with ASP.NET Core on Ample using the streaming response service pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, with a managed PostgreSQL 16 database auto-provisioned and injected as DATABASE_URL.

Verified on ASP.NET Core: a Server-Sent Events endpoint reads incrementally through the public HTTPS gateway: five one-second chunks arrived spread over time with the first within seconds (not buffered), a 70-second stream of 36 chunks completed past common 60-second idle timeouts, and a client that disconnected after two chunks was observed and recorded by the server (disconnected=true).

Representative Queries

Resource Requirements

Infrastructure Requirements

Framework

ASP.NET Core

Workload

AI chat application

Execution Status

Ready

Prerequisites

Workflow Steps

  1. Build and start: dotnet publish -c Release -o out in the builder, then dotnet .dll on the dotnet-10 template with ASPNETCORE_URLS bound to PORT. The server must bind 0.0.0.0 on PORT.
  2. Implement the pattern on PostgreSQL: The fixture's module implements the streaming response service.
  3. Deploy: Run the synchronous deploy once and read the result.
  4. Verify: Fetch the live URL and run checks.

Success Checks

Limitations

Cost Estimate

Evidence Summary

Formats