Home

Awesome

userver <img src="./scripts/docs/img/logo.svg" align='right' width="10%">

Service TemplatesDevelop / Green Trunkv2.0v1.0
Core:CI Docker build[➚][➚]
PostgreSQL:CI Docker build[➚][➚]
gRPC+PostgreSQL:CI Docker build[➚][➚]

userver is an open source asynchronous framework with a rich set of abstractions for fast and comfortable creation of C++ microservices, services and utilities.

The framework solves the problem of efficient I/O interactions transparently for the developers. Operations that would typically suspend the thread of execution do not suspend it. Instead of that, the thread processes other requests and tasks and returns to the handling of the operation only when it is guaranteed to execute immediately:

std::size_t Ins(storages::postgres::Transaction& tr, std::string_view key) {
  // Asynchronous execution of the SQL query in transaction. Current thread
  // handles other requests while the response from the DB is being received:
  auto res = tr.Execute("INSERT INTO keys VALUES ($1)", key);
  return res.RowsAffected();
}

As a result, with the framework you get straightforward source code, avoid CPU-consuming context switches from OS, efficiently utilize the CPU with a small amount of execution threads.

You can learn more about history and key features of userver from our publications and videos.

Other Features

See the docs for more info.