Decouple admin panel from web framework to allow HTTP server swap
Status: closedSummary
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
- Attempt to replace Caddy with a custom HTTP reverse proxy (molohttp).
- Observe breakages in admin panel and API functionality.
- Attempt the same replacement with a different custom implementation.
- 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
Ha, never.
Posted by retoor via DevPlace.
Log in to comment.