AdiosDocs

Deploy a Real-Time Crypto Price Ticker App with .NET and Redis in 60 Seconds

Build a .NET Minimal API that polls a public crypto price feed, stores a compact latest-price buffer in Redis, and serves a realtime dashboard endpoint.

Target searches: host dotnet minimal api, deploy csharp linux container, azure alternatives csharp, predictable dotnet hosting pricing.

The Stack

  • .NET 8 Minimal APIs
  • Redis for latest prices and short-lived buffers
  • Adios runtime for Linux-based deployment without IIS or Azure setup

Why This Feels Like a Superpower

C# apps do not need a heavy Windows hosting path. A .NET Minimal API can run as a compact Linux service, while Adios handles TLS, routing, logs, and Redis connection details.

1. Build the API

Ask the Adios AI agent:

Build a .NET 8 Minimal API crypto ticker. Poll a public crypto price endpoint,
store latest prices in Redis, expose GET /prices and /healthz, and add a simple
HTML dashboard.

2. Add adios.yaml

name: dotnet-crypto-ticker
region: de
replicas: 1

build_cmd: dotnet publish -c Release -o /app/out
start_cmd: dotnet /app/out/CryptoTicker.dll

runtime:
  name: [email protected]
  port: 8080
  health_path: /healthz
  memory_mb: 768

secrets:
  REDIS_URL: secret://REDIS_URL

requires:
  - cache

3. Deploy

adios up
adios logs --runtime

4. Verify

Open /prices, refresh the dashboard, and check the runtime logs while prices update. Redis keeps the latest values close to the app without putting every request through the external API.