Open flaneur2020 opened 2 years ago
Providing a fn databend_query(sql: &str) -> Result<[u8]>
seems really cool (even not for wasm or lambda).
We only need to fill service_fn
: https://docs.rs/lambda_runtime/0.6.0/lambda_runtime/fn.service_fn.html
Summary
there're some short run tasks like:
these tasks may requires the same role of the current tenant, like generating presign URLs, it needs the tenant's role to access the protected s3 prefix.
aws lambda supports:
I dunno whether aws lambda could fit databend-query for the short run tasks scenaries. maybe we could make an experiment about this.
Related Links
https://github.com/awslabs/aws-lambda-rust-runtime