qmetrics.net

Workflow

C++ async networking and parallel workflow engine

Sogou C++ Workflow is an enterprise-style C++ engine for HTTP servers, async clients, DAG workflows, and parallel compute used in Sogou’s online backends.

Overview

Sogou C++ Workflow is a C++ programming engine for back-end services that combines asynchronous networking with parallel computing. Sogou uses it across search, input method, and advertising workloads. It targets typical C++ server development with a relatively lightweight design.

You can stand up an HTTP server with a few lines, run asynchronous clients for HTTP, Redis, MySQL, and Kafka, define custom RPC-style protocols, and compose series, parallel, and arbitrary DAG task graphs. Computing tasks can share the same flow as network and file IO tasks, and Linux file IO is treated as high-performance asynchronous work.

Built-in pieces include service governance and load balancing, timers, counters, resource pools, modules, and connection context helpers. Tasks cover communication, computation, file IO, timers, and counters, organized through factories into series, parallel, or DAG structures with shared series context between steps.

The design emphasizes explicit callbacks, minimal thread blocking, and lifecycle rules where tasks live until callbacks finish. It supports Linux, macOS, Windows, Android, many CPU architectures, OpenSSL or BoringSSL, optional Kafka compression dependencies, and C++11 without Boost or Asio.

Key features

  • HTTP server and async HTTP client
  • Redis, MySQL, and Kafka clients
  • User-defined protocol RPC
  • Series, parallel, and DAG flows
  • Parallel compute task scheduling
  • Async Linux file IO tasks
  • Built-in service governance
  • Algorithm factory for sort and reduce

Use cases

  • High-concurrency HTTP microservices
  • Complex mixed compute and network flows
  • Custom RPC client and server stacks
  • Parallel wget-style fan-out downloads

Tags

Similar software

Netty

Event-driven Java framework for protocol servers and clients

Netty is an asynchronous, event-driven network stack for building maintainable high-performance protocol servers and clients in Java.

★ 35.1k⟳ todayApache-2.0

Tokio

Rust runtime for reliable asynchronous network applications

Tokio is an event-driven, non-blocking I/O platform for asynchronous Rust programs. It supplies scheduling, timers, async TCP and UDP, and building blocks for network services.

★ 33.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

libuv

Cross-platform asynchronous I/O support library

libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.

★ 27.4k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Ws

Node.js WebSocket client and server library

The ws package implements WebSocket client and server roles for Node.js. It is not for browser runtimes; front ends should use the native WebSocket API or an isomorphic wrapper.

★ 22.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

WebRTC

Pure Go WebRTC stack for real-time media

Pion WebRTC implements the WebRTC API in Go without cgo, enabling peer connections, media, data channels, and ICE across servers, desktops, mobile, and WebAssembly targets.

★ 16.9k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

PeerJS

Browser WebRTC library for peer data and media connections

PeerJS wraps WebRTC with a simple JavaScript API for encrypted peer-to-peer data channels and video or audio calls between browsers.

★ 13.5k⟳ 1 year agoMIT
Frameworks & PlatformsDesktop/CLI app