This project is my attempt to make a minimal framework for creating serverless containers in Yandex Cloud
use yc_runtime::prelude::*;
#[tokio::main]
async fn main() -> RuntimeResult<()> {
runtime().use_ydb().run(handler).await
}
async fn handler(event: Event, ydb: Component<YdbComponent>) -> RuntimeResult<String> {
let table = ydb.table_client();
for message in event.messages {
// store message in db
}
Ok("Complete!".to_string())
}