15,891,184 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question about this article
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Articles / Hosted Services / Microservices
Linux
production
Rust
microservice
WebAssembly
Microservices
WASM
Rust microservices in server-side WebAssembly
Michael Yuan @WasmEdge
21 Dec 2022
CPOL
7 min read
22.6K
48
9
This article discusses the use of the Rust programming language and WebAssembly (Wasm) runtime for building and deploying microservices in the cloud, highlighting the benefits of using Wasm for Rust programs in terms of performance, portability, and security.
The Rust programming language has gained popularity in recent years due to its ability to enable developers to write high-performance and memory-safe programs. However, one challenge for using Rust for server-side applications is that programs are compiled into native machine code, which is not portable and is unsafe in multi-tenancy cloud environments. Additionally, tools for managing and orchestrating native applications in the cloud are lacking. To address these issues, Rust programs can be compiled into WebAssembly (Wasm) bytecode, which can be deployed and run in the cloud using a Wasm runtime. Wasm runtimes provide better isolation than Linux containers and have smaller attack surfaces, and Wasm bytecode is portable across operating systems and hardware platforms. This article provides an overview of the tools and techniques needed to build and deploy Rust microservices in a Wasm runtime, including creating a web service, creating a web service client, creating a database client,
This is an old version of the
currently published
article.
Only logged in members can view this content
Please go to the Microservices
Table of Contents
to view the list of available articles in this section.
Go to top