← back to ~/work

// 2026 — Backend / Systems Developer

C++ HTTP Server

Lightweight C++ HTTP server integrated with PostgreSQL, featuring an interactive latency testing sandbox.

C++cpp-httplibPostgreSQLlibpqxxCMake
⚡ RAM Caching⚡ Graceful Shutdown

// 01 — problem

Needed a lightweight, high-performance HTTP server capable of serving static assets efficiently while integrating seamlessly with PostgreSQL for real-time latency monitoring and interactive data queries.

// 02 — solution

Built a custom HTTP server using cpp-httplib and libpqxx. Included a frontend sandbox (PgConnect DB-Bench) to test connection strings, visualize API round-trip latencies via dynamic bar charts, and execute real-time DB queries.

// 03 — architecture & decisions

  • Implemented HTML memory caching for static assets at startup to drastically reduce disk I/O operations.
  • Added graceful shutdown handling (SIGINT/SIGTERM) to cleanly release socket and database handles.