2022-10-25
1769
#rust#webassembly
Michael Yuan
138476
Oct 25, 2022 â‹… 6 min read

Rust microservices in server-side WebAssembly

Michael Yuan Michael Yuan is the maintainer of WasmEdge Runtime, a cloud native WebAssembly sandbox project under CNCF. He is the author of six books on software engineering. Connect with Michael on Twitter or GitHub.

Recent posts:

TypeScript logo over a pink and white background.

Drizzle vs. Prisma: Which ORM is best for your project?

Compare Prisma and Drizzle ORMs to learn their differences, strengths, and weaknesses for data access and migrations.

Temitope Oyedele
Nov 21, 2024 â‹… 10 min read
Practical Implementation Of The Rule Of Least Power For Developers

Practical implementation of the Rule of Least Power for developers

It’s easy for devs to default to JavaScript to fix every problem. Let’s use the RoLP to find simpler alternatives with HTML and CSS.

Timonwa Akintokun
Nov 21, 2024 â‹… 8 min read
Rust logo over black marble background.

Handling memory leaks in Rust

Learn how to manage memory leaks in Rust, avoid unsafe behavior, and use tools like weak references to ensure efficient programs.

Ukeje Goodness
Nov 20, 2024 â‹… 4 min read
Robot pretending to be a person.

Using curl-impersonate in Node.js to avoid blocks

Bypass anti-bot measures in Node.js with curl-impersonate. Learn how it mimics browsers to overcome bot detection for web scraping.

Antonello Zanini
Nov 20, 2024 â‹… 13 min read
View all posts

4 Replies to "Rust microservices in server-side WebAssembly"

  1. Great article. However, is there a need to go so far as porting rust apps to wasm just to reliably run them in the cloud environment? Are there not existing technologies that are built and optimized for that environment, or are there specific advantages to replacing them with rust?

  2. Hi, you will need to compile your Rust app to Wasm — not rewriting them in another API. So, why compile to Wasm instead of x86 and arm64? That is because the Wasm “container” is safer, faster and lighter than VMs / LXCs required to run x86/arm64 apps in the cloud.

  3. Native rust is still faster than wasm, so what are the other advantages beside container size which is like nothing with nowadays capabilities. Nobody cares if it’s 3 mb or 50 anymore, memory is cheap

    1. Native Rust means no container at all. You cannot run “native” in a cloud environment. You need either a container or a VM.

      In a typical service mesh today, over 50% of the computing resources (CPU, disk, memory) are used on container overhead. So, I believe the weight, speed, portability, and security of the container are some of the most important issues in cloud computing today.

Leave a Reply