Dienstag, 17. Februar 2026

RestWs


Scaling Python AI & Long-Running Tasks with Rust


>> Sync Simplicity, Async Power:
REST-Call in, WebSocket-Stream out <<





Are you struggling with REST API timeouts during heavy AI inference or complex data processing? Traditional task queues add significant infrastructure overhead, while standard async Python can still hit bottlenecks.

I’m excited to share my newest project: RestWs, a high-performance web server engine built in Rust (and Python) designed specifically to decouple heavy workloads from the HTTP lifecycle.

❓ The Problem:
Modern APIs face scalability challenges when handling long-running tasks. These workloads block the request-response cycle, leading to client timeouts and resource exhaustion.

💡 The Solution:
RestWs implements the ASGI standard to bridge the gap between low-level systems performance and high-level Python logic. It allows you to write synchronous Python while the Rust engine manages the heavy lifting through a unique "Process Split."

🔑 Key Features:
The Split: Trigger a background task that automatically pipes stdout/logs directly to a persistent WebSocket while the initial HTTP request resolves.

Zero-Downtime Hot-Reload: Deploy new Python code without dropping active WebSocket connections.

Compatibility: Works seamlessly with FastAPI and other ASGI compatible frameworks.

⚡ RestWs is currently in the experimental phase and is perfect for developers looking to simplify their stack while maintaining massive throughput for streaming data and AI applications.

Dienstag, 3. Februar 2026

BARE - Bare App Replaces Excess

Darf ich vorstellen: BARE!


BARE steht für Bare Application Replaces Excess. Man könnte auch sagen, "Reduce to the max".

Ein natives SPA-Gerüst, das auf Webstandards basiert. Framework-frei, keine Abhängigkeiten, leichtgewichtig, 100 % nativ, nur Vanilla JavaScript und Browser-API.

Ich habe eine Demo-Single-Page-Application (SPA) erstellt, die komplett ohne Framework oder Bibliotheken von Drittanbietern funktioniert. Sie befasst sich mit allen grundlegenden Herausforderungen einer SPA und demonstriert eine mögliche Implementierung. Die SPA verwendet Webstandards und moderne Browser-APIs.

Als jemand, der auch eine Angular-Anwendung im Einsatz hat, wollte ich wissen: Brauche ich das Framework überhaupt?

Das Ergebnis? Wahrscheinlich nicht in Zukunft.

Ich war erstaunt, wie wenig Aufwand und Code erforderlich waren, um die grundlegenden Funktionen einer SPA zu implementieren, darunter Routing, Komponentenhandhabung, Sanitizer, Eltern-Kind-Kommunikation, Dienste usw., wobei nur reines JavaScript und die Browser-API zum Einsatz kamen.

Das Ergebnis ist eine rein statische SPA, ohne Hunderte von Abhängigkeiten, ohne Build-Prozess, ohne Schwachstellenscans von Bibliotheken von Drittanbietern. Programmieren, bereitstellen, ausführen.

Ich veröffentliche den Code mit einem einzigen Ziel: Sie dazu anzuregen, darüber nachzudenken, ob Sie in Zukunft wirklich ein Framework für eine SPA benötigen.

Eine Live-Demo finden Sie hier: https://bare.asderix.com

Den Source-Code gibt es auf GutHub: https://github.com/asderix/Bare