#Building and Deploying a Rust Lambda Function with Cross-Compiling and AWS CDK

1 messages · Page 1 of 1 (latest)

true stag
gentle berry
#

Hi @subtle stratus, I'm curious. Your first pipeline for building and deploying the lambda function is written using sync code, while the build image one is using async. Is that because they were authored by different teams?

subtle stratus
#

@gentle berry yeah you are right. We use the sync code because we have to execute it in the order. Build the image and then deploy it.

In the build image part we create a base image with rust and everything we need to cross-compile the application. So here we are free to do that async because we build the image for the different platforms/architecture.

gentle berry
#

Ah, I see, so there's a bit of a misunderstanding here. Just by using async/await it's not asynchronous on it's own. You need to use asynchronous features. You can read more about it in the "But aren't I using async?" section in https://github.com/dagger/dagger/issues/4766

GitHub

What? Create a multi-language guide to cover the importance of thinking about concurrency for improving performance. It can make a significant impact, but many users aren't familiar with it. No...

#

@subtle stratus May I suggest you switch to using async only? 😅 I want to deprecate the sync version hopefully, but haven't created an issue yet.

subtle stratus
gentle berry