qmetrics.net

Drogon

Asynchronous C++ HTTP application framework

Drogon is a C++ framework for building HTTP and WebSocket server programs. It targets Linux, macOS, FreeBSD, OpenBSD, HaikuOS, and Windows.

Overview

Drogon is an HTTP application framework written for modern C++. Developers use it to build web servers and APIs in C++ with an asynchronous programming model so a small thread pool can handle many concurrent requests.

It supports HTTP 1.0 and 1.1 on server and client sides, HTTPS via OpenSSL, and WebSockets. JSON request and response handling is built in for REST-style services, along with cookies, sessions, file upload and download, compression, and pipelining.

Routing maps URL paths to controller handlers, with optional filter chains for shared steps such as authentication checks. Controllers can return plain text, JSON, or server-rendered HTML via CSP template views; a drogonctl command-line tool scaffolds controllers and view code.

Database access includes non-blocking asynchronous drivers for PostgreSQL and MySQL or MariaDB, thread-pool-backed SQLite access, and asynchronous Redis. A lightweight ORM maps objects to tables, and plugins can load from configuration. C++ coroutines are supported for handler code.

Key features

  • Fully asynchronous handlers
  • HTTPS and WebSocket support
  • JSON-oriented REST APIs
  • CSP template views
  • Filter chains and routing
  • Async SQL and Redis clients
  • Built-in ORM mapping
  • drogonctl code generation

Use cases

  • High-concurrency C++ web APIs
  • REST services with JSON
  • Server-rendered C++ sites
  • Embedded HTTP servers in C++

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT