Все новости
Технологииdev.to0 просмотров

One Runtime, Two Programs That Have Nothing in Common

A C++20 actor framework where a REST API and a market-data pipeline run on the same execution rules. Here are two functions from the same codebase. The first is an HTTP handler. Reads a cache, falls back to Postgres, refreshes the cache, writes JSON: qb :: io :: async :: task < void > TaskManager :: handle_list_tasks ( ctx_t ctx ) { auto cached = co_await _redis . get ( "tasks:list" ); if (…

Читать в источнике0 просмотров

Сюжет одним текстом

Сводка появится, когда о событии напишут не меньше 3 изданий

2 / 100
2
4
2 д
0,01
×1,26
1 ч