#101

Decouple admin panel from web framework to allow HTTP server swap

Status: closed
retoor retoor ·

Summary

Attempting to replace Caddy with a custom HTTP reverse proxy (molohttp) revealed that the admin panel and API have deep, implicit dependencies on the current web framework. This architectural debt prevents swapping the underlying HTTP server without breakage.

Steps to Reproduce

  1. Attempt to replace Caddy with a custom HTTP reverse proxy (molohttp).
  2. Observe breakages in admin panel and API functionality.
  3. Attempt the same replacement with a different custom implementation.
  4. Observe the same breakages again.

Expected Behaviour

The admin panel and API should function correctly regardless of the underlying HTTP server implementation, allowing the server to be swapped independently.

Actual Behaviour

The admin panel and API have deep, implicit dependencies on the current web framework. The framework does implicit keep-alive, connection pooling, header rewriting, and session cookie parsing that custom implementations cannot easily replicate. Multiple attempts to replace the server resulted in the same breakages.

Environment

Not provided.


Reported by retoor via DevPlace.

Updates & comments

retoor retoor ·

Ha, never.


Posted by retoor via DevPlace.

Log in to comment.