Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Microservices
  3. uSockets

uSockets

Apache-2.0Cv0.8.8

A minimal, cross-platform networking library providing optimized TCP, TLS, QUIC, and HTTP3 transports for async applications.

GitHubGitHub
1.5k stars301 forks0 contributors

What is uSockets?

µSockets is a minimal, cross-platform networking library that provides optimized, non-blocking transports for TCP, TLS, QUIC, and HTTP3. It serves as the foundation for µWebSockets, enabling high-performance asynchronous applications with a single, consistent API across different platforms and event loops.

Target Audience

Developers building high-performance networked applications, such as web servers, real-time systems, or custom protocols, who need a lightweight, cross-platform networking layer with support for modern transports like QUIC.

Value Proposition

Developers choose µSockets for its minimal footprint, proven stability, and ability to write transport-agnostic code that runs efficiently across multiple platforms and event loops without modification.

Overview

Miniscule cross-platform eventing, networking & crypto for async applications

Use Cases

Best For

  • Building high-performance web servers or real-time applications
  • Developing cross-platform networking code with support for modern transports like QUIC and HTTP3
  • Creating lightweight embedded systems with minimal dependencies
  • Implementing custom protocols that require TCP, TLS, or QUIC support
  • Optimizing async I/O with thread-per-CPU architecture
  • Foundational networking layer for projects like µWebSockets

Not Ideal For

  • Projects requiring immediate, stable HTTP/3 implementation out-of-the-box
  • Teams needing extensive documentation, tutorials, or a large community for support
  • Applications with simple, blocking I/O that don't benefit from high-performance optimizations
  • Environments with strict policies against external dependencies like BoringSSL or lsquic

Pros & Cons

Pros

Unified Cross-Platform API

Provides a single, consistent interface for TCP, TLS, QUIC, and HTTP3 across all platforms and event loops, enabling code to run anywhere without modifications, as highlighted in the README's 'Write code once' philosophy.

Configurable Minimalism

Can be built as a tiny TCP-only library with zero external dependencies or extended with BoringSSL and lsquic, offering flexibility for lightweight or feature-rich deployments, per the 'Lightweight or featureful' section.

Proven Stability and Performance

Used as the foundation for µWebSockets since 2016 with fuzz-tested reliability and thread-per-CPU design optimized for multi-core systems, ensuring high performance in production.

Multiple Event-Loop Support

Integrates with various event loops like io_uring, libuv, ASIO, and GCD via compile-time configurations, allowing developers to choose the best fit for their platform.

Cons

Incomplete Feature Support

QUIC and io_uring are explicitly listed as work-in-progress in the README, meaning these advanced transports and event loops may not be fully stable or available.

Complex Compilation Setup

Requires managing multiple compile-time flags (e.g., WITH_QUIC, WITH_IO_URING) and dependencies, which can be error-prone and daunting for developers new to the library.

Sparse Documentation

The README focuses on high-level features with minimal examples or tutorials, lacking detailed guidance that could hinder rapid adoption and debugging.

Frequently Asked Questions

Quick Stats

Stars1,466
Forks301
Contributors0
Open Issues33
Last commit5 days ago
CreatedSince 2017

Tags

#c-library#tcp#high-performance#async#tls#async-io#ssl#http3#cross-platform#event-loop#quic#networking

Built With

i
io_uring
A
ASIO
l
libuv
G
GCD
B
BoringSSL
C
C++

Included in

Microservices14.2k
Auto-fetched 1 day ago

Related Projects

uWebSocketsuWebSockets

Simple, secure & standards compliant web server for the most demanding of applications

Stars18,880
Forks1,850
Last commit8 days ago
Sogou WorkflowSogou Workflow

C++ Parallel Computing and Asynchronous Networking Framework

Stars14,365
Forks2,563
Last commit3 days ago
PistachePistache

A high-performance REST toolkit written in C++

Stars3,471
Forks716
Last commit5 days ago
Enduro/XEnduro/X

Enduro/X Middleware Platform for Distributed Transaction Processing

Stars138
Forks32
Last commit8 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub